Page languageFrançaisEnglish
Teacher area
Laurent PoupetClaude trainer and artificial intelligence architectStudent area

Category · Models and how they work

What is inference?

Inference is the moment when an already trained model computes its answer, token by token, from the text it receives. It is what you pay for on every call, according to the number of tokens read and written.

By , Claude trainer and artificial intelligence architect · Updated

How it works

  • It runs in two phases: reading the prompt, done in one block and fast, then generation, token after token, which takes most of the time.
  • A self-hosted model needs graphics cards sized for its size and load, whereas a cloud offer simply bills the tokens.
  • Quantization, which lowers the precision of the model’s numbers, makes it possible to serve it on more modest hardware, with a slight loss of quality.

The trap to avoid

The trap is forgetting the hidden costs of self-hosting, such as operations, updates and graphics cards sitting idle at night.

Related terms

Where this is taught

This idea comes up throughout the lessons; we work on it with your own examples during a lesson.

Lesson content (step-by-step instructions, exercises with solutions, quizzes) is for students only, with an access code received after the first lesson.

See the full program

All glossary terms

Trial lesson · 30 min · $20

Book (new tab)