Instructions to use onnx-community/LFM2-350M-Math-ONNX with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers.js
How to use onnx-community/LFM2-350M-Math-ONNX with Transformers.js:
// npm i @huggingface/transformers import { pipeline } from '@huggingface/transformers'; // Allocate pipeline const pipe = await pipeline('text-generation', 'onnx-community/LFM2-350M-Math-ONNX');
Add response template parsing
#2
by nico-martin HF Staff - opened
Checkpoint-specific response-protocol audit.
This reasoning checkpoint uses <|cot_start|> / <|cot_end|>, not / . Keep thinking and content only. The message-end delimiter also closes a reasoning trace cut short at end of turn. Native tool calling is not documented for this math fine-tune.
Source: https://huggingface.co/LiquidAI/LFM2-350M-Math
response_template describes output parsing syntax, not a guarantee of tool-use quality. Existing chat_template formatting is unaffected.
Xenova changed pull request status to merged