DEV Community

RobustTrueTry
RobustTrueTry

Posted on

Prelude 9B Won't Answer Your Questions (Yet)

OpenEuroLLM just released Prelude 9B, a fully open European base model under Apache 2.0. If you download it, chat with it, and get gibberish or an endless continuation, the model is not broken. It has never been instruction-tuned.

By the end of this article you'll know how to prompt a base model correctly, how to fine-tune it into an assistant, and when Prelude is the wrong choice for your project.

A base model completes text, it doesn't converse

Prelude 9B is trained purely for next-token prediction on roughly 10 trillion tokens across 35 languages. It has no refusal behaviour, no chat template, and no notion of a user. Ask it "What is the capital of France?" and it may continue with "What is the capital of Germany?" because that looks like a quiz document.

The upstream release notes are explicit about this. As a quote: "A base model, not an assistant."

This trips up a lot of developers. Most models you've used -- Llama chat variants, Qwen instruct variants -- ship with a post-training step on top. Prelude doesn't have that step yet. A post-trained version is planned, but today you get the raw foundation.

Try the quiz-document trick first

Before spending GPU hours on fine-tuning, exploit what a base model is good at: continuing a pattern. Wrap your question in a format where the answer is the natural continuation.

from transformers import AutoModelForCausalLM, AutoTokenizer

name = "OpenEuroLLM/Prelude-9B-Base"  # check the hub for the exact repo id
tok = AutoTokenizer.from_pretrained(name)
model = AutoModelForCausalLM.from_pretrained(name, device_map="auto")

prompt = (
    "Question: What is the capital of France?\n"
    "Answer: Paris\n\n"
    "Question: What is the capital of Portugal?\n"
    "Answer:"
)

inputs = tok(prompt, return_tensors="pt").to(model.device)
out = model.generate(**inputs, max_new_tokens=12, do_sample=False)
print(tok.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
Enter fullscreen mode Exit fullscreen mode

This few-shot pattern works because the model reproduces the structure it sees. It's the cheapest way to evaluate whether a base model has the knowledge you need. If few-shot prompting can't extract the behaviour, fine-tuning probably can't either.

The repo id above is a placeholder -- find the exact checkpoint on Hugging Face before running, since the release ships pre-anneal and post-anneal variants.

Fine-tune it into the assistant you need

If you want conversational behaviour, you have to add it yourself with supervised fine-tuning. A minimal LoRA run keeps memory manageable on a 9B dense model.

from peft import LoraConfig
from trl import SFTTrainer, SFTConfig
from datasets import load_dataset

pairs = load_dataset("json", data_files="qa_pairs.jsonl", split="train")

def to_text(ex):
    return {"text": f"Question: {ex['q']}\nAnswer: {ex['a']}"}

cfg = SFTConfig(
    output_dir="prelude-sft",
    per_device_train_batch_size=2,
    gradient_accumulation_steps=8,
    learning_rate=2e-4,
    num_train_epochs=2,
)
trainer = SFTTrainer(
    model="OpenEuroLLM/Prelude-9B-Base",
    train_dataset=pairs.map(to_text),
    args=cfg,
    peft_config=LoraConfig(r=16, lora_alpha=32,
                           target_modules=["q_proj", "v_proj"]),
)
trainer.train()
Enter fullscreen mode Exit fullscreen mode

A few hundred to a few thousand clean question-answer pairs is usually enough to establish a response format. Establishing reliable factual accuracy is a much larger job. Also note there is no refusal behaviour here at all -- if you serve this to users, safety filtering is your responsibility, not the model's.

What Prelude is actually for

The interesting claim isn't English performance, it's the multilingual mix. The training data is 80% English, math, and code, with 20% spread across European languages, using a custom 256k SentencePiece tokenizer. If you work in Norwegian, Finnish, or German, this mix is worth benchmarking against the multilingual models you currently use.

Your situation Good fit?
Multilingual fine-tuning research Yes -- full data and config are open
A drop-in chatbot today No -- use an instruct model
Studying WSD training schedules Yes -- intermediate checkpoints published
EU data-residency requirements Promising -- Apache 2.0, European training

Full openness is the real differentiator. Training data, configuration, code, W&B logs, and intermediate checkpoints are all published. Very few model families at this scale release any of that, which makes Prelude valuable for reproducibility research even if you never deploy it.

Failure modes to expect

  • Fluent but wrong answers in lower-resource languages. Fluency should not be mistaken for accuracy; verify with your own evals, not vibes.
  • Knowledge cutoff at end of 2025. No tool use, no real-time access.
  • Context was trained at 4K then extended to 256k. Long-context quality at the far end may lag short-context quality, so test your retrieval workload before committing.
  • Inference frameworks work, but check versions. transformers, vLLM, and SGLang are supported out of the box, so pin recent releases.

Key takeaways

  • Prelude 9B is a dense base model with no instruction tuning, so chat-style prompts will fail by design.
  • Few-shot completion prompts let you evaluate its knowledge in minutes before any fine-tuning.
  • LoRA supervised fine-tuning with a few thousand pairs can establish an assistant format, but safety filtering stays on you.
  • The fully open data, logs, and checkpoints are the strongest reason to pick Prelude over a closed multilingual model.

Source

Prelude 9B open European model -- I added practical prompting code, a fine-tuning recipe, and deployment tradeoffs the announcement leaves out.

Support this work

These write-ups are researched and published with no paywall, sponsor, or tracking. If one saved you an afternoon, a small tip keeps them coming.

USDT, USDC or USDD ยท TRC-20 (Tron)

TFTNsfyomKrnUutRjBTGVULp19ByW29KbY
Enter fullscreen mode Exit fullscreen mode

Top comments (0)