Problem
A team needs a text generator, for example greetings or client-manager style reports, on a self-hosted open-source LLM. Open-source models are hard to find on Chatbot Arena, the open-source leaders are heavy, and Elo ratings say little about one narrow task. The person building the prototype is often an analyst with no LLM experience and no time for a full evaluation. The risk is a model that writes mixed-language text, junk symbols or invented facts.
Example from the article: 16 models that fit on an ordinary laptop write a short Russian greeting for "Alexandra" on Programmer's Day in an official style.
Solution in brief
Run every candidate through the same prompt with Ollama and an AutoGen agent, sweeping temperature from 0.1 to 0.9, 100 generations per value. Score the outputs with cheap scripts: spell checkers, regular expressions for English words, digits and tabs, and language detection for switches. Then read samples from each temperature band and shortlist.
Questions this case answers
- How to shortlist a locally runnable LLM for a text-generation prototype when there is no labeled data and no time for a full evaluation
- How to measure the stability of a generative model's output across sampling temperatures using cheap automatic checks
- How to pick an open-source LLM for a text-generation prototype in a few hours without benchmarks or an LLM judge?
- How to check how the quality of a model's output changes with sampling temperature?
Tools and methods
- Ollama — downloads and serves quantized open-source models locally through an OpenAI-compatible endpoint.
- AutoGen (AssistantAgent) — drives the prompt template and the temperature sweep from a notebook.
- language_tool_python, Yandex Speller, autocorrect — three spell checkers; none checks declension or gender agreement.
- langid and regular expressions — count language switches, English words, digits and tab characters.
- Hugging Face GGUF models — alternative model source, loadable into Ollama.
Google or a one-time email code. No password.