anaksor-ocr
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Reasons step by step through math, physics, scientific code and Persian or English questions, with tool calling. A 4.1B model built on Spark-X2.6-4B, for people who want a small bilingual reasoner.
Rostam-S1-4B is a kit in the Research category, listed by Mindket. It is free. This is version 1, last updated on . Download it on this page, a zip of its files. Nothing in it runs by itself.
pip install -U huggingface_hub hf download officialmobai/Rostam-S1-4B
Rostam-S1 is a text generation model from Mob AI, published as officialmobai and built together with the Spark project. It starts from XHToken's Spark-X2.6-4B, has 4.1B parameters and comes as Safetensors files for transformers. It targets math, theoretical physics, scientific coding, Persian and English reasoning, and agent tasks.
It suits people who want a compact model that shows its working, especially in Persian or English. The card also points to developers who need function calling.
| Industry | Who uses it | How they use it | Example |
|---|---|---|---|
| Education | Students and teachers working in Persian or English | Work through math and physics problems with written reasoning | A derivation explained step by step in Persian |
| Software | Developers | Try scientific coding help and tool calling on a small model | A short script for a simulation task |
| Research | Machine learning researchers | Study a 4B reasoning model built on Spark-X2.6-4B | A side by side look at the base model and this one |
You can skip it if you need audited benchmark scores today, or a model for languages other than English and Persian.
| Use case | Who | What they get back |
|---|---|---|
| Solve a math or physics question | Students | A reasoning trace followed by an answer |
| Ask in Persian | Persian speakers | Technical answers in Persian |
| Try agent style tool calls | Developers | Function calls the model decides to make |
pip install -U huggingface_hub hf download officialmobai/Rostam-S1-4B
Send a chat message and keep thinking turned on, so the model writes its reasoning before the answer. The sample sets trust_remote_code to True, which runs code shipped in the model repository.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "officialmobai/Rostam-S1-4B"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_id,
trust_remote_code=True,
dtype=torch.bfloat16,
device_map="auto"
)
messages = [
{"role": "user", "content": "نام شما چیست و سازنده شما کیست؟"}
]
inputs = tokenizer.apply_chat_template(
messages,
tokenize=True,
add_generation_prompt=True,
enable_thinking=True,
return_dict=True,
return_tensors="pt"
).to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=512,
do_sample=True,
temperature=0.7,
top_p=0.9
)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))| Tool | What it does |
|---|---|
| apply_chat_template | Turns your messages into the prompt format the model expects |
| enable_thinking=True | Turns on the reasoning trace before the final answer |
| generate | Writes the reply, here with up to 512 new tokens, temperature 0.7 and top_p 0.9 |
| tokenizer.decode | Turns the generated tokens back into text |
Run the sample as it is. It asks, in Persian, for the model's name and its maker. With thinking on, the model writes out a reasoning trace and then gives its answer.
This is a small chat model that can show how it reached an answer. For a first try, run the sample, then swap the Persian question for a short math problem and read the reasoning it writes first.
The card says it was adapted from Spark-X2.6-4B with subspace isolated parameter updates and replay regularization, to avoid forgetting what the base knew. It lists native function calling and sandbox execution. Its benchmark table holds targets only, and the authors say audited scores will follow the full post training evaluation.
The numbers in the card's benchmark table are goals the team set, not measured results. Compare the base model's figures with care, since they come from other model cards and papers.
Reasons step by step through math, physics, scientific code and Persian or English questions, with tool calling. A 4.1B model built on Spark-X2.6-4B, for people who want a small bilingual reasoner.
Made by officialmobai on Hugging Face. These notes are Mindket's, written from its model page and model card; the model's own files and license are on Hugging Face.
What it is: Rostam-S1 is a text generation model from Mob AI, published as officialmobai and built together with the Spark project. It starts from XHToken's Spark-X2.6-4B, has 4.1B parameters and comes as Safetensors files for transformers. It targets math, theoretical physics, scientific coding, Persian and English reasoning, and agent tasks.
Who it suits: It suits people who want a compact model that shows its working, especially in Persian or English. The card also points to developers who need function calling.
Industry | Who uses it | How they use it | Example
Education | Students and teachers working in Persian or English | Work through math and physics problems with written reasoning | A derivation explained step by step in Persian
Software | Developers | Try scientific coding help and tool calling on a small model | A short script for a simulation task
Research | Machine learning researchers | Study a 4B reasoning model built on Spark-X2.6-4B | A side by side look at the base model and this one
You can skip it if you need audited benchmark scores today, or a model for languages other than English and Persian.
Where to use it:
Use case | Who | What they get back
Solve a math or physics question | Students | A reasoning trace followed by an answer
Ask in Persian | Persian speakers | Technical answers in Persian
Try agent style tool calls | Developers | Function calls the model decides to make
How to set it up:
pip install -U huggingface_hub
hf download officialmobai/Rostam-S1-4B
How to use it: Send a chat message and keep thinking turned on, so the model writes its reasoning before the answer. The sample sets trust_remote_code to True, which runs code shipped in the model repository.
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
model_id = "officialmobai/Rostam-S1-4B"
tokenizer = AutoTokenizer.from_pretrained(model_id, trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
model_id,
trust_remote_code=True,
dtype=torch.bfloat16,
device_map="auto"
)
messages = [
{"role": "user", "content": "نام شما چیست و سازنده شما کیست؟"}
]
inputs = tokenizer.apply_chat_template(
messages,
tokenize=True,
add_generation_prompt=True,
enable_thinking=True,
return_dict=True,
return_tensors="pt"
).to(model.device)
outputs = model.generate(
**inputs,
max_new_tokens=512,
do_sample=True,
temperature=0.7,
top_p=0.9
)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:], skip_special_tokens=True))
Tool | What it does
apply_chat_template | Turns your messages into the prompt format the model expects
enable_thinking=True | Turns on the reasoning trace before the final answer
generate | Writes the reply, here with up to 512 new tokens, temperature 0.7 and top_p 0.9
tokenizer.decode | Turns the generated tokens back into text
Example: Run the sample as it is. It asks, in Persian, for the model's name and its maker. With thinking on, the model writes out a reasoning trace and then gives its answer.
For newcomers and experts: This is a small chat model that can show how it reached an answer. For a first try, run the sample, then swap the Persian question for a short math problem and read the reasoning it writes first.
The card says it was adapted from Spark-X2.6-4B with subspace isolated parameter updates and replay regularization, to avoid forgetting what the base knew. It lists native function calling and sandbox execution. Its benchmark table holds targets only, and the authors say audited scores will follow the full post training evaluation.
You send a message in English or Persian
The chat template turns thinking on
The model writes a reasoning trace
The final answer follows the trace
Good to know: The numbers in the card's benchmark table are goals the team set, not measured results. Compare the base model's figures with care, since they come from other model cards and papers.
Download its files with Hugging Face's command line:
pip install -U huggingface_hub
hf download officialmobai/Rostam-S1-4B
Then follow the usage in its model card. Nothing in this kit runs by itself.
README.md 6 KB
Listed Hugging Face models in the same category that share the most tags with this one.
| Product | Downloads, last 30 days | Likes | Parameters | License | Last change |
|---|---|---|---|---|---|
| Rostam-S1-4B This page | 2,751 | 5 | 4.1B | apache-2.0 | |
| QuarkShares math · physics · reasoning | 107 | 7 | 9.7B | apache-2.0 | |
| Sage-A1.5Shares agentic · code · text-generation | 22,224 | 404 | 36B | apache-2.0 | |
| Sage-A1.5 GGUF (Q4_K_M)Shares agentic · code · text-generation | 636,834 | 84 | 35.5B | apache-2.0 | |
| K2-Horizon-0.9BShares reasoning · text-generation · transformers | 11,244 | 105 | 1.1B | apache-2.0 | |
| Qwen3.6-35B-A3B Claude 4.7 Opus Reasoning DistilledShares reasoning · text-generation · transformers | 674 | 206 | 36B | apache-2.0 |
Sokheng · Kit
Reads Khmer and English text from documents, receipts and photos of signs, using a detector for text lines and a recogniser for each line. Suits developers who…
Qwen · Kit
Qwen2.5-7B-Instruct as GGUF files in eight quantization sizes, to chat with locally through llama.cpp. For people who want a capable 7.6B model on their own co…
ACE-Step · Kit
Generates music from text with a 4B diffusion decoder, 50 steps and guidance control, aiming for higher audio quality than the base. For creators with a GPU of…
AbdomenAtlas · Kit
Detects and outlines tumors in 9 organs on CT scans, trained with the R-Super method that learns from radiology reports. A research model for medical imaging g…
dBenf · Kit
Answers typed questions about satellite image patches from all 12 Sentinel-2 bands, returning a probability for each option without writing text. A Qwen3.5-0.8…
zimmerk4 · Kit
Plays the full game Getting Over It from the bottom to the end with a small trained policy network that learned inside a JAX physics simulator. For reinforceme…