VibeTensor:由AI代理完全生成的深度学习系统软件
VibeTensor: System Software for Deep Learning, Fully Generated by AI Agents
AI总结:
VibeTensor是首个由AI代理完全生成的深度学习系统软件,实现了PyTorch风格的张量库及CUDA内存管理,展示了AI辅助软件工程的里程碑进展。
摘要:
VIBETENSOR是一种开源的深度学习研究系统软件堆栈,由LLM驱动的编码代理在高层人类指导下生成。本文中,“完全生成”指的是代码来源:实现变更被代理提出并应用于差异修改;验证依赖于代理运行的构建、测试和差异检查,没有每项变更的手动差异审查。它实现了一个PyTorch风格的 eager 张量库,核心为C++20(CPU+CUDA),通过nanobind实现类似torch的Python叠加层,并且实验性地提供了Node.js/TypeScript接口。不同于薄绑定,VIBETENSOR包含自己的张量/存储系统、schema-lite调度器、反向模式自动求导、CUDA运行时(流/事件/图)、具有诊断功能的流顺序缓存分配器以及稳定的C ABI用于动态加载的操作符插件。我们将此次发布视为AI辅助软件工程的一个里程碑:它展示了编码代理能够生成一个连贯的深度学习运行时,从语言绑定下到CUDA内存管理。我们描述了架构,总结了生成和验证系统所用的工作流程,并评估了该系统。我们报告了仓库规模和测试套件组成,并总结了可重复的微基准测试结果,包括从配套的AI生成内核套件中提取的融合注意力与PyTorch SDPA/FlashAttention的比较。我们还报告了在NVIDIA H100(Hopper,SM90)和Blackwell类GPU上对三个小型工作负载(序列反转、ViT、miniGPT)的端到端训练 sanity 检查;多GPU结果仅限于Blackwell,并使用一个可选的CUTLASS基于的环形allreduce插件,该插件在CUDA 13+和sm103a工具链支持下才可用。最后,我们讨论了生成系统软件中的故障模式,包括一个“弗兰肯斯坦”组合效应,其中局部正确的子系统相互作用导致全局次优性能。
英文摘要:
VIBETENSOR is an open-source research system software stack for deep learning, generated by LLM-powered coding agents under high-level human guidance. In this paper, "fully generated" refers to code provenance: implementation changes were produced and applied as agent-proposed diffs; validation relied on agent-run builds, tests, and differential checks, without per-change manual diff review. It implements a PyTorch-style eager tensor library with a C++20 core (CPU+CUDA), a torch-like Python overlay via nanobind, and an experimental Node.js/TypeScript interface. Unlike thin bindings, VIBETENSOR includes its own tensor/storage system, schema-lite dispatcher, reverse-mode autograd, CUDA runtime (streams/events/graphs), a stream-ordered caching allocator with diagnostics, and a stable C ABI for dynamically loaded operator plugins. We view this release as a milestone for AI-assisted software engineering: it shows coding agents can generate a coherent deep learning runtime spanning language bindings down to CUDA memory management, validated primarily by builds and tests. We describe the architecture, summarize the workflow used to produce and validate the system, and evaluate the artifact. We report repository scale and test-suite composition, and summarize reproducible microbenchmarks from an accompanying AI-generated kernel suite, including fused attention versus PyTorch SDPA/FlashAttention. We also report end-to-end training sanity checks on 3 small workloads (sequence reversal, ViT, miniGPT) on NVIDIA H100 (Hopper, SM90) and Blackwell-class GPUs; multi-GPU results are Blackwell-only and use an optional CUTLASS-based ring-allreduce plugin gated on CUDA 13+ and sm103a toolchain support. Finally, we discuss failure modes in generated system software, including a "Frankenstein" composition effect where locally correct subsystems interact to yield globally suboptimal performance.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。