Instructions to use abhyudayhari/tiny-aya-reason-vr-math with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use abhyudayhari/tiny-aya-reason-vr-math with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="abhyudayhari/tiny-aya-reason-vr-math") 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("abhyudayhari/tiny-aya-reason-vr-math") model = AutoModelForCausalLM.from_pretrained("abhyudayhari/tiny-aya-reason-vr-math", 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 abhyudayhari/tiny-aya-reason-vr-math with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "abhyudayhari/tiny-aya-reason-vr-math" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "abhyudayhari/tiny-aya-reason-vr-math", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/abhyudayhari/tiny-aya-reason-vr-math
- SGLang
How to use abhyudayhari/tiny-aya-reason-vr-math 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 "abhyudayhari/tiny-aya-reason-vr-math" \ --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": "abhyudayhari/tiny-aya-reason-vr-math", "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 "abhyudayhari/tiny-aya-reason-vr-math" \ --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": "abhyudayhari/tiny-aya-reason-vr-math", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use abhyudayhari/tiny-aya-reason-vr-math with Docker Model Runner:
docker model run hf.co/abhyudayhari/tiny-aya-reason-vr-math
tiny-aya-reason-vr-math
This is the math-only GRPO stage of tiny-aya-reason-vr. It is CohereLabs/tiny-aya-global after 250 steps of GRPO (DAPO loss) on maths problems with verifiable rewards, with the LoRA weights merged into the model.
It does two jobs:
- Base for the final model. The mixed-domain stage was trained on top of this model, so the tiny-aya-reason-vr-lora adapter loads onto it.
- Baseline. It is the math-only comparison point for the final model.
For general use, prefer the final model, tiny-aya-reason-vr.
Results
All scores are accuracy (%).
| Area | Benchmark | Base | This model | Final mixed model (tiny-aya-reason-vr) |
|---|---|---|---|---|
| Math | GSM8K | 72.55 | 77.48 | 78.24 |
| Math | MATH-500 | 28.20 | 29.00 | 33.40 |
| Math | SVAMP | 78.33 | 85.00 | 83.33 |
| Math | ASDiv | 82.69 | 84.22 | 85.14 |
| Math | GSM-Hard | 26.76 | 31.08 | 30.40 |
| Math | GSM-Plus | 55.95 | 62.71 | 64.24 |
| Math | Minerva Math | 10.29 | 11.76 | 12.13 |
| Math | OlympiadBench | 7.40 | 10.15 | 8.61 |
| Math | AMC 2023 (40 problems) | 2.50 | 17.50 | 10.00 |
| Math | AIME 2024 / 2025 | 0.00 | 0.00 | 0.00 |
| Multilingual math | MGSM (10 languages) | 58.44 | 66.76 | 66.44 |
| Multilingual math | GSM8K Indic (20 variants) | 31.38 | 34.91 | 35.62 |
| Finance | FinQA | 40.63 | 42.98 | 49.00 |
| Finance | IndicFin | 16.67 | 16.67 | 23.33 |
| Logic | BBH logic (8 tasks) | 48.30 | 57.80 | 57.95 |
| Logic | Knights & Knaves | 24.00 | 22.00 | 30.00 |
| Code | HumanEval | 56.10 | 57.93 | 57.32 |
| Code | MBPP | 54.09 | 53.31 | 56.81 |
Bold marks a score above the base model.
eval_results/ has a summary and every model output for each benchmark, with the extracted answer and whether it was correct.
Training
| Setting | Value |
|---|---|
| Data | 8,684 prompts: 5,887 from the GSM8K train split and 2,797 MATH-style problems |
| Reward | binary math-verify check of the last \boxed{} answer against the reference |
| Steps | 250 |
| LoRA | r 64, alpha 128, all attention and MLP projections |
| Loss | DAPO, ฮฒ (KL) 0, clip ฮต 0.2 low / 0.28 high |
| Generations | 8 per prompt, temperature 1.0 |
| Max completion length | 1536 tokens |
| Learning rate | 2e-5, linear decay |
| Stack | AlignTune (TRL backend), colocated vLLM |
Mean training reward rose from about 0.50 to about 0.75 within roughly 50 steps, then stayed flat. The full graphs and training log are in training_graphs/.
Files
- Root: the merged model (bf16 safetensors), with the config, tokenizer and chat template.
lora/: the LoRA adapter on its own, to load ontoCohereLabs/tiny-aya-global.
The generation config treats both <|END_OF_TURN_TOKEN|> (id 3) and <EOS_TOKEN> (id 6) as stop tokens. The model was trained with those settings, but the base weights are unchanged.
Licence
The licence is CC-BY-NC 4.0, inherited from tiny-aya-global. Use must also follow Cohere Labs' Acceptable Use Policy.
- Downloads last month
- 27