Function calling for ALIA 40B
Led function calling for ALIA 40B from scratch: the training data, full fine-tuning on 32 H100 GPUs and the evaluation.
ALIA 40B is a multilingual model trained from scratch at the Barcelona Supercomputing Center. I led the work to give it function calling, starting from scratch.
I built the training data: multi-turn samples in Spanish generated from prompts and traces, plus open-source datasets that I adapted, filtered and distilled.
I ran full supervised fine-tuning of the 40B model on 32 H100 GPUs, first without reasoning and then with explicit reasoning before each call. Reasoning doubled the BFCL score, from 20% to 40%.
On the official BFCL tables, multi-turn accuracy went from 15.5% to 40.0%, multi-turn with a missing function from 2.0% to 22.0% and live parallel calls from 56.3% to 87.5%. Irrelevance detection went the other way, from 84.0% to 70.6%.
Results
BFCL by category, with and without reasoning, biggest gains first
- With reasoning
- Without reasoning
ALIA-40b-fc-2606 (reasoning) vs ALIA-40b-fc-2605 (no reasoning), from the official model cards.
Show data
| With reasoning | Without reasoning | |
|---|---|---|
| Live parallel | 87.5 | 56.3 |
| Multi-turn base | 40.0 | 15.5 |
| Multi-turn, missing function | 22.0 | 2.0 |
| Multi-turn, long context | 25.5 | 7.0 |
| Relevance detection | 93.8 | 81.3 |
| Live simple | 84.5 | 74.8 |
| Non-live parallel | 89.5 | 80.5 |
| Multi-turn, missing parameter | 20.0 | 12.0 |
| Non-live multiple | 92.0 | 94.5 |
| Irrelevance detection | 70.6 | 84.0 |
Next project
All workMagma
MLOps automation suite for HPC: fine-tuning, model serving and Docker-to-Singularity conversion.
~40 repos · 7k+ runs a yearBarcelona Supercomputing Center