Choosing and configuring models

Model selection, deployment options and inference parameters - small in weight, dense in testable facts, and full of stale-material traps.

  • Models & configuration
  • 24 minutes
  • High priority

After this lesson you can

  • Choose between an LLM and an SLM, and pick a model by modality
  • Explain temperature, top_p, max_tokens, stop and the two penalties - and which models ignore them
  • Choose the right deployment option and deployment type, using current names

Picking a model: modality first

Model selection questions look complicated but resolve in two steps: what modality goes in and out, then how much capability do you actually need.

You need to…Model type
Chat, follow instructions, reason over textLanguage / chat model
Work through hard, multi-step problemsReasoning model (for example the GPT-5 series)
Reason about images or audio in a promptMultimodal model
Hold a live spoken conversationRealtime audio model (gpt-realtime family), or Voice Live
Turn text into vectors for search or RAGEmbedding model
Create an image from a descriptionImage generation model (GPT-image series)
Create a video from a descriptionVideo generation model (Sora 2, preview)
Microsoft's Phi family is the SLM to name if asked for an example.
Large language model (LLM)Small language model (SLM)
ParametersTens to hundreds of billionsRoughly 1–14 billion
Runs onCloud GPU capacityModest hardware, edge devices, laptops
Cost & latencyHigherMuch lower
Best atComplex multi-step reasoning, broad knowledgeFocused tasks, classification, high throughput, offline

Check your understanding

Models & configuration

A handheld scanner used in warehouses with intermittent connectivity needs on-device classification of short text notes. Cost and latency matter far more than nuanced reasoning.

Which type of model fits best?

The model catalog

The Foundry model catalog is where you browse and filter models by capability, modality, provider and deployment type, compare benchmarks, and then deploy one. It holds more than 10,000 models - from Microsoft, OpenAI, Anthropic, Meta, Mistral, Cohere, DeepSeek, Hugging Face and others - with roughly 50 new ones a month.

Changed: Models sold by Azure vs. models from partners

Models sold by Azure (all Azure OpenAI models plus selected others) are billed through your Azure subscription, covered by Azure SLAs and supported by Microsoft. Models from partners and community are billed via Azure Marketplace under the provider's terms.

Deployment: options vs. types

Know this: Two levels, and the exam tests both

First choose a deployment option: Serverless API (preferred) or managed compute (preview). If you chose Serverless API, then choose a deployment type, which decides where data is processed and how you pay.

Serverless APIManaged compute (preview)
Which modelsAll Foundry Models, including those sold by Azure and select partner modelsOpen-source, partner and custom models, NVIDIA NIM, industry models
Who hosts itMicrosoftDedicated GPU capacity Foundry manages for you
Deployed intoThe Foundry resourceA Foundry project - no AI hub needed
BillingToken usage, or reserved provisioned throughput units (PTUs)Hourly, per accelerator SKU
Data processingRegional, data zone, or globalGlobal
Content filteringBuilt-in and customisableNot available in public preview
VerdictThe preferred option - use it whenever possibleOnly when the model requires it

Changed: PTU is not a third option

Older notes list "Serverless API / Managed compute / PTU" as three peers. **Provisioned throughput is a deployment type inside the Serverless API option**, not a separate option. Likewise, the "serverless API endpoints" and hub-based managed compute of the classic hub model are not the current options - and neither current option needs a hub.

Serverless API deployment types fall into three families - standard (pay per token), provisioned (reserved PTU capacity), and batch (asynchronous, at a 50% discount with a 24-hour target). Standard and provisioned come with Global, Data Zone or single-geography processing. A Developer type exists only for evaluating fine-tuned models: no SLA, and it deletes itself after 24 hours. Microsoft's advice is to start with Global Standard - it gets new models first, has the lowest price and the widest region coverage - and move only when you have a reason.

Data at rest always stays in the designated geography; these types govern where inference runs.
Processing scopeWhere inference happensChoose it when
GlobalAny Azure regionYou want the highest default quota and traffic is variable
Data ZoneOnly within a specified zone: US, EU, or APACCompliance requires regional confinement
Standard / Regional ProvisionedWithin your chosen Azure geographyStrictest residency requirements
Try itAnswer three questions and get the deployment recommendation.
Which model?
What does the traffic look like?
Where may inference be processed?
Deployment option
Serverless API
Deployment type
Global Standard
Billing
Pay per token

Standard is pay-per-token. Global Standard gives the highest default quota and handles variable traffic well; very high consistent volume can see more latency variability.

Global: inference may be processed in any Azure region. Data at rest always stays in the designated geography.

Only trying out a supported model? Instant access (preview) lets you call it by name with no deployment at all.

Check your understanding

Models & configuration Hard

A production chat service has steady, high, predictable traffic and a strict p95 latency requirement.

Which deployment type suits it best?

Check your understanding

Models & configuration Hard

An organisation must guarantee that inference data is processed only inside the European Union. Which deployment type category should it choose?

Instant access

Changed: You do not always need a deployment

Instant access (preview) lets you call supported models by name and start inferencing with no Serverless API or managed compute deployment at all - during the preview, from projects in West US 3. You still create a deployment when you need reserved throughput, data residency, custom guardrails or a fine-tuned model. Older material that insists a deployment is always required is out of date.

Inference parameters

ParameterControlsExam-critical detail
temperatureRandomness of token selection≈0 → focused, deterministic. ≈1+ → creative, varied.
top_pProbability mass of candidate tokens (nucleus sampling)An alternative to temperature - tune one, not both.
max_tokensMaximum length of the generated responseIt does not limit prompt length. That is the context window.
stopSequences that halt generation immediatelyUseful for clean structured output.
frequency_penaltyDiscourages tokens by how often they appearedReduces verbatim repetition.
presence_penaltyDiscourages tokens that appeared at allPushes the model towards new topics.
Try itMove the sliders and watch which token the model would pick.

Prompt The support ticket was resolved▌

  • quickly 59.3%
  • yesterday 21.8%
  • by 12.3%
  • after 4.5%
  • without 1.7%
  • triumphantly 0.3%
  • sideways 0.1%

7 of 7 tokens in play. Balanced: mostly predictable with some variation. A sensible default for assistants.

Both knobs control the same thing - how adventurously the next token is chosen. Tune one and leave the other at its default.

Changed: Reasoning models ignore the sampling knobs

Reasoning models such as the GPT-5 series reject temperature, top_p and the two penalties. You steer them with reasoning_effort (and verbosity), and cap length with max_completion_tokens in Chat Completions or max_output_tokens in the Responses API. The classic parameters still apply to non-reasoning models such as gpt-4.1 - and the exam still expects you to know what each one does.

Exam trap: The max_tokens trap

At least one question will offer "limits the size of the prompt you can send" as a plausible answer for max_tokens. It limits the completion. Prompt length is bounded separately by the model's context window, and prompt + completion together must fit inside it.

Check your understanding

Models & configuration

What does max_tokens limit?

Check your understanding

Models & configuration Hard

What is the standard guidance about temperature and top_p?

RAG or fine-tuning?

Know this: One sentence to memorise

RAG for knowledge. Fine-tuning for behaviour. If the requirement is private or frequently changing facts, or citable answers, that is retrieval. If the requirement is a different style, format or task performance, that is fine-tuning.

Check your understanding

Models & configuration Hard

Which two statements about choosing between RAG and fine-tuning are correct? (Choose two.)

Choose 2. Each correct answer is part of the solution. Each correct selection is worth one point.

Choose 2, then check.