Rust LLM training dilemma: Candle vs Burn vs PyTorch for a toy model

Enderlook · reddit · 2026-10-21

Reddit user Enderlook is building and training a toy LLM in Rust/Candle and asks which framework to commit to. Pain points with Candle: flash attention lacks a backward pass, and modern features like GatedDeltaNet2 and Multi-head Latent Attention are missing, forcing manual CUDA kernel porting. Burn offers full training support and, via CubeCL, compiles Rust to CUDA, HIP, Metal, WebGPU and CPU — but runs slower, has limited quantization, and a smaller community. Options on the table: stay on Candle and add CubeCL to reuse Burn kernels, migrate fully to Burn, or jump to Python/PyTorch where every new published feature has a reference implementation. The thread collects real trade-offs of doing LLM training outside the Python ecosystem.

Original post →

More from coding & agent

coding & agent channel →