arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2605.28827cs.CLcs.LG
收藏

RightNow-Arabic-0.5B-Turbo: 通过词汇注入和边缘优先部署的开源子10亿参数阿拉伯语语言模型

RightNow-Arabic-0.5B-Turbo: An Open Sub-1B Arabic Language Model via Vocabulary Injection and Edge-First Deployment

RightNow AI

Jaber Jaber, Osama Jaber

AI总结:

针对现有阿拉伯语模型要么是多语言模型对阿拉伯语支持不足,要么是参数过大难以部署的问题,提出基于Qwen2.5-0.5B的518M参数阿拉伯语专用模型RightNow-Arabic-0.5B-Turbo,通过词汇注入、继续预训练和监督微调等方法,在三个阿拉伯语基准上达到35.9%平均准确率,与1.5B模型性能相当,并实现边缘端高效部署。

摘要:

开源的阿拉伯语大语言模型分为两类:子10亿参数的多语言模型将阿拉伯语视为次要语言(如Qwen2.5-0.5B、Falcon-H1-0.5B),以及需要服务器运行的7B-70B阿拉伯语专用模型(如Jais、AceGPT、ALLaM、SILMA)。唯一已发表的子20亿参数阿拉伯语专用模型Kuwain-1.5B从未发布权重。我们提出RightNow-Arabic-0.5B-Turbo,一个基于Qwen2.5-0.5B构建的518M参数阿拉伯语专用解码器LLM。该流程通过均值子词初始化添加27,032个阿拉伯语token,在8xH100上使用FSDP、FlashAttention变长打包和Liger融合内核继续预训练504M阿拉伯语token,然后对129,116个阿拉伯语指令对应用仅响应损失掩码的有监督微调,对6,750个阿拉伯语偏好对应用直接偏好优化,并对三个检查点进行权重汤合并。在三个lm-evaluation-harness阿拉伯语基准(COPA-ar、Arabic HellaSwag、ArabicMMLU)上,合并模型达到35.9%的平均准确率,击败所有同类开源模型,在COPA-ar上与Falcon-H1-1.5B持平(58.4%)但规模仅为三分之一,并以1/18的参数恢复了SILMA-9B平均性能的67%。边缘构建量化至398 MB(q4_k_m),通过llama.cpp在单个H100上以批量大小1达到635 tokens/s。所有代码(25个脚本共5,555行)、权重(bf16、int8和四种GGUF量化)及基准测试脚本已在https://huggingface.co/RightNowAI/RightNow-Arabic-0.5B-Turbo开源。

英文摘要:

Open Arabic large language models split into two classes: sub-1B multilingual models that treat Arabic as an afterthought (Qwen2.5-0.5B, Falcon-H1-0.5B), and 7B-70B Arabic-specialized models that require a server to run (Jais, AceGPT, ALLaM, SILMA). The one published attempt at a sub-2B Arabic-specialized model, Kuwain-1.5B, never released its weights. We present RightNow-Arabic-0.5B-Turbo, a 518M-parameter Arabic-specialized decoder LLM built on Qwen2.5-0.5B. The pipeline adds 27,032 Arabic tokens via mean-subtoken initialization, continues pretraining on 504M Arabic tokens on 8xH100 with FSDP, FlashAttention varlen packing, and Liger fused kernels, then applies supervised fine-tuning on 129,116 Arabic instruction pairs with response-only loss masking, direct preference optimization on 6,750 Arabic preference pairs, and weight soup merging across three checkpoints. On three lm-evaluation-harness Arabic benchmarks (COPA-ar, Arabic HellaSwag, ArabicMMLU) the merged model reaches 35.9% mean accuracy, beats every same-class open model, ties Falcon-H1-1.5B on COPA-ar (58.4%) at one-third the size, and recovers 67% of SILMA-9B's mean at 1/18 the parameters. The edge build quantizes to 398 MB (q4_k_m) and delivers 635 tokens/s at batch size 1 on a single H100 via llama.cpp. All code (5,555 lines across 25 scripts), weights (bf16, int8, and four GGUF quantizations), and benchmark scripts are released at https://huggingface.co/RightNowAI/RightNow-Arabic-0.5B-Turbo.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑