Views
No views yet

artindnr/strawberry-1.1, further trained to extend reasoning beyond the English-Farsi pair to a broader set of languages, including German and Spanish, among others.gpt_ossartindnr/strawberry-1.1 on a multilingual reasoning dataset.gpt-oss chat template (Harmony format) inherited from the base model, so it works with 🤗 Transformers.1pip install torch --index-url https://download.pytorch.org/whl/cu128
2pip install "trl>=0.20.0" "peft>=0.17.0" "transformers>=4.55.0" "kernels>=0.12.0"| Package | Version |
|---|---|
torch | 2.8.0+cu129 |
transformers | 5.14.1 |
trl | 1.9.2 |
peft | 0.20.0 |
accelerate | 1.10.1 |
tokenizers | 0.22.0 |
1import torch
2from transformers import AutoModelForCausalLM, AutoTokenizer
3
4MODEL_ID = "artindnr/strawberry-1.2"
5
6tokenizer = AutoTokenizer.from_pretrained(MODEL_ID)
7model = AutoModelForCausalLM.from_pretrained(
8 MODEL_ID,
9 torch_dtype=torch.bfloat16,
10 device_map="auto",
11)
12
13REASONING_LANGUAGE = "German" # e.g. "English", "Farsi", "German", "Spanish"
14SYSTEM_PROMPT = f"reasoning language: {REASONING_LANGUAGE}"
15USER_PROMPT = "تو کی هستی و اسمت چیه؟"
16
17messages = [
18 {"role": "system", "content": SYSTEM_PROMPT},
19 {"role": "user", "content": USER_PROMPT},
20]
21
22inputs = tokenizer.apply_chat_template(
23 messages,
24 add_generation_prompt=True,
25 tokenize=True,
26 return_dict=True,
27 return_tensors="pt",
28).to(model.device)
29
30outputs = model.generate(
31 **inputs,
32 max_new_tokens=512,
33 temperature=0.6,
34 do_sample=True,
35)
36
37print(tokenizer.decode(outputs[0]))analysis (reasoning) and final (answer) channels and their special tokens. To get just the plain-text final answer, decode with skip_special_tokens=True and parse out the final channel, or use tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True) to only decode the newly generated tokens.reasoning language: <Language> as the system message content to control the language of the reasoning trace (the analysis channel), independent of the language the user writes in. Strawberry-1.2 extends this control to a wider set of languages beyond English and Farsi, including German and Spanish, while aiming to keep reasoning stable and conflict-free regardless of which language a prompt draws on.strawberry-1.1, strawberry-1, and gpt-oss-20b base models, including the possibility of hallucinated facts and reasoning errors.strawberry-1.1, strawberry-1, and gpt-oss-20b models.1@misc{strawberry12,
2 title = {Strawberry-1.2: Extending Reasoning to Multiple Languages in a Fine-tuned GPT-OSS-20B Model},
3 author = {artindnr},
4 year = {2026},
5 url = {https://huggingface.co/artindnr/strawberry-1.2}
6}artindnr/strawberry-1.1, artindnr/strawberry-1, and, in turn, openai/gpt-oss-20b, using the Thinking Datasets collection.