Agaram 2.5B:首个从头训练的以泰米尔语为核心的工具调用语言模型,面向低资源语言的实践指南
Agaram 2.5B: The First Tamil-First Language Model Trained from Scratch with Tool Calling. A Playbook for Under-Represented Languages
AI总结:
本研究训练了首个以泰米尔语为核心的工具调用语言模型Agaram 2.5B,其翻译、泰米尔语相关指标优于同类模型,同时指出其知识能力较弱的问题,为低资源语言模型开发提供了实践指南。
摘要:
我们从头训练了Agaram 2.5B,这是一个25亿参数的泰米尔语-英语语言模型,在约500亿个token(其中58%为泰米尔语,其余为英语、数学、代码及平行文本)上进行训练,使用8块H100 GPU的一个节点,耗时约6天;该模型采用了新的分词器,与我们的首个模型不同,它保留了换行符。我们在134428个对话上进行了监督微调,这些对话的回复由一个开放权重的教师模型生成,再加上三轮短的针对性微调,将其转化为一个聊天模型,该模型可使用泰米尔文、罗马化泰米尔语(Tanglish)和英语回答问题,且能调用工具:在25个训练中出现过schema的工具提示中,它正确选择了23次工具,且准确给出了预期参数13次。该发布模型在所有6个FLORES和IN22翻译方向上的表现优于20亿参数的印度基础模型Sarvam-1(FLORES chrF指标:翻译成泰米尔语为54.3,翻译成英语为55.2,而Sarvam-1分别为49.2和44.2),在原生泰米尔语的IndicIFEval指标上几乎是其基础模型的两倍(19.3% vs 10.0%)。它在知识方面表现较弱:阅读理解和知识基准测试结果接近随机水平,在一位母语使用者编写的50个保留日常问题中,一个大语言模型评判员对其回复的可用性评分达46%(三轮测试中50个里有22-24个可用;50个里有23个的95%置信区间为33%-60%),几乎所有失败案例都是事实错误。我们的另外两个监督微调实验仅改变了答案格式,未改变知识相关指标。我们还介绍了我们的首个模型Agaram 1.5B,其失败案例影响了本次的选择;评判员在相同回复的不同轮次间评分的变化;以及针对性微调的每一项训练内容、前沿模型文本在数据中的来源。该项目使用计算资源信用和自有资金,两个模型总花费约13300美元;模型权重已发布(法律审查后公布许可证),该模型的GGUF文件在此http URL,代码在此https URL。
英文摘要:
We present Agaram 2.5B, a Tamil-first language model trained from scratch that converses in Tamil script, romanized Tanglish and English, and calls tools. Our first model, Agaram 1.5B, guided the new base, tokenizer and fine-tuning recipe: we pretrained a new 2.53B-parameter base on 50 billion tokens, 58% of them Tamil, with a tokenizer that needs 1.55 tokens per Tamil word where Qwen2.5's needs 9.44. A four-day public preview of our first 2.5B chat model showed where it fell short with real users, and we rebuilt supervised fine-tuning around what we saw, on 222,662 records. The released model scores above Sarvam-1 in all six translation directions we measured (FLORES chrF 56.9 into Tamil and 55.4 into English), chooses the expected tool on all 25 prompts of a tool set that was used during checkpoint selection and whose schemas appear in training, with exact arguments on 16, and was preferred over the preview model by an LLM judge on 100 sealed human-written prompts (net preference +30 points, 95% interval +14.5 to +45.0). On FLORES it also scores above Google's Gemma 4 E4B-it and our fine-tuned variant of it in both directions, with 2.53B parameters against E4B's 4.5B effective parameters. Factual knowledge and reliable refusal of harmful requests remain open problems, which we set out as future work. The base and chat weights and GGUF files are released under Apache-2.0, and this report gives a full account of the data, training and evaluation as a playbook for building language models for under-represented languages.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。