News

KTransformers can fine-tune a 671B MoE with 16GB of VRAM. The catch is server RAM

Email

KTransformers says its new KT-FT system can LoRA fine-tune a 671-billion-parameter DeepSeek mixture-of-experts model at a 2,000-token context using 16GB of GPU memory.[1] That sounds like a victory for an ordinary gaming PC until the rest of the test machine enters the room: the paper’s single-GPU systems had 1TB of host memory, while its larger systems had 1.5TB or 2TB.[1]

KT-FT is still a serious technical result. It changes the job of the CPU from storing weights for the GPU to fetch into actively computing the model’s routed experts. For the right used server or workstation, that could replace a pile of high-memory accelerators with a smaller GPU setup and a great deal of comparatively cheap RAM.

It does not make trillion-parameter model training a desktop hobby. It moves the expensive part.

Why ordinary offload struggles with MoE models

A mixture-of-experts model owns many expert blocks but sends each token to only a few of them. That sparsity saves computation. It is less helpful when a training system keeps expert weights in system RAM and repeatedly pulls the selected weights over PCIe.

KT-FT’s authors report that ZeRO-Offload moved roughly 2.6TB of weights per step in their DeepSeek-V3.1-671B profile. Communication and dispatch consumed 94% of step time while GPU utilization fell to 0.8%.[1] Those are project measurements, not independent results, but they explain the design cleanly: if moving an expert takes longer than running it on the CPU, stop moving it.

KTransformers leaves attention and other dense work on the GPU while the CPU executes the routed experts next to the weights in host memory.[1] Its layout engine prepares CPU-friendly tensor arrangements rather than repacking weights in the critical path. A second scheduler divides expert work into smaller tasks so one popular expert does not keep some CPU threads busy while the rest wait.[1]

The authors report 2.5 to 21.2 times the training throughput of the offload systems they compared, depending on model, hardware and sequence length. They also report completing LoRA training at context lengths up to 128K tokens.[1] HighVRAM did not find an independent reproduction of either headline result, and the paper is an author preprint rather than a peer-reviewed publication.

Sixteen gigabytes is only the GPU number

The paper’s DeepSeek allocation puts 17 billion parameters on the GPU and 654 billion on the CPU.[1] At two bytes per BF16 parameter, those CPU-side weights alone work out to about 1.19TiB. That calculation excludes adapters, optimizer state, activations, caches, temporary buffers and the operating system.

The project’s newer cookbook makes the trade easier to see. Its accepted Qwen3-235B BF16 LoRA run peaked at 27.14GiB on each of two GPUs and 545.36GiB of host memory. A Qwen3.5-397B run used eight GPUs, at least 20.37GiB on the busiest card, and 1,075.68GiB of host memory.[3] These are measured project runs, not safe minimum specifications; the documentation explicitly tells users to reserve more memory for data loading, caches and checkpoint saving.[3]

CPU choice matters too. The paper tested dual Intel Xeon Gold 6454S and dual AMD EPYC 9355 platforms.[1] The software can use AVX2, AVX-512 or AMX backends, but the fastest path depends on the stored weight format and the exact instruction set. Native FP8 needs a specific set of AVX-512 extensions, while AMXINT4 needs AMX and matching converted weights.[3]

This is less “gaming PC with a clever script” and more “server with a gaming GPU attached.”

The DeepSeek-V4 path is available, with caveats

KTransformers v0.7.2 shipped on October 15 with LoRA training for DeepSeek-V4-Flash. The release keeps the model’s routed experts in native MXFP4 on the CPU instead of expanding the frozen weights to BF16, while attention and non-expert modules run on the GPU.[2] A Linux x86-64 wheel is available from PyPI for Python 3.11 and 3.12.[2][5]

The model is obtainable too. DeepSeek’s Hugging Face repository lists V4-Flash at 284B total parameters, 13B active per token, with FP4 expert weights, an MIT license and downloadable weight shards.[4]

The published quickstart is not a one-click recipe. It calls for two GPUs, LlamaFactory, KTransformers’ modified training stack, FSDP2 configuration, a complete local model checkpoint and CPU/NUMA settings chosen for the machine.[8] Serving the resulting adapter uses a separate SGLang environment and a long set of model-specific flags.[8] Availability is real. Simplicity is not.

There is also no project-published host-memory minimum or training-throughput number for that V4-Flash recipe.[8] Its 20 training steps are explicitly a smoke test, not evidence of a useful completed adaptation.[8]

Independent users have reached the training path

Two detailed user reports show that KTransformers fine-tuning is more than a paper artifact, though neither reproduces the 671B result. One user ran a 35B MoE on a single RTX 3090 with a Xeon Max 9480 and reported 0.142 samples per second at batch size one. The same report reproduced a buffer-sizing failure at batches two, four and eight under kt-kernel 0.6.4; the repository later linked two attempted fixes.[6]

Another user on the same broad hardware class found that KTransformers’ training log reported 10.6 million trainable parameters while a completed run had actually updated about 640 million. The hidden difference was the project’s fused expert LoRA state, and the user reported spending three runs diagnosing it.[7]

Those issues concern an earlier version and a smaller model. They do not invalidate v0.7.2 or the paper. They do show what “available” means here: capable research software with sharp version, configuration and observability edges.

Who should try KT-FT

A normal home-AI machine with 32GB, 64GB or even 128GB of RAM is not the target for the headline model. The GPU may fit attention, but the experts still need somewhere to live. For that user, smaller dense models or smaller MoEs remain the sensible fine-tuning choice.

KT-FT becomes interesting if you already own a dual-socket workstation or used server with at least several hundred gigabytes of RAM, a supported modern x86 CPU and one or more Nvidia GPUs. Start with a smaller MoE, pin every package version, verify saved adapters and measure wall power as well as throughput. The paper supplies no power data, and a cheap GPU bill can coexist with an expensive electrical one.

The strongest fit is a privacy-sensitive lab or small company that already has high-memory CPU infrastructure but cannot justify an HBM-heavy training cluster. KTransformers offers that group a credible new experiment: compute beside the weights instead of shuttling them across PCIe.

For everyone else, the 16GB claim is useful for understanding the architecture, not for writing a shopping list. Independent reproduction on a specified, purchasable system is the result that could change that verdict.

Sources

  1. [1] KTransformers-FineTune author preprint v1.1
  2. [2] KTransformers v0.7.2 release and DeepSeek-V4-Flash LoRA support
  3. [3] pinned fine-tuning cookbook and resource table
  4. [4] DeepSeek-V4-Flash model card, weights and license
  5. [5] KTransformers 0.7.2 package availability
  6. [6] independent user report on batch-buffer sizing and RTX 3090 training
  7. [7] independent user report on fused expert LoRA parameter reporting
  8. [8] pinned DeepSeek-V4-Flash LoRA training and serving quickstart

<!– highvram-article-id: 10 –>

Share this article

Email