ReadingResearchRadarInvestment framework
Sign in / Sign up
← Back to reading
NewsTopic · Twinkle训练框架1 min read·2026-10-14

Tan Pei Xiang on Twinkle: Atomic Architecture for LLM Training

In a video on the official PyTorch channel, Tan Pei Xiang introduces Twinkle, an LLM training framework co-developed by ModelScope and China Merchants Bank. The episode highlights its atomic design and serverless TaaS architecture aimed at resolving flexibility-scale trade-offs in RL loops.

ImportanceLocalEvidenceE2 unreplicatedWrite-upQuick

2026-09-25 04:35 GMT+8

Tan Pei Xiang introduces Twinkle, an LLM training framework co-developed by ModelScope and China Merchants Bank, in a video published on the official PyTorch channel. The presentation focuses on Twinkle's "Atomic Design," which allows users to orchestrate reinforcement learning (RL) loops in approximately 150 lines of code. This modular approach enables swapping components like Reward or Loss functions without altering the core system.

The framework utilizes a C-S Architecture that decouples algorithm semantics from GPU orchestration methods such as torchrun, Ray, and HTTP. It also features a Serverless Training-as-a-Service (TaaS) model, where multi-tenant LoRA pools support over eight concurrent tasks on a single base model to maximize resource utility. As a superset of the Tinker API, Twinkle supports FSDP2 and Megatron backends. The episode explores its architecture, rapid GRPO/DPO integration, and case studies in the financial sector, concluding with a discussion on the shift towards "micro-service training" for Agent RL.

Sources

  • 原始出处youtube.com
Sign in / Sign up
ReadingResearchRadarInvestment framework
↗
Topic

Twinkle训练框架

Twinkle是由ModelScope与招商银行联合开发的轻量级LLM训练框架,旨在通过“原子化”设计解决大模型训练中灵活性与规模化的矛盾。该框架采用客户端-服务端架构,将训练逻辑(如数据加载、模型前向/反向传播)封装为标准API,支持在本…

4 steps1 piecesUpdated 2026-10-15 08:37

How it got here

  1. 2026-02-13Twinkle初始版本发布,支持文本模型的SFT/PT/RL训练,并在ModelScope上线Beta版无服务器训练功能。
  2. 2026-03-24Twinkle官方网站上线,提供详细文档和Cookbook示例。
  3. 2026-05-20新增对DeepSeek-V4系列模型的支持,并引入多轮Rollout和工具调用能力,强化RL训练场景。

What is still unsettled

  • Twinkle原生API与Tinker兼容API在服务端的具体性能差异及迁移成本如何?
  • 多租户环境下,不同LoRA任务共享基础模型计算时的显存隔离机制是否会影响大规模并发训练的稳定性?
  • 除了Qwen系列,框架对非Transformer架构或新兴MoE变体的支持路线图是什么?
Read the full topic →
Continue researching →