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

H2LooP Spark Preview:为低级嵌入式系统代码进行大语言模型的持续预训练

H2LooP Spark Preview: Continual Pretraining of Large Language Models for Low-Level Embedded Systems Code

H2LooP.ai

Amit Singh, Vedant Nipane, Pulkit Agrawal, Jatin Kishnani, Sairanjan Mishra

AI总结:

本文提出H2LooP Spark Preview,通过持续预训练方法,利用BF16 LoRA技术将OLMo-3-7B模型适应于嵌入式系统领域,显著降低困惑度并提升代码生成性能。

摘要:

大型语言模型(LLMs)在通用编程语言中表现出强大的代码生成能力,但在低级嵌入式系统编程等专业领域仍有局限。该领域涉及硬件寄存器操作、供应商特定的SDK、实时操作系统API和硬件抽象层,这些在标准预训练语料中代表性不足。我们介绍了H2LooP Spark Preview,一种持续预训练(CPT)流水线,利用BF16 LoRA和秩稳定化缩放技术,将OLMo-3-7B完全开放语言模型适应到嵌入式系统领域,使用8块NVIDIA H100 GPU进行训练。我们的训练语料由涵盖100B个原始嵌入式系统数据的仓库-数据表对组成,经过SpecMap(Nipane等,2026)提出的层次化数据表到代码映射方法处理。最终的定制化语料库包含23.5B个token,覆盖13个嵌入式领域。使用高秩LoRA(r=512)的持续预训练显著提升了性能,使领域内困惑度降低了70.4%,验证集仓库困惑度降低了66.1%。在覆盖13个嵌入式领域的生成代码完成基准测试中,我们的7B模型在8个类别中优于Claude Opus 4.6和Qwen3-Coder-30B,表明针对特定任务的持续预训练使小型开放式模型能够与前沿系统在专业技术任务上竞争。我们已将生产训练检查点发布在Huggingface上作为开源成果。

英文摘要:

Large language models (LLMs) demonstrate strong code generation abilities in general-purpose programming languages but remain limited in specialized domains such as low-level embedded systems programming. This domain involves hardware register manipulation, vendor-specific SDKs, real-time operating system APIs, and hardware abstraction layers that are underrepresented in standard pretraining corpora. We introduce H2LooP Spark Preview, a continual pretraining (CPT) pipeline that adapts the OLMo-3-7B-a fully open language model to the embedded systems domain using BF16 LoRA with rank-stabilized scaling on 8 NVIDIA H100 GPUs. Our training corpus is constructed from repository-datasheet pairs covering 100B tokens of raw embedded systems data across 117 manufacturers, processed using the hierarchical datasheet-to-code mapping approach proposed in SpecMap (Nipane et al., 2026). The resulting curated dataset split contains 23.5B tokens across 13 embedded domains. Continual pretraining with high-rank LoRA (r=512) yields substantial gains, reducing in-domain perplexity by 70.4% and held-out repository perplexity by 66.1%. On generative code completion benchmarks spanning 13 embedded domains, our 7B model outperforms Claude Opus 4.6 and Qwen3-Coder-30B on 8 categories in token accuracy, showing that targeted continual pretraining enables smaller open-weight models to rival frontier systems on specialized technical tasks. We release the production training checkpoint on Huggingface as an open-source artifact.

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

↑