Gen-Verse/ReasonFlux-F1

Model

ReasonFlux: Hierarchical LLM Reasoning via Scaling Thought Templates

10

17 commits

1 linked in READMEs

updated Mar 22, 2025

See the code

README

ReasonFlux: Hierarchical LLM Reasoning via Scaling Thought Templates

Revolutionary template-augmented reasoning paradigm enpowers a 32B model to outperform o1-mini and DeepSeek-R1 distilled models in reasoning tasks.

Task/Pass@1ReasonFlux-F1-32BReasonFlux-Zero-32BR1-Distill-32Bo1-miniLIMO -32Bs1-32B
MATH50096.091.294.390.090.693.0
AIME 202476.756.772.656.750.056.7
AIME 202553.337.246.6750.837.249.3
GPQA-Diamond67.261.262.160.065.259.6

ReasonFlux-F1-32B

ReasonFlux-F1-32B is our finetuned SOTA-level reasoning LLM by leveraging the template-augmented reasoning trajectories from our ReasonFlux-Zero.

Evaluation

We present the evaluation results of our ReasonFlux-F1-32B on challenging reasoning tasks including AIME2024,AIM2025,MATH500 and GPQA-Diamond. To make a fair comparison, we report the results of the LLMs on our evaluation scripts in ReasonFlux-F1.

ModelAIME2024@pass1AIME2025@pass1MATH500@pass1GPQA@pass1
QwQ-32B-Preview46.737.290.665.2
LIMO-32B56.344.594.858.1
s1-32B56.749.393.059.6
OpenThinker-32B66.053.394.860.1
R1-Distill-32B70.046.792.059.6
ReasonFlux-Zero-32B56.737.291.261.2
ReasonFlux-F1-32B76.753.396.067.2

Quick start with VLLM

from vllm import LLM, SamplingParams
from transformers import AutoTokenizer

model_id = 'Gen-Verse/ReasonFlux-F1'

model = LLM(
    model_id,
    tensor_parallel_size=8,
)
tokenizer = AutoTokenizer.from_pretrained(model_id)

sampling_params = SamplingParams(
    max_tokens=32768,
)
# 2022 AIME I Problems/Problem 15
question = """Let \(x, y\), and \(z\) be positive real numbers satisfying the system of equations:
\[
\begin{array}{c}
\sqrt{2 x-x y}+\sqrt{2 y-x y}=1 \\
\sqrt{2 y-y z}+\sqrt{2 z-y z}=\sqrt{2} \\
\sqrt{2 z-z x}+\sqrt{2 x-z x}=\sqrt{3} .
\end{array}
\]
Then \(\left[(1-x)(1-y)(1-z)\right]^{2}\) can be written as \(\frac{m}{n}\), where \(m\) and \(n\) are relatively prime positive integers. Find \(m+n\)."""
ds_prompt="<|User|>\n" + question + "<|Assistant|>\n"
output = model.generate(ds_prompt, sampling_params=sampling_params)
print(output[0].outputs[0].text)

Citation

@article{yang2025reasonflux,
  title={ReasonFlux: Hierarchical LLM Reasoning via Scaling Thought Templates},
  author={Yang, Ling and Yu, Zhaochen and Cui, Bin and Wang, Mengdi},
  journal={arXiv preprint arXiv:2502.06772},
  year={2025}
}
conversational
endpoints_compatible
full
generated_from_trainer
llama-factory
qwen2
safetensors
text-generation
text-generation-inference
transformers

Contributors

BitStarWalkin

12 commits

Lingaaaaaaa

5 commits

Gen-Verse/ReasonFlux-F1

Model

ReasonFlux: Hierarchical LLM Reasoning via Scaling Thought Templates

10

17 commits

1 linked in READMEs

updated Mar 22, 2025

See the code

README

ReasonFlux: Hierarchical LLM Reasoning via Scaling Thought Templates

Revolutionary template-augmented reasoning paradigm enpowers a 32B model to outperform o1-mini and DeepSeek-R1 distilled models in reasoning tasks.

Task/Pass@1ReasonFlux-F1-32BReasonFlux-Zero-32BR1-Distill-32Bo1-miniLIMO -32Bs1-32B
MATH50096.091.294.390.090.693.0
AIME 202476.756.772.656.750.056.7
AIME 202553.337.246.6750.837.249.3
GPQA-Diamond67.261.262.160.065.259.6

ReasonFlux-F1-32B

ReasonFlux-F1-32B is our finetuned SOTA-level reasoning LLM by leveraging the template-augmented reasoning trajectories from our ReasonFlux-Zero.

Evaluation

We present the evaluation results of our ReasonFlux-F1-32B on challenging reasoning tasks including AIME2024,AIM2025,MATH500 and GPQA-Diamond. To make a fair comparison, we report the results of the LLMs on our evaluation scripts in ReasonFlux-F1.

ModelAIME2024@pass1AIME2025@pass1MATH500@pass1GPQA@pass1
QwQ-32B-Preview46.737.290.665.2
LIMO-32B56.344.594.858.1
s1-32B56.749.393.059.6
OpenThinker-32B66.053.394.860.1
R1-Distill-32B70.046.792.059.6
ReasonFlux-Zero-32B56.737.291.261.2
ReasonFlux-F1-32B76.753.396.067.2

Quick start with VLLM

from vllm import LLM, SamplingParams
from transformers import AutoTokenizer

model_id = 'Gen-Verse/ReasonFlux-F1'

model = LLM(
    model_id,
    tensor_parallel_size=8,
)
tokenizer = AutoTokenizer.from_pretrained(model_id)

sampling_params = SamplingParams(
    max_tokens=32768,
)
# 2022 AIME I Problems/Problem 15
question = """Let \(x, y\), and \(z\) be positive real numbers satisfying the system of equations:
\[
\begin{array}{c}
\sqrt{2 x-x y}+\sqrt{2 y-x y}=1 \\
\sqrt{2 y-y z}+\sqrt{2 z-y z}=\sqrt{2} \\
\sqrt{2 z-z x}+\sqrt{2 x-z x}=\sqrt{3} .
\end{array}
\]
Then \(\left[(1-x)(1-y)(1-z)\right]^{2}\) can be written as \(\frac{m}{n}\), where \(m\) and \(n\) are relatively prime positive integers. Find \(m+n\)."""
ds_prompt="<|User|>\n" + question + "<|Assistant|>\n"
output = model.generate(ds_prompt, sampling_params=sampling_params)
print(output[0].outputs[0].text)

Citation

@article{yang2025reasonflux,
  title={ReasonFlux: Hierarchical LLM Reasoning via Scaling Thought Templates},
  author={Yang, Ling and Yu, Zhaochen and Cui, Bin and Wang, Mengdi},
  journal={arXiv preprint arXiv:2502.06772},
  year={2025}
}
conversational
endpoints_compatible
full
generated_from_trainer
llama-factory
qwen2
safetensors
text-generation
text-generation-inference
transformers

Contributors

BitStarWalkin

12 commits

Lingaaaaaaa

5 commits