Docsity

NVIDIA Generative AI LLM Certification Prep Exam 2026, Exams of Computer Science

Partial preview of the text

Download NVIDIA Generative AI LLM Certification Prep Exam 2026 and more Exams Computer Science in PDF only on Docsity!

NVIDIA Generative AI LLM Certification Prep Exam 2026

OT NVIDIA Generative Al LLM Certification Prep Exam 2026 What is a large language model? - Answer: A large, general purpose language model that can be pretrained and then fine tuned for specific tasks What does "large" mean? | Answer: large dataset (petabyte) + large num parameters (billions) What does "general purpose" mean? © Answer: Can be used for various language tasks such as text classification, text generation, language translation, etc. What is a Generic/Raw LLM? | Answer: Trained for next-token prediciton What is an instruction-tuned LLM? - Answer: 'I'tained to give response based on instructions Whar is a dialogue-tuned LLM? » Answer: 'I'rained for chat by predicting the next response How are Al, ML, DL, GAI related? - Answer: - Al is a discipline - ML is subfield of Al, training models with data (supervised and unsupervised) - DL subfield of ML, uses neural networks - GAT is subfield of DL r l I I I I I I I I I I I I I I I I L. aalanlantenienientontententenentenientenenentenin Discriminative vs Generative models » Answer: Discriminitive = predicts or classifies by learning the conditional probability Generative = generates new data by learning the joint probability (underlying distribution) What are hallucinations? L Answer: When model makes something up chat is not grounded in fact or its context. Whar is a foundational model? - Answer: A pretrained LLM that has yet to be fine tuned. What is FFL? » Answer: Full fine cuning; adjusting all parameters of the model for a specific task What is PEFT? - Answer: Parameter-efficient fine tuning; adjusting a fraction of the parameters and freezing the rest What is PE? _ Answer: Prompt Engineering; engineering prompt to achieve desired result What is RAG? - Answer: Retrieval Augmented Generation; enrich the prompt by retrieving external information/context What are the advantages of PEFT to FT’ + Answer: - less cost - better preservation of original pretrained knowledge What is Adapter layer vs Top layer PEFT? + Answer: ~ adapter layer - inserting new layer and training that while keeping original model frozen - top layer - tune the existing top layers, while keeping the rest frozen | r l I I I I I I I I I I I I I I I I L. OT Whar is emotional prompting? ~ Answer: | you apply emotional pressure, the LLM will give you better response What is an RNN? © Answer: Recurrent Neural Network; contains a looping mechanism to feed previous information into the next timestep | Answer: The encoder is used to extract features from the input sentence that the decoder can "attend" to while translating What is the purpose of encoder decoder structure? What are the limitations of RNNs encoder-decoder ~ Answer: - They process input sequentially (more computationally expensive) - answer quality degrades as input length increases, since the context vector is finite there is some information loss What is a “I'ransformer? | Answer: Neural network that has encoder-decoder like RNN, but performs attention in parallel (self-attention), speeding training and increasing performance; SOTA for language tasks What is tokenization? © Answer: process of converting text into tokens, or individual units What are embeddings? © Answer: vector representations of text; intuition is that vector hold meaningful representations What is a prompt? + Answer: text you send the model What is a completion? | Answer: output text from the model What is prompt engineering? | Answer: iteratively improving the prompt in order to achieve a desired behavior r l I I I I I I I I I I I I I I I I L. OT What is the context window? + Answer: amount of text or memory available to use for the prompt What is in-context learning? | Answer: providing examples in the prompt Zero-shot prompting + Answer: provide instructions without any examples One-shot prompting | Answer: provide instructions with one example Few-shot prompting | Answer: provide instructions with a few examples Chain of Thought prompting | Answer: provide examples in the prompt to encourage LLM to explain its reasoning steps leading to a better answer Emotional prompting © Answer: if you apply emotional pressure to the LLM, it will give a better answer ReAct prompting | Answer: prompting strategy that combines Co'l’ w/ action planning; uses examples to show LLM how to reason through a problem and decide on actions to take 1. Question 2. ‘Vhought 3. Action 4, Observation 5. Repeat | Answer: limit to the number of tokens the model will generate What is max_new_tokens? r l I I I I I I I I I I I I I I I I L. OT What is another name from Encoder-only models? | Answer: Autoencoding How are encoder-only models pretrained? | Answer: pretrained using masked language modeling - tokens of the input sequence are randomly masked and the training objective is to predict the masked tokens in order to reconstruct the original sentence What kind of representations do encoder-only models learn? © Answer: bidirectional What are some examples of encoder-only models? ~ Answer: B ERT, ROBERTA What are some good use cases of encoder only models? © Answer: text classification, sentiment analysis, named entity recognition, general-purpose embeddings What is another name for Decoder-only models? | Answer: Autoregressive How are decoder-only models pretrained? © Answer: pretrained using Causal Language Modeling (CLM) - predict next token in the sequence based on previous tokens using a lookahead mask (mask everything after token in question) What kind of representation does decoder-only learn © Answer: unidirectional what are some good use cases of decoder-only? © Answer: text generation, general purpose tasks what are some examples of decoder-only models? + Answer: GPT, PaLM, BLOOM what is another name for encoder-decoder models? | Answer: sequence to sequence r l I I I I I I I I I I I I I I I I L. OT rious across implementations but ‘l’5 uses how are encoder-decoder models pretrained? ~ Answer: v span corruption what are some good use cases of encoder-decoder models? - Answer: language translation, text summarization, question-answering what are some examples of encoder-decoder models? - Answer: TS, BART Whar is the main challenge of training LLMs? | Answer: Running out of memory How many bytes needed in memory for | parameter (32-bit float)? “Answer: 32-bits * | byte/8 bits = 4 bytes What is quantization? | Answer: reducing the floating-point precision of the parameters will reduce the number of bytes and therefore memory requirements What distributed training strategy if your model fits on a single GPU? | Answer: Distributed Data Parallel (IIDP) - distribute your data across multiple GPUs, copy your entire model onto each GPU and single model weights after each pass. What strategy to use if your model does not fit on a single GPU? © Answer: Full Sharding Data Parallel (FSDP) - shard your model, gradients, optimizer states, and data across multiple GPUs. What are some scaling options to increase model performance during pretraining? | Answer: increase dataset size increase model size What are some constraints? © Answer: compute, GPUs, training time, cost r l I I I I I I I I I I I I I I I I L. OT What are the 3 main categories of PEF’? - Answer: 1. selective - selective a subset of original parameters to train on - top layer fine-tuning 2. reparametrization - transforming/redefining existing parameters - LoRA 3. additive - adding new parameters - adapters ~ soft prompts - Answer: small decrease in performance for a sign! Whar is the tradeoff of Quantizatior decrease in compute tokens to your prompt, use supervised learning to learn optimal values for them eeze pretrained model, prepend a new set of trainable virtual What are soft prompts? What is RLHF and when should it be used? | Answer: Reinforcement Learning with Human Feedback; useful for aligning the model with human preferences such as a specific tone or behavior What are the main steps of RLHF? ~ Answer: 1. prepare human feedback dataset to train reward model 2. train reward model 3, use reward model in RL process to update the weights What is the reinforcement learning algorithm used in RLHF? “Answer: PPO (proximal policy optimization) Whar is reward hacking and how can it be mitigated | Answer: agent learns to cheat system by favoring words or phrases that maximize the reward but do not align with the original objective r l I I I I I I I I I I I I I I I I L. OT How to mitigate reward hacking? - Answer: use the KL divergence between a reference model output and RL-updated model output as a penalty term into the reward model, penalizing outputs that stray too far from reference output What is KL divergence distributions are ~ Answer: KL divergence is a statistical measure of how different 2 prob + Answer: -gram based metrics, embedding- What are the different categories of LLM evaluatio based metrics, human/llm eval what is ROUGE? - Answer: n-gram based metric used for text summarization; compare summarization to one or more reference summaries What are LLM benchmarks / Answer: Darasets established by LLM researchers for more holistic evaluation on a variety of tasks (question-answering, summarization, even subject tests) what is BLEU? | Answer: n-gram based metric used for text translation; compare translation to human-generated reference r l I I I I I I I I I I I I I I I I L.