← 返回内容列表
𝕏X采集原文

Resin:复用推理核心,由智能体补全模型

10-26 08:35 · 北京时间

AI 编程

有实践材料可继续查看

代码仓库

原文与观测指标

1 个来源
𝕏X

Resin:复用推理核心,由智能体补全模型

Eric Zhang
查看原文
点赞902采集时的累计值
每小时增长待观察赞 / 小时 · 观测区间平均值
观测增量待观察两次有效记录之间的变化

发布时间:2026-10-26 08:35 · 北京时间

指标采集:10-26 17:35

简短概述

Resin 将调度、缓存和服务等推理通用部分封装为运行时,让智能体编写模型专用前向计算与内核。作者称已用 Codex 构建 GLM 推理引擎,并报告特定硬件上的吞吐表现,尚属作者自述。

AI 概述,仅依据已采集材料,未经独立核验。
采集原文 展开 / 收起

Alright I finally have more to share on my personal project! Resin is a runtime for building fast LLM inference engines. The idea is to make all...

Alright I finally have more to share on my personal project! Resin is a runtime for building fast LLM inference engines. The idea is to make all the generic parts of inference reusable, and leave only the model-specific forward pass + kernels to be written for each architecture / hardware target. To build an engine: 1. Import Resin's core. 2. Have an agent write a forward pass for the model you’re interested in, for your specific hardware (GPU or TPU or AMD), any kernels you want. Then, boom, you have a standalone inference engine. — I've been hacking over the past month (early post: https://x.com/ekzhang1/status/2089507697930678419), and recently this week I got a lot of features + parallelisms working, inspired by DeepInfer. For DeepSeek-V4.1-Flash, it's nearly as fast as DeepInfer (within 5-10%), while being self-contained and supporting other models, plus metrics + HTTP server + prefix cache. Yesterday I wrote a skill for authoring models and put Codex to work on it overnight. The agent built a GLM-5.3-Flash engine with MTP, reaching up to 60,000 input tok/s and 16,000 output tok/s on B200 (EP4). So far inference "vibe coding" has not been very reliable or successful. I think it's because people start from scratch each time and reinvent lots of tricky things on the scheduler and server layers. But with a shared core, we can automate lots of inference work. The tricky bit is writing a fast forward pass. But Resin turns that into a standalone engine by just importing a library, and it becomes a verifiable goal for the AI. Code: https://github.com/ekzhang/resin Eric Zhang: So… I have it working now. The core of an inference engine in Rust is about 3k lines (scheduling, kv/swa/recurrent state, prefix cache, multimodal, dynamic batching) I then asked Codex to implement (with MTP, cudagraphs, TP on Blackwell): - DeepSeekV4 Flash - Gemma 3.8 27B -