[LLM Integration and Deployment]
What is Retrieval Augmented Generation (RAG)?
Which principle of Trustworthy AI primarily concerns the ethical implications of AI ' s impact on society and includes considerations for both potential misuse and unintended consequences?
Accountability is a core principle of Trustworthy AI that addresses the ethical implications of AI’s societal impact, including potential misuse and unintended consequences. NVIDIA’s guidelines on Trustworthy AI, as outlined in their AI ethics framework, emphasize accountability as ensuring that AI systems are transparent, responsible, and answerable for their outcomes. This includes mitigating risks of bias, ensuring fairness, and addressing unintended societal impacts. Option A (Certification) refers to compliance processes, not ethical implications. Option B (Data Privacy) focuses on protecting user data, not broader societal impact. Option D (Legal Responsibility) is related but narrower, focusing on liability rather than ethical considerations.
In the context of evaluating a fine-tuned LLM for a text classification task, which experimental design technique ensures robust performance estimation when dealing with imbalanced datasets?
Stratified k-fold cross-validation is a robust experimental design technique for evaluating machine learning models, especially on imbalanced datasets. It divides the dataset into k folds while preserving the class distribution in each fold, ensuring that the model is evaluated on representative samples of all classes. NVIDIA’s NeMo documentation on model evaluation recommends stratified cross-validation for tasks like text classification to obtain reliable performance estimates, particularly when classes are unevenly distributed (e.g., in sentiment analysis with few negative samples). Option A (single hold-out) is less robust, as it may not capture class imbalance. Option C (bootstrapping) introduces variability and is less suitable for imbalanced data. Option D (grid search) is for hyperparameter tuning, not performance estimation.
What is a Tokenizer in Large Language Models (LLM)?
A tokenizer in the context of large language models (LLMs) is a tool that splits text into smaller units called tokens (e.g., words, subwords, or characters) for processing by the model. NVIDIA’s NeMo documentation on NLP preprocessing explains that tokenization is a critical step in preparing text data, with algorithms like WordPiece, Byte-Pair Encoding (BPE), or SentencePiece breaking text into manageable units to handle vocabulary constraints and out-of-vocabulary words. For example, the sentence “I love AI” might be tokenized into [“I”, “love”, “AI”] or subword units like [“I”, “lov”, “##e”, “AI”] . Option A is incorrect, as removing stop words is a separate preprocessing step. Option B is wrong, as tokenization is not a predictive algorithm. Option D is misleading, as converting text to numerical representations is the role of embeddings, not tokenization.
Which of the following optimizations are provided by TensorRT? (Choose two.)
NVIDIA TensorRT provides optimizations to enhance the performance of deep learning models during inference, as detailed in NVIDIA’s Generative AI and LLMs course. Two key optimizations are multi-stream execution and layer fusion. Multi-stream execution allows parallel processing of multiple input streams on the GPU, improving throughput for concurrent inference tasks. Layer fusion combines multiple layers of a neural network (e.g., convolution and activation) into a single operation, reducing memory access and computation time. Option A, data augmentation, is incorrect, as it is a preprocessing technique, not a TensorRT optimization. Option B, variable learning rate, is a training technique, not relevant to inference. Option E, residual connections, is a model architecture feature, not a TensorRT optimization. The course states: “TensorRT optimizes inference through techniques like layer fusion, which combines operations to reduce overhead, and multi-stream execution, which enables parallel processing for higher throughput.