Downloads · 30 days
12
8% of all-time downloads
jncraton/Baguettotron-ct2-int8
Baguettotron-ct2-int8 is a text generation model from jncraton. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
<div align="center" <img src="figures/pleias.jpg" width="60%" alt="Pleias" / </div
Downloads · 30 days
12
8% of all-time downloads
All-time downloads
142
Public
Repo size
323 MB
Likes
0
Public
Click a slice to open those files.
.bin323 MB · 98%
From the Hugging Face model README
Baguettotron is a 321 million parameters generalist Small Reasoning Model, trained on 200 billions tokens from <a href="https://huggingface.co/PleIAs/Baguettotron">SYNTH</a>, a fully open generalist dataset.
Despite being trained on consideraly less data, Baguettotron outperforms most SLM of the same size range on non-code industry benchmarks, providing an unprecedented balance between memory, general reasoning, math and retrieval performance.
<p align="center"> <img width="80%" src="figures/training_efficiency.jpeg"> </p>The name is both a nod to French origins and to the unusual shape of the model: with 80 layers, Baguettotron is currently the deepest SLM in its size range.
Baguettron has been natively trained for instructions with thinking traces. We implemented a series of dedicated pipelines for:
Baguettotron is able to read and write in the main European languages: French, German, Italian, Spanish, Polish and, to a lesser extent Latin and Dutch. Reasoning traces are exclusively written in English.
Full synthetic training makes relatively straightforward to expand language support and we lookg forward to either bring more languages or create language-specific variants.
Baguettotron is a 321M parameters decoders with a standard Qwen/Llama-like design, except for extreme depth with 80 layers (a type of model we internally nicknamed "baguette")
<p align="center"> <img width="80%" src="figures/baguettotron_structure.png"> </p>Baguettotron was trained on 16 h100 from Jean Zay (compute plan n°A0191016886). An unusual feature of training on SYNTH was having reasoning signals from MMLU and other major industry benchmarks very early on. We were able to empirically measure consistent improvements from stacking more layers.
<p align="center"> <img width="80%" src="figures/training_baguettotron.png"> </p>Our current hypothesis is that deeper architecture benefits more from dense reasoning data, as the model is more commonly exposed to string sequences requiring intensive computation or knowledge interconnection.
We evaluated Baguettotron on three major industry benchmarks MMLU (general reasoning and memorization), math (gsm8k) and retrieval (HotPotQA). With only 321M parameters, Baguettotron gets close to Qwen-0.6B performance and significantly outperforms similarly sized Gemma.
<p align="center"> <img width="80%" src="figures/table_evaluation.png"> </p>Baguettotron has been trained on the standard instruction style from Qwen.
<|im_start|>user
Who are you?<|im_end|>
<|im_start|>assistant
<think>
Baguettotron has support for multi-turn. We recommend to use a "rolling" thinking, by systematically appending thinking traces for each new generation but discarding the past one.
It's possible to remove thinking traces by swapping <think> with a closing </think> tag.
<|im_start|>user
Who are you?<|im_end|>
<|im_start|>assistant
</think>
Yet, our current tests show a significantly decreased performance for most tasks, especially memorization of encyclopedic knowledge.
For RAG, Baguettotron uses a special syntax to pass on references:
<|im_start|>user
Who are you?
<source_1>[…]</source_1>
<source_2>[…]</source_2>
<|im_end|>
<|im_start|>assistant
<think>
Afterwards the model will return an answer with grounding references (<ref>[quote]</ref>). The draft will be affected as well and focus on source synthesis rather than reminiscence of internal knowledge base.