arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2504.07513cs.LGcs.AIcs.DCstat.ML
收藏

GPT Carry-On:面向定制化的基础模型训练可以简单、可扩展且成本低廉

GPT Carry-On: Training Foundation Model for Customization Could Be Simple, Scalable and Affordable

Bytedance(字节跳动)

Jianqiao Wangni

AI总结:

针对为每个用户或任务定制大语言模型成本高的问题,提出在预训练模型最终层嵌入上训练轻量级carry-on模块并与基础模型合并的框架,可将大部分训练外包到推理节点,以极低计算和参数量实现定制化并提升数学推理等任务表现。

摘要:

现代大语言基础模型(LLM)现已进入数百万用户的日常生活。我们提出一个自然的问题:是否有可能为每个用户或每个任务定制 LLM。从系统和工业经济的角度考虑,通用的继续训练或微调仍然需要训练 GPU 节点的可观计算和内存,而部署中的大多数推理节点(可能配备较低端 GPU)被配置为尽可能快地完成前向传播。我们提出一个框架,以充分利用现有 LLM 和在线服务系统。我们在预训练 LLM 的最终层嵌入之上训练一个额外的 transformer 块分支,该最终层嵌入作为基础,然后一个 carry-on 模块将基础模型合并,以组合成定制化的 LLM。我们可以混合多个层,或混合多个专精于不同领域(如聊天、编程、数学)的 LLM,以形成最适合新任务的新的 LLM 混合体。由于基础模型不需要更新参数,我们能够将训练任务的大部分计算外包到推理节点上,只在训练节点上训练轻量级的 carry-on,其中我们在 30B LLM 上训练一个 100M 的 carry-on 层时消耗不到 1GB 的 GPU 内存。我们测试了 Qwen 和 DeepSeek 开源模型进行继续预训练,并获得了更快的损失收敛。我们使用该方法以极小的计算量和模型规模改进数学问题求解,使用 1000 条思维链数据样本,以及小至 1 MB 参数的两层 carry-on,结果令人鼓舞。

英文摘要:

Modern large language foundation models (LLM) have now entered the daily lives of millions of users. We ask a natural question whether it is possible to customize LLM for every user or every task. From system and industrial economy consideration, general continue-training or fine-tuning still require substantial computation and memory of training GPU nodes, whereas most inference nodes under deployment, possibly with lower-end GPUs, are configured to make forward pass fastest possible. We propose a framework to take full advantages of existing LLMs and systems of online service. We train an additional branch of transformer blocks on the final-layer embedding of pretrained LLMs, which is the base, then a carry-on module merge the base models to compose a customized LLM. We can mix multiple layers, or multiple LLMs specialized in different domains such as chat, coding, math, to form a new mixture of LLM that best fit a new task. As the base model don't need to update parameters, we are able to outsource most computation of the training job on inference nodes, and only train a lightweight carry-on on training nodes, where we consume less than 1GB GPU memory to train a 100M carry-on layer on 30B LLM. We tested Qwen and DeepSeek opensourced models for continue-pretraining and got faster loss convergence. We use it to improve solving math questions with extremely small computation and model size, with 1000 data samples of chain-of-thoughts, and as small as 1 MB parameters of two layer layer carry-on, and the results are promising.

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

↑