Downloads · 30 days
108
12% of all-time downloads
LumiOpen/Llama-Poro-2-8B-Long-Math-Reasoning-RL-Preview
Llama-Poro-2-8B-Long-Math-Reasoning-RL-Preview is a text generation model from LumiOpen. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as llama3.1.
Poro 2 8B Math Reasoning RL Preview is a specialized model focused on mathematical reasoning and problem-solving. This preview model was created through reinforcement learning (RL) on top of the Math Reasoning SFT che…
Downloads · 30 days
108
12% of all-time downloads
All-time downloads
916
Public
Parameters
8B
16.1 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors16.1 GB · 100%
From the Hugging Face model README
Poro 2 8B Math Reasoning RL Preview is a specialized model focused on mathematical reasoning and problem-solving. This preview model was created through reinforcement learning (RL) on top of the Math Reasoning SFT checkpoint. This model excels at mathematical reasoning tasks but is not optimized for general conversational use or other domains.
The model produces reasoning traces in both English and Finnish, adapting the language of its reasoning based on the language of the input prompt. The RL training used separate environments for English and Finnish math problems, a novel approach that maintains strong bilingual reasoning performance.
Poro 2 was created in a collaboration between AMD Silo AI, the TurkuNLP group of the University of Turku, and High Performance Language Technologies (HPLT). Training was conducted on the LUMI supercomputer and TensorWave AMD MI325X clusters, using compute resources generously provided by CSC - IT Center for Science, Finland.
For more details on our training and data generation pipeline, check out our Context Extension and Reinforcement Learning Playbook.
The Poro 2 Long model family extends the Poro 2 models with longer context support and checkpoints trained especially on math reasoning. There are four checkpoints released: a base model, an instruction-tuned model, a math reasoning SFT checkpoint, and the final math reasoning RL checkpoint.
| Base Model | Instruct | Math Reasoning SFT | Math Reasoning RL |
|---|---|---|---|
| Poro 2 Long Base | Poro 2 Long Instruct | Poro 2 Long Math Reasoning SFT | Poro 2 Long Math Reasoning RL |
Poro 2 8B Math Reasoning RL Preview is based on the Llama 3.1 8B architecture and has been fine-tuned for mathematical reasoning through supervised fine-tuning followed by reinforcement learning.
| Hyperparameter | Value |
|---|---|
| n_parameters | 8.03B |
| n_layers | 32 |
| n_heads | 32 |
| n_kv_heads | 8 |
| d_model | 4096 |
| vocab_size | 128384 |
| max_sequence_length | 131072 |
| base_model | Poro 2 Long Base |
The base model underwent context extension using LongRoPE scaling to support 131k tokens.
The SFT phase focused on mathematical reasoning and used:
Following SFT, the model was further trained using reinforcement learning with separate English and Finnish math environments:
| Stage | Model | Dataset | License |
|---|---|---|---|
| CPT | Llama-Poro-2-Long-Base | https://huggingface.co/datasets/HuggingFaceFW/finepdfs-edu | ODC-BY-1.0 |
| CPT | Llama-Poro-2-Long-Base | https://huggingface.co/datasets/HuggingFaceTB/finemath | ODC-BY-1.0 |
| CPT | Llama-Poro-2-Long-Base | https://huggingface.co/datasets/bigcode/starcoderdata | Refer source materials |
| Instruct SFT | Llama-Poro-2-Long-Instruct | https://huggingface.co/datasets/LumiOpen/poro2-instruction-collection | Llama 3 Community License |
| Math SFT | Llama-Poro-2-Long-Math-Reasoning-SFT-Preview | https://huggingface.co/datasets/nvidia/Llama-Nemotron-Post-Training-Dataset | CC-BY-4.0 |
| Math SFT | Llama-Poro-2-Long-Math-Reasoning-SFT-Preview | https://huggingface.co/datasets/LumiOpen/Llama-Nemotron-Post-Training-Dataset-SFT-math-FI | CC-BY-4.0 |
| Math RL | Llama-Poro-2-8B-Long-Math-Reasoning-RL-Preview | https://huggingface.co/datasets/Kwai-Klear/KlearReasoner-MathSub-30K | Apache-2.0 |
| Hyperparameter | Value |
|---|---|
| Epochs | 3 |
| Global batch size | 128 |
| Learning rate | 5e-5 |
| Max sequence length | 32,768 |
| Packing | Yes |
Poro 2 8B Math Reasoning RL Preview demonstrates strong mathematical reasoning capabilities in both English and Finnish, showing substantial improvements over both the SFT checkpoint and the original Poro 2 8B Instruct model. On AIME 2025, the model achieves performance comparable to models 6x its size.
| Model | Math-500 EN | Math-500 FI | AIME25 EN | AIME25 FI | AIME26 EN | AIME26 FI |
|---|---|---|---|---|---|---|
| Poro 2 8B Math Reasoning RL Preview | 0.97 | 0.95 | 0.607 | 0.521 | 0.678 | 0.572 |
| Poro 2 8B Math Reasoning SFT Preview | 0.96 | 0.928 | 0.499 | 0.403 | 0.604 | 0.478 |
| Poro 2 8B Instruct | - | - | 0.009 | 0.003 | 0.010 | 0.006 |
All AIME results are avg@64 with temperature 1.0.
from transformers import AutoTokenizer, AutoModelForCausalLM
import torch
model_name = "LumiOpen/Llama-Poro-2-8B-Long-Math-Reasoning-RL-Preview"
tokenizer = AutoTokenizer.from_pretrained(model_name)
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype=torch.bfloat16,
device_map="auto"
)
# Finnish conversation example
messages = [
{"role": "user", "content": "Kuinka monta positiivista kokonaislukujakajaa luvulla 196 on?"}
]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
return_tensors="pt"
)
outputs = model.generate(
inputs,
max_new_tokens=32000,
temperature=0.7,
do_sample=True,
pad_token_id=tokenizer.eos_token_id
)
response = tokenizer.decode(outputs[0], skip_special_tokens=True)
print(response)
Poro 2 8B Math Reasoning RL Preview is designed for:
Note: This model is optimized specifically for mathematical reasoning and is not suitable for general conversational AI or other domains.
Poro 2 8B Math Reasoning RL Preview is a specialized model optimized for mathematical reasoning in English and Finnish. As a preview release, this model has specific limitations:
Key limitations:
Safety Considerations:
Built with Llama
Poro 2 8B Math Reasoning RL Preview is released under the Llama 3.1 Community License. Please review the license terms before use.
@misc{poro2_long_2025, title={}, author={}, year={}, howpublished={} }
We thank CSC - IT Center for Science, Finland for providing access to the LUMI supercomputer, and TensorWave for providing access to AMD MI325X GPU clusters. This work was supported by the High Performance Language Technologies (HPLT) project and conducted in collaboration with TurkuNLP from the University of Turku. This project has received funding from the European Union's Horizon Europe research and innovation programme under grant agreement No 101070350.