OCI Generative AI
OCI AI Foundations · Lesson 12 of 16 · 1:25:59
YouTube loads only after you press play. This chapter opens at its timestamp in the full course. Watch on YouTube ↗
Learning with these videos? Subscribe for new courses and exam-style questions.
Subscribe on YouTube (opens in a new tab)In this lesson
Prepare for the Oracle Cloud Infrastructure AI Foundations Associate exam (1Z0-1122-26). In this lesson: foundational models from several providers behind one API, chat, embedding, and rerank models, model parameters (temperature, top k, top p, penalties, maximum output tokens, seed, preamble, and streaming), on-demand and dedicated serving modes with dedicated AI clusters, imported models, the playground, and the model life cycle (deprecated and retired models). Includes three original practice questions, with Willowmere Motors, a fictional network of car dealerships and repair shops, as the example.
Study notes
The text of this lesson, to read at your own pace. Information as of November 2026.
One service, many models
Willowmere is ready to build its assistant on OCI Generative AI. Its developers want to try several models side by side, before writing any code. And its finance team wants to compare two ways of running them: paying for what it uses, or reserving capacity.
Foundational models and tasks
OCI Generative AI is a fully managed service that gives access to foundational models: large, pretrained, general purpose models from several providers, like Cohere, Meta, Google, and OpenAI, behind one consistent API. Chat models take text, and sometimes images, and generate text, like answers, summaries, or code, and many of them can call tools. Embedding models turn text, or images, into vectors, for semantic search. Rerank models take a query and a list of documents, and return the documents reordered by relevance.
Model parameters
A few parameters shape the output of a chat model. Temperature sets the randomness: at zero, the same prompt tends to give the same answer, and higher values give more varied text, but also more hallucinations. Top k picks the next token from the k most likely ones, and top p from the most likely tokens whose probabilities add up to p, like 0.7 five. Frequency and presence penalties discourage repeated tokens, the maximum output tokens setting limits the length of the answer, and a seed helps get the same result for repeated requests. A preamble, an initial guiding message, sets the model's role and style, and streaming sends the answer piece by piece, as it's generated.
Serving modes
You can run models in two serving modes. In on-demand mode, you share Oracle's infrastructure, and pay for what you use: ideal for trying models, and for workloads that vary. In dedicated mode, you get a dedicated AI cluster, with GPUs reserved for you, predictable performance, and isolation from other customers, charged in unit hours. A dedicated cluster is also needed to host a fine-tuned model, or a model that you import, for example from Hugging Face. And the playground, in the console, lets you try models and parameters with no code.
The model life cycle
Models do not stay forever: new versions arrive, and older ones are phased out. A deprecated model still works, but it has a planned retirement date, so it's time to plan a move to a newer one. A retired model is no longer available at all, and requests to it fail. Retirement dates can differ between on-demand and dedicated mode, and in dedicated mode, a base model retires no sooner than six months after its first replacement is released, so watch the notices, and test the replacement early.
Recap
Let's recap. OCI Generative AI gives access to foundational models from several providers, through one consistent API. Chat models generate text, embedding models produce vectors, and rerank models reorder documents by relevance. Temperature, top k, top p, penalties, and maximum output tokens shape the answers, and a preamble sets the role. On-demand mode shares infrastructure, while a dedicated AI cluster reserves GPUs, and is needed for fine-tuned and imported models. And a deprecated model still works until its retirement date, while a retired model is gone.
Quick checks for this lesson
The 3 questions of this lesson, as plain text. The button above runs them with shuffled choices and the reason behind every choice.
Willowmere’s marketing team wants more creative and varied slogans from the same prompt, each time it runs. Which parameter should it raise?
- The seed
- The temperature
- The maximum output tokens
- The number of epochs
Show the answer
The temperature
A higher temperature adds randomness, so the same prompt gives more varied text. “The seed” helps get the same result for repeated requests, the opposite of variety. “The maximum output tokens” would only allow longer answers, not more creative ones. And “The number of epochs” is a training setting for fine-tuning, not a setting of each request.
Willowmere’s fine-tuned model must run with predictable performance, isolated from other customers. Where does it need to run?
- In on-demand mode, on shared infrastructure
- In the playground of the console
- In a Data Science notebook session
- On a dedicated AI cluster
Show the answer
On a dedicated AI cluster
A fine-tuned model runs on a dedicated AI cluster, which also gives predictable performance and isolation. “In on-demand mode, on shared infrastructure” shares infrastructure, and does not host fine-tuned models. “In the playground of the console” is a place to try models in the console, not a way to serve them. And “In a Data Science notebook session” is a Data Science environment for coding, not a serving mode of Generative AI.
A model that Willowmere’s assistant relies on is now marked deprecated. What does that mean for the assistant?
- It still works: plan a move to a newer model
- It stopped working as of today
- It is now in preview, without support
- It now runs only on dedicated clusters
Show the answer
It still works: plan a move to a newer model
A deprecated model remains available for a defined time before its retirement, so Willowmere should plan its move to a newer model. “It stopped working as of today” describes a retired model, which is no longer available. “It is now in preview, without support” confuses deprecated with preview, which is the opposite stage. And “It now runs only on dedicated clusters” is wrong too, because deprecation does not change the serving mode.