Mochi is a math-reasoning fine-tune of
GLM-4.7-Flash, trained on the
Open Math Reasoning (mini) dataset — the same chain-of-thought data used in the winning submission to the
AI Mathematical Olympiad Progress Prize 2 (AIMO-2) on Kaggle.
The goal of this fine-tune is to sharpen GLM-4.7-Flash's step-by-step mathematical reasoning while keeping the small, fast footprint of the Flash base model.
Looking for a quantized/local version? See
mochi-gguf for GGUF builds you can run with
llama.cpp, Ollama, or LM Studio.
1from transformers import AutoModelForCausalLM, AutoTokenizer
2
3model_id = "artindnr/mochi"
4
5tokenizer = AutoTokenizer.from_pretrained(model_id)
6model = AutoModelForCausalLM.from_pretrained(model_id, device_map="auto")
7
8messages = [
9 {"role": "user", "content": "If x^2 - 5x + 6 = 0, what are the values of x?"}
10]
11
12inputs = tokenizer.apply_chat_template(
13 messages, add_generation_prompt=True, return_tensors="pt"
14).to(model.device)
15
16outputs = model.generate(inputs, max_new_tokens=512)
17print(tokenizer.decode(outputs[0], skip_special_tokens=True))
You can also load Mochi with
Unsloth for faster inference and further fine-tuning:
1from unsloth import FastLanguageModel
2
3model, tokenizer = FastLanguageModel.from_pretrained(
4 model_name="artindnr/mochi",
5 max_seq_length=4096,
6 load_in_4bit=True,
7)
If you use this model, please also credit the underlying dataset and competition it draws from:
1@misc{openmathreasoning,
2 title = {OpenMathReasoning},
3 author = {NVIDIA},
4 year = {2025},
5 url = {https://huggingface.co/datasets/nvidia/OpenMathReasoning}
6}