Luth-LFM2-700M
Luth-LFM2-700M is a French fine-tuned version of LFM2-700M in collaboration with Liquid AI, trained on the Luth-SFT dataset. The model has improved its French capabilities in instruction following, math, and general knowledge. Additionally, its English capabilities have remained stable.
Our Evaluation, training and data scripts are available on GitHub, along with the Blog we wrote, to further detail our recipe.
Model Details
The model was trained using full fine-tuning on the Luth-SFT dataset with Axolotl. The resulting model was then merged back with LFM2-700M. This process successfully retained the model's English capabilities while improving its performance in French.
Benchmark Results
We used LightEval for evaluation, with custom tasks for the French benchmarks. The models were evaluated with a temperature=0
.
French Benchmark Scores
Benchmark | LFM2-700M | Luth-LFM2-700M |
---|---|---|
IFEval-fr (strict prompt) | 41.04 | 51.76 |
GPQA-fr | 28.07 | 28.04 |
MMLU-fr | 43.73 | 44.72 |
MATH-500-fr | 33.60 | 36.60 |
Arc-Chall-fr | 36.27 | 36.70 |
Hellaswag-fr | 41.51 | 48.25 |
English Benchmark Scores
Benchmark | LFM2-700M | Luth-LFM2-700M |
---|---|---|
IFEval-en (strict prompt) | 64.14 | 64.70 |
GPQA-en | 28.20 | 25.88 |
MMLU-en | 50.73 | 50.92 |
MATH-500-en | 33.60 | 37.80 |
Arc-Chall-en | 38.48 | 38.91 |
Hellaswag-en | 52.67 | 54.08 |
Code Example
from transformers import AutoTokenizer, AutoModelForCausalLM
tokenizer = AutoTokenizer.from_pretrained("kurakurai/Luth-LFM2-700M")
model = AutoModelForCausalLM.from_pretrained("kurakurai/Luth-LFM2-700M")
messages = [
{"role": "user", "content": "Quelle est la capitale de la France?"},
]
inputs = tokenizer.apply_chat_template(
messages,
add_generation_prompt=True,
tokenize=True,
return_dict=True,
return_tensors="pt",
).to(model.device)
outputs = model.generate(**inputs, max_new_tokens=100)
print(
tokenizer.decode(
outputs[0][inputs["input_ids"].shape[-1] :], skip_special_tokens=True
)
)
Citation
@misc{luthlfm2kurakurai,
title = {Luth-LFM2-700M},
author = {Kurakura AI Team},
year = {2025},
howpublished = {\url{https://huggingface.co/kurakurai/Luth-LFM2-700M}},
note = {LFM2-700M fine-tuned on French datasets}
}
- Downloads last month
- 156