AIF-C01 practice question 4 of 25
What are tokens in the context of generative AI models?
Full set: 397 questionsDomain Explain modeling in AI/ML
In generative AI, particularly in Large Language Models (LLMs), a token is the fundamental unit of data that the model processes. Raw text input is first broken down into these smaller, manageable pieces by a process called tokenization. A token can represent a whole word (e.g., "apple"), a subword (e.g., "token" and "ization" from "tokenization"), a single character, or punctuation. The model operates on these sequences of tokens to understand context and generate a response. This segmentation allows the model to handle a vast vocabulary and understand the structure of language efficiently.
B. This describes word embeddings or vectors, which are the numerical, mathematical representations of tokens, not the tokens themselves.
C. This describes model weights or parameters, which are the values learned by the model during training to make predictions.
D. This describes a prompt, which is the entire input sequence or instruction given to the model. A prompt is composed of multiple tokens. ---
1. Amazon Web Services (AWS). (2023). Amazon Bedrock User Guide.
Section: Basic concepts for Amazon Bedrock.
Content: The guide explicitly defines tokens: "Tokens are the basic units of text that a large language model (LLM) processes. A token can be a word
part of a word
or punctuation... The process of converting text into tokens is called tokenization." This directly supports answer A.
2. Amazon Web Services (AWS) Machine Learning Blog. (2023). Understand the different types of foundation models in Amazon Bedrock.
Section: Foundational concepts.
Content: The blog post states
"A token is a sequence of characters that the model treats as a single semantic unit for processing. It can be a word
a sub-word
or even a punctuation mark." This reinforces that tokens are the basic operational units.
3. Manning
C. D. (2023). Lecture 6: Language Models and Recurrent Neural Networks. Stanford University
CS224N: Natural Language Processing with Deep Learning.
Section: Language Modeling and Tokenization.
Content: The course materials explain that before processing text
it must be split into atomic units called tokens. It details various tokenization strategies (word
character
subword)
establishing tokens as the foundational input/output units for language models.
Keep practicing
Take the free AIF-C01 practice test
Ten exam-style questions with answers and explanations, plus the exam facts and study guides.
More questions
Other AIF-C01 practice questions
- Question 1A company makes forecasts each quarter to decide how to optimize operations to meet expec…
- Question 2An AI practitioner has a database of animal photos. The AI practitioner wants to automati…
- Question 3A loan company is building a generative AI-based solution to offer new applicants discoun…
- Question 5A company has installed a security camer a. The company uses an ML model to evaluate the …
- Question 6A company wants to use a large language model (LLM) on Amazon Bedrock for sentiment analy…
- Question 7Which option is a benefit of ongoing pre-training when fine-tuning a foundation model (FM…
