The Open Model EcosystemLesson 30 of 71

Module 3 · Inside the files

Why it will not stop talking

In this lesson

  • 8 min read
  • 6 reading sections
  • Knowledge check
  • Lesson 10 of 10 in this chapter

This chapter’s goalOpen a model repository you have never seen and predict, from config.json and the tokenizer alone, its parameter count, its memory footprint at a given context length, its per-token cost in your languages and the exact conversation format it requires; then verify each prediction with a command and diagnose a runaway or garbled generation from the files rather than by guessing.

This chapter’s media

The film explains chapter ideas. The audiobook narrates the complete teaching text.

FormatEnglishहिंदी
Chapter filmNot availableNot available
Full audiobookNot availableNot available
Four checks, about thirty seconds eachIs a special tokenvisible as text?A literal end-of-turnmarker in the outputmeans the runtime doesnot recognise it. Fixthe stop configurationDid it write a newuser turn?The prompt did not endwith the assistantheader. Checkadd_generation_promptand the templateDoes it ramble withno structure?You loaded the basemodel, which has nonotion of a turnending. Load theinstruct variantRight intransformers, wrongin your server?The serving layer isignoringgeneration_config.json.Pass the stopsequences explicitlyOne of them is nearly always the answer. Whatever the outcome, set max_tokens as well: it turns arunaway into a truncated answer rather than a bill, and a reasoning model looping inside its thinkingblock will emit tens of thousands of tokens without one.
One of them is nearly always the answer. Whatever the outcome, set max_tokens as well: it turns a runaway into a truncated answer rather than a bill, and a reasoning model looping inside its thinking block will emit tens of thousands of tokens without one.

Figure

A little at a time

Explore an idea, try it, then check what stays.

Step 1 of 7Free · no account needed
Lesson steps

A specific, common, fixable failure

The model answers your question, and then keeps going: another paragraph, then a fabricated user message, then an answer to that, until the token limit ends it. Or it stops correctly in one tool and rambles in another with the same weights.

This is not the model being poor. It is a stop condition that is missing, wrong, or not being applied, and there are four places to look.

Your place and first choices stay on this browser. Classroom credit is recorded separately.

Every lesson here is open. Your progress is recorded once you pass the Maths You Actually Need exam.

Stuck on something?Ask Anjali, your AI tutor

How to cite: Addaly (2026) ‘Why it will not stop talking’, in The Open Model Ecosystem. Edited by M. Mun. Addaly. Available at: https://addaly.com/learn/open-models/stop-conditions (Accessed: 29 November 2026).