Based on
LFM2-350M
, LFM2-350M-Math is a tiny reasoning model designed for tackling tricky math problems.
You can find more information about other task-specific models in this
blog post
.
📄 Model details
Generation parameters
: We strongly recommend using greedy decoding with a
temperature=0.6
,
top_p=0.95
,
min_p=0.1
,
repetition_penalty=1.05
.
System prompt
: We recommend not using any system prompt.
Supported languages
: English only.
Chat template
: LFM2 uses a ChatML-like chat template as follows:
<|startoftext|><|im_start|>user
Find the sum of all integer bases $b>9$ for which $17_{b}$ is a divisor of $97_{b}$.<|im_end|>
<|im_start|>assistant
<|cot_start|>First, we need to convert $17_{b}$ and $97_{b}$ into base 10. [...]<|im_end|>
You can automatically apply it using the dedicated
.apply_chat_template()
function from Hugging Face transformers.
⚠️ The model is intended for single-turn conversations.
📈 Performance
Reasoning enables models to better structure their thought process, explore multiple solution strategies, and self-verify their final responses. Augmenting tiny models with extensive test-time compute in this way allows them to even solve challenging competition-level math problems. Our benchmark evaluations demonstrate that LFM2-350M-Math is highly capable for its size.
As we are excited about edge deployment, our goal is to limit memory consumption and latency. Our post-training recipe leverages reinforcement learning to explicitly bring down response verbosity where it is not desirable. To this end, we combine explicit reasoning budgets with difficulty-aware advantage re-weighting. Please refer to our separate
blog post
for a detailed post-training recipe.
LFM2-350M-Math huggingface.co is an AI model on huggingface.co that provides LFM2-350M-Math's model effect (), which can be used instantly with this LiquidAI LFM2-350M-Math model. huggingface.co supports a free trial of the LFM2-350M-Math model, and also provides paid use of the LFM2-350M-Math. Support call LFM2-350M-Math model through api, including Node.js, Python, http.
LFM2-350M-Math huggingface.co is an online trial and call api platform, which integrates LFM2-350M-Math's modeling effects, including api services, and provides a free online trial of LFM2-350M-Math, you can try LFM2-350M-Math online for free by clicking the link below.
LiquidAI LFM2-350M-Math online free url in huggingface.co:
LFM2-350M-Math is an open source model from GitHub that offers a free installation service, and any user can find LFM2-350M-Math on GitHub to install. At the same time, huggingface.co provides the effect of LFM2-350M-Math install, users can directly use LFM2-350M-Math installed effect in huggingface.co for debugging and trial. It also supports api for free installation.