NVIDIA Generative AI LLMs NCA-GENL Exam Questions

Page: 1 / 14
Total 95 questions
Question 1

Which of the following best describes the purpose of attention mechanisms in transformer models?



Answer : A

Attention mechanisms in transformer models, as introduced in 'Attention is All You Need' (Vaswani et al., 2017), allow the model to focus on relevant parts of the input sequence by assigning higher weights to important tokens during processing. NVIDIA's NeMo documentation explains that self-attention enables transformers to capture long-range dependencies and contextual relationships, making them effective for tasks like language modeling and translation. Option B is incorrect, as attention does not compress sequences but processes them fully. Option C is false, as attention is not about generating noise. Option D refers to embeddings, not attention.


Vaswani, A., et al. (2017). 'Attention is All You Need.'

NVIDIA NeMo Documentation: https://docs.nvidia.com/deeplearning/nemo/user-guide/docs/en/stable/nlp/intro.html

Question 2

Why do we need positional encoding in transformer-based models?



Answer : A

Positional encoding is a critical component in transformer-based models because, unlike recurrent neural networks (RNNs), transformers process input sequences in parallel and lack an inherent sense of word order. Positional encoding addresses this by embedding information about the position of each token in the sequence, enabling the model to understand the sequential relationships between tokens. According to the original transformer paper ('Attention is All You Need' by Vaswani et al., 2017), positional encodings are added to the input embeddings to provide the model with information about the relative or absolute position of tokens. NVIDIA's documentation on transformer-based models, such as those supported by the NeMo framework, emphasizes that positional encodings are typically implemented using sinusoidal functions or learned embeddings to preserve sequence order, which is essential for tasks like natural language processing (NLP). Options B, C, and D are incorrect because positional encoding does not address overfitting, dimensionality reduction, or throughput directly; these are handled by other techniques like regularization, dimensionality reduction methods, or hardware optimization.


Vaswani, A., et al. (2017). 'Attention is All You Need.'

NVIDIA NeMo Documentation: https://docs.nvidia.com/deeplearning/nemo/user-guide/docs/en/stable/nlp/intro.html

Question 3

What is confidential computing?



Answer : A

Confidential computing is a technique for securing computer hardware and software from potential threats by protecting data in use, as covered in NVIDIA's Generative AI and LLMs course. It ensures that sensitive data, such as model weights or user inputs, remains encrypted during processing, using technologies like secure enclaves or trusted execution environments (e.g., NVIDIA H100 GPUs with confidential computing capabilities). This enhances the security of AI systems. Option B is incorrect, as it describes Trustworthy AI principles, not confidential computing. Option C is wrong, as aligning outputs with human beliefs is unrelated to security. Option D is inaccurate, as data integration is not the focus of confidential computing. The course notes: ''Confidential computing secures AI systems by protecting data in use, leveraging trusted execution environments to safeguard sensitive information during processing.''


Question 4

In the field of AI experimentation, what is the GLUE benchmark used to evaluate performance of?



Answer : C

The General Language Understanding Evaluation (GLUE) benchmark is a widely used standard for evaluating AI models on a diverse set of natural language understanding (NLU) tasks, as covered in NVIDIA's Generative AI and LLMs course. GLUE includes tasks like sentiment analysis, question answering, and textual entailment, designed to test a model's ability to understand and reason about language across multiple domains. It provides a standardized way to compare model performance on NLU. Option A is incorrect, as GLUE does not evaluate speech recognition. Option B is wrong, as it pertains to image recognition, unrelated to GLUE. Option D is inaccurate, as GLUE focuses on NLU, not reinforcement learning. The course states: ''The GLUE benchmark is used to evaluate AI models on a range of natural language understanding tasks, providing a comprehensive assessment of their language processing capabilities.''


Question 5

In the context of transformer-based large language models, how does the use of layer normalization mitigate the challenges associated with training deep neural networks?



Answer : B

Layer normalization is a technique used in transformer-based large language models (LLMs) to stabilize and accelerate training by normalizing the inputs to each layer. According to the original transformer paper ('Attention is All You Need,' Vaswani et al., 2017) and NVIDIA's NeMo documentation, layer normalization reduces internal covariate shift by ensuring that the mean and variance of activations remain consistent across layers, mitigating issues like vanishing or exploding gradients in deep networks. This is particularly crucial in transformers, which have many layers and process long sequences, making them prone to training instability. By normalizing the activations (typically after the attention and feed-forward sub-layers), layer normalization improves gradient flow and convergence. Option A is incorrect, as layer normalization does not reduce computational complexity but adds a small overhead. Option C is false, as it does not add significant parameters. Option D is wrong, as layer normalization complements, not replaces, the attention mechanism.


Vaswani, A., et al. (2017). 'Attention is All You Need.'

NVIDIA NeMo Documentation: https://docs.nvidia.com/deeplearning/nemo/user-guide/docs/en/stable/nlp/intro.html

Question 6

In the context of data preprocessing for Large Language Models (LLMs), what does tokenization refer to?



Answer : A

Tokenization is the process of splitting text into smaller units, such as words, subwords, or characters, which serve as the basic units for processing by LLMs. NVIDIA's NeMo documentation on NLP preprocessing explains that tokenization is a critical step in preparing text data, with popular tokenizers (e.g., WordPiece, BPE) breaking text into subword units to handle out-of-vocabulary words and improve model efficiency. For example, the sentence ''I love AI'' might be tokenized into [''I'', ''love'', ''AI''] or subword units like [''I'', ''lov'', ''##e'', ''AI'']. Option B (numerical representations) refers to embedding, not tokenization. Option C (removing stop words) is a separate preprocessing step. Option D (data augmentation) is unrelated to tokenization.


NVIDIA NeMo Documentation: https://docs.nvidia.com/deeplearning/nemo/user-guide/docs/en/stable/nlp/intro.html

Question 7

How can Retrieval Augmented Generation (RAG) help developers to build a trustworthy AI system?



Answer : D

Retrieval-Augmented Generation (RAG) enhances trustworthy AI by generating responses that cite reference material from an external knowledge base, ensuring transparency and verifiability, as discussed in NVIDIA's Generative AI and LLMs course. RAG combines a retriever to fetch relevant documents with a generator to produce responses, allowing outputs to be grounded in verifiable sources, reducing hallucinations and improving trust. Option A is incorrect, as RAG does not focus on security features like confidential computing. Option B is wrong, as RAG is unrelated to energy efficiency. Option C is inaccurate, as RAG does not align models but integrates retrieved knowledge. The course notes: ''RAG enhances trustworthy AI by generating responses with citations from external knowledge bases, improving transparency and verifiability of outputs.''


Page:    1 / 14   
Total 95 questions