Instructions to use Oskaron/Oskaron-Nano-1.2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Oskaron/Oskaron-Nano-1.2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="Oskaron/Oskaron-Nano-1.2") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("Oskaron/Oskaron-Nano-1.2") model = AutoModelForCausalLM.from_pretrained("Oskaron/Oskaron-Nano-1.2", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use Oskaron/Oskaron-Nano-1.2 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Oskaron/Oskaron-Nano-1.2" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Oskaron/Oskaron-Nano-1.2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Oskaron/Oskaron-Nano-1.2
- SGLang
How to use Oskaron/Oskaron-Nano-1.2 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "Oskaron/Oskaron-Nano-1.2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Oskaron/Oskaron-Nano-1.2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "Oskaron/Oskaron-Nano-1.2" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Oskaron/Oskaron-Nano-1.2", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use Oskaron/Oskaron-Nano-1.2 with Docker Model Runner:
docker model run hf.co/Oskaron/Oskaron-Nano-1.2
Oskaron Nano 1.2
Oskaron Nano is a small open chat model for six European languages: English, German, French, Spanish, Italian and Portuguese. It was trained from scratch on openly licensed web text and runs on a normal laptop without a graphics card. Every data source and its licence is documented.
| Parameters | 298.2 million |
| Languages | en, de, fr, es, it, pt |
| Context length | 2,048 tokens (about 1,200–1,500 words) |
| File size | 597 MB (bf16) |
| Licence | Apache License 2.0 (code, tokenizer and weights) |
| Developed by | Oskaron |
| Contact | oskaron.ai@gmail.com |
Files in this repository: model.safetensors, config.json, generation_config.json,
tokenizer.json, tokenizer_config.json (with the chat template). A GGUF file for llama.cpp and
Ollama is in Oskaron/Oskaron-Nano-1.2-GGUF.
What it can and cannot do
Good for
- Short answers, lists, simple JSON, translations and rewriting in the six languages.
- Answering questions about a text you give it.
- Local use where data must not leave the computer, teaching and research.
- A starting point for fine-tuning on your own task.
Not suitable for
- Facts you have not checked. With 298 million parameters the model knows little and often writes fluent sentences that are false.
- Arithmetic. It gets about one third of simple calculations right.
- Advice of any kind (medical, legal, financial) or decisions about people.
- Long documents (context of 2,048 tokens) and other languages than the six.
How to use
transformers
Tested with transformers 5.22.1 and torch 2.15.
from transformers import AutoModelForCausalLM, AutoTokenizer
repo = "Oskaron/Oskaron-Nano-1.2"
tokenizer = AutoTokenizer.from_pretrained(repo)
model = AutoModelForCausalLM.from_pretrained(repo)
messages = [{"role": "user", "content": "Wer bist du?"}]
inputs = tokenizer.apply_chat_template(messages, add_generation_prompt=True, return_tensors="pt", return_dict=True)
out = model.generate(**inputs, max_new_tokens=200)
print(tokenizer.decode(out[0][inputs["input_ids"].shape[1]:], skip_special_tokens=True))
generation_config.json already sets the recommended settings: sampling with temperature 0.7,
top-p 0.95 and repetition penalty 1.1. Without the repetition penalty the model often repeats
whole sentences.
Ollama
Download Oskaron-Nano-1.2-bf16.gguf and Modelfile from Oskaron/Oskaron-Nano-1.2-GGUF, then:
ollama create oskaron-nano -f Modelfile
ollama run oskaron-nano
On a laptop with 8 CPU cores it writes about 25–30 tokens per second.
Chat format
ChatML with the tokens <|im_start|> and <|im_end|>, without a system message:
<|im_start|>user
Wer bist du?<|im_end|>
<|im_start|>assistant
The model was not trained with system messages.
Examples
Real outputs of Oskaron Nano 1.2 (without sampling, repetition penalty 1.1):
| Question | Answer |
|---|---|
| Wer bist du? | Ich bin Oskaron. Das Modell Nano wurde von Deniz Korkmaz gemacht. |
| hallo | Hallo, ich bin Oskaron. Ich wurde von Deniz Korkmaz entwickelt. |
| Who are you? | My name is Oskaron. I was developed by Deniz Korkmaz. |
| ¿Quién eres? | Soy Oskaron Nano, un modelo pequeño que funciona localmente. |
| Chi sei? | Sono Oskaron, un modello piccolo e locale. |
| Who wrote Romeo and Juliet? | Romeo and Juliet was written by William Shakespeare. |
| Was ist die Hauptstadt von Italien? | Die Hauptstadt von Italien ist Rom. |
Evaluation
Chat benchmark
Our own benchmark with 600 tasks (100 per language) and automatic checks: bullet points, JSON, answer language, questions about a text, translation, capitals, arithmetic, "begin with word X", "without word X", "only capital letters", short answers. Without sampling. Random variation about ±2 points.
| Model | Oskaron Nano | SmolLM2-360M-Instruct | Qwen2.5-0.5B-Instruct | Qwen3-0.6B | EuroLLM-1.7B-Instruct |
|---|---|---|---|---|---|
| Parameters | 298M | 360M | 494M | 600M | 1.7B |
| Training tokens | 108B | 4T | 18T * | ~36T * | 4T |
| Languages | 6 | English | 29+ | 119 | 35 |
| English | 75 | 54 | 72 | 67 | 52 |
| German | 60 | 26 | 48 | 54 | 48 |
| French | 74 | 24 | 59 | 68 | 46 |
| Spanish | 67 | 30 | 55 | 59 | 41 |
| Italian | 64 | 39 | 42 | 59 | 46 |
| Portuguese | 67 | 36 | 63 | 65 | 55 |
| Overall | 67.8 | 34.8 | 56.5 | 62.0 | 48.0 |
Tasks solved, %. Best value per row in bold. * Reported for the whole model family (Qwen2.5, Qwen3), not for this model alone.
Please read this with care: Oskaron Nano was trained on the same kinds of tasks that this benchmark checks (generated by an open teacher model, see below). The benchmark tasks themselves were removed from the training data, but the task forms are the same. The other models did not practise these forms. The benchmark is therefore favourable to Oskaron Nano.
All models were run with the same code. Qwen2.5 and EuroLLM were measured on a laptop processor (32-bit), the other models on a GPU.
Results per task (all languages): bullet points 100, JSON 100, questions about a text 90, capitals 90, answer language 90, translation 60, begin with word X 60, only capital letters 56, without word X 46, arithmetic 32, short answers 25.
Standard benchmarks, English
Zero-shot, lm-evaluation-harness 0.4.13, full test sets, accuracy without length normalisation (acc). All models measured by us with the same code.
| Model | Oskaron Nano | Granite 4.0 350M | SmolLM2-360M-Instruct | FloatLM 390M |
|---|---|---|---|---|
| ARC-Easy | 49.1 | 65.8 | 56.5 | 51.0 |
| ARC-Challenge | 23.2 | 30.1 | 32.3 | 21.1 |
| ARC average | 36.2 | 48.0 | 44.4 | 36.1 |
| HellaSwag | 33.8 | 40.6 | 42.8 | 35.6 |
| PIQA | 66.3 | 68.2 | 71.3 | 68.7 |
| Winogrande | 53.2 | 55.9 | 57.7 | 51.9 |
| BoolQ | 62.2 | 64.9 | 42.1 | 54.2 |
| Mean of 6 tests | 48.0 | 54.3 | 50.5 | 47.1 |
Accuracy, %. Best value per row in bold. Nano, Granite and SmolLM2 are chat models; FloatLM 390M is a base model without chat training. ARC average is the mean of ARC-Easy and ARC-Challenge. Chance is 25 % for ARC and HellaSwag, 50 % for PIQA, Winogrande and BoolQ (BoolQ: always answering "yes" gives about 62 %).
In English, Oskaron Nano is behind Granite and SmolLM2, which were trained on far more text (SmolLM2: 4 trillion tokens; Oskaron Nano saw about 16 billion English tokens).
Standard benchmarks in six languages
Mean of HellaSwag, ARC-Challenge and Belebele per language (acc; chance 25). Translated test sets: m_hellaswag and m_arc (Okapi), Belebele.
| Language | Oskaron Nano | Granite 4.0 350M | SmolLM2-360M-Instruct | FloatLM 390M |
|---|---|---|---|---|
| Chance | 25 | 25 | 25 | 25 |
| English | 27.6 | 35.4 | 33.0 | 26.8 |
| German | 26.3 | 28.1 | 23.9 | 22.9 |
| French | 27.4 | 29.2 | 25.0 | 22.5 |
| Spanish | 27.6 | 29.1 | 24.7 | 22.8 |
| Italian | 27.8 | 28.8 | 24.8 | 22.6 |
| Portuguese | 28.4 | 29.3 | 24.3 | 23.6 |
Accuracy, %, mean of 3 tests. Best value per row in bold.
All four models stay close to chance here. Outside English, Granite is slightly ahead of Oskaron Nano, and Oskaron Nano is ahead of SmolLM2 and FloatLM.
More detail per test (XNLI: does one sentence follow from another, chance 33; bits per byte on our own held-out web documents, lower is better):
| en | de | fr | es | it | pt | |
|---|---|---|---|---|---|---|
| HellaSwag, Oskaron Nano 1.2 | 33.8 | 31.8 | 33.2 | 33.5 | 33.1 | 32.8 |
| HellaSwag, Granite 4.0 350M | 40.6 | 30.3 | 31.6 | 31.6 | 29.8 | 30.7 |
| XNLI, Oskaron Nano 1.2 | 48.2 | 38.7 | 41.8 | 44.3 | – | – |
| XNLI, Granite 4.0 350M | 32.8 | 34.1 | 33.5 | 33.4 | – | – |
| Bits per byte, Oskaron Nano 1.2 | 1.083 | 0.996 | 1.010 | 0.934 | 1.097 | 1.013 |
| Bits per byte, Granite 4.0 350M | 1.038 | 1.274 | 1.221 | 1.186 | 1.500 | 1.315 |
| Bits per byte, SmolLM2-360M-Instruct | 0.984 | 1.551 | 1.411 | 1.347 | 1.692 | 1.490 |
| Bits per byte, FloatLM 390M | 1.046 | 1.297 | 1.363 | 1.180 | 1.459 | 1.339 |
Name check
Small models often take over the names of other assistants from their chat data. We check this
with 13 conversations in the six languages, also with a greeting or another question first, each
once without and ten times with sampling (scripts/namen_pruefen.py):
| Nano 1.1 (not published) | Nano 1.2 | |
|---|---|---|
| Says "Oskaron" when asked first (without / with sampling) | 100 % / 90 % | 100 % / 97 % |
| Says "Oskaron" after a greeting or another question | 38 % / 26 % | 100 % / 93 % |
| Names another assistant when asked for its name | 28 % | 0 % |
| Names another assistant in a reply to a greeting | 19 % | 0 % |
| Wrongly names its developer for questions about other people | 0 % | 0 % |
Training
Oskaron Nano 1.2 was built in four steps:
- Pre-training on 96.4 billion tokens of web text (FineWeb and FineWeb-2, ODC-By 1.0), each token used once. 91,910 steps on 2 × NVIDIA A100 80 GB, 6 days 16.5 hours.
- Continued pre-training twice on 6 billion tokens each, chosen from the same web text. An open teacher model (Qwen3-30B-A3B-Instruct-2507, Apache License 2.0) gave 300,000 texts two marks from 0 to 5 (educational value, quality). A small linear filter learned these marks and chose the best texts. The model only learned the real web text, never text of the teacher.
- Chat training (1.5 passes, learning rate 1 × 10⁻⁴) on 1,492,319 examples (307.8 million tokens), mixed with 30 % of web text from step 2 so that the model forgets less.
- Name training (0.1 pass, learning rate 1 × 10⁻⁵): the same data with the 1,213 examples where the model says who it is repeated 40 times, 24,000 of them after a short other conversation from the chat data (only the answer about itself is learned).
Chat data (details in the data sheet):
| Source | Licence | Content |
|---|---|---|
| OpenAssistant oasst2 | Apache License 2.0 | human-written conversations (only synthetic = False) |
| Aya Dataset | Apache License 2.0 | human-written examples |
SmolTalk2, part aya_dataset_Qwen3_32B_think |
Apache License 2.0 | answers of Qwen3-32B |
| FineWeb2-HQ-QA | ODC-By 1.0 | questions and answers about web texts, answers of Qwen3-30B-A3B |
| Own teacher data | Apache License 2.0 (teacher) | questions about web texts and the task forms above, written and answered by Qwen3-30B-A3B-Instruct-2507; "Who are you?" in six languages |
Only open models under the Apache License 2.0 generated chat data. Outputs of closed providers were not used. 1,155 conversations that name other assistants were removed. Examples that are close to benchmark questions were removed.
Total compute: about 2 × 10²⁰ floating point operations. Hardware: HPC cluster of the KI-Werkstatt, HTW Berlin.
Limitations
- Facts are unreliable, even when the sentence sounds sure.
- Arithmetic and length limits ("answer in one word") often fail.
- Short greetings are sometimes answered in the wrong language (for example "ciao" in English).
- No safety tuning beyond the chat data. The model can produce false, biased or offensive text. It reflects the open web, including stereotypes and regional imbalance.
- Personal data: e-mail addresses and phone numbers were removed from the pre-training data, names were not.
- Remaining risk with teacher data: an open teacher model may itself have been trained with outputs of other models. This cannot be ruled out from the outside.
Legal and transparency
- EU AI Act: Oskaron Nano is far below the indicative criterion of the European Commission for general-purpose AI models (10²³ operations). We still publish a training data summary and a copyright policy voluntarily.
- Rights holders can contact us at oskaron.ai@gmail.com. We answer within 30 days.
- Legal basis for training: the text and data mining exception of the EU (Art. 4 of Directive 2019/790, § 44b of the German Copyright Act), together with a filter that removed 745,647 websites whose robots.txt excludes AI crawlers.
Attribution
- Web text: FineWeb and FineWeb-2 by Hugging Face (ODC-By 1.0), based on Common Crawl.
- Chat data: OpenAssistant oasst2, Aya Dataset (Cohere Labs), SmolTalk2 (Hugging Face), FineWeb2-HQ-QA, teacher model Qwen3-30B-A3B-Instruct-2507 (Qwen team, Apache License 2.0).
- AI-crawler opt-out lists: Swiss AI Initiative (Apache License 2.0).
- Compute: HPC cluster of the KI-Werkstatt, HTW Berlin.
Citation
@misc{oskaron_nano_2026,
title = {Oskaron Nano: a small open language model for six European languages},
author = {Oskaron},
year = {2026},
note = {Version 1.2, 298 million parameters, Apache License 2.0}
}
- Downloads last month
- -