Fine tune a Mixture of Experts model like Qwen3-30B-A3B on a single consumer GPU with 12GB or more of VRAM.
Train an MoE model on an AMD graphics card using DirectML when CUDA only tools will not run.
Quantize and prepare a custom MoE model's expert weights to bring your own model into this fine tuning pipeline.
Compare sparse training against LoRA and QLoRA using the project's benchmark tables before choosing a fine tuning approach.
| tsuyu122/usaf | 0pen-sourcer/hearth | 13127905/deep-learning-based-air-gesture-text-recognition- | |
|---|---|---|---|
| Stars | 15 | 15 | 15 |
| Language | Python | Python | Python |
| Setup difficulty | hard | moderate | moderate |
| Complexity | 5/5 | 3/5 | 3/5 |
| Audience | researcher | vibe coder | developer |
Figures from each repo's GitHub metadata at analysis time.
Requires a GPU with 12GB or more VRAM (or 32GB RAM for CPU-only), Python 3.10+, and PyTorch 2.0+.
USAF, short for Ultra Sparse Adaptive Fine-Tuning, is a Python project that lets someone fine tune large Mixture of Experts, or MoE, AI models on consumer grade graphics cards instead of expensive data center hardware. MoE models are a type of AI model that only activate a small subset of their internal weights, called experts, for any given input, which is what makes it possible to train a fraction of them at a time. The author built this because they only had a consumer AMD graphics card with 12GB of memory, and existing fine tuning methods either would not fit on that hardware or could not train the parts of an MoE model that matter most. USAF trains about 26 million parameters out of a model that has 4.8 billion, while also training the router, the small network that decides which experts handle each piece of input. The project states it is the only method among common options like LoRA, QLoRA, DoRA, and full fine tuning that runs on AMD hardware and touches both the expert weights and the router at the same time. On a test run using the Qwen3-30B-A3B model on a 12GB AMD card, 180 training steps reduced the model's loss by 30 percent and improved performance on both the training data and separate held out data, which the author points to as a sign of genuine learning rather than memorization. The method works by finding the small percentage of weights with the highest impact, periodically swapping out underperforming ones during training using a technique called RigL, and keeping frequently used data in memory to avoid slow repeated calculations. To get started, users install a few Python packages and run a training script, with hardware detected through environment variables for AMD, NVIDIA, or multiple GPUs. The project currently works out of the box with Qwen3-MoE models, and includes a step by step process for preparing a dataset, quantizing expert weights, and configuring a run for other MoE model families such as Mixtral. The author lists larger MoE models they would like to test but do not have the hardware for, and invites people with access to that hardware to reach out. USAF is released under the Apache 2.0 License.
USAF is a Python method for fine tuning large Mixture of Experts AI models on a consumer GPU with as little as 12GB of memory.
Mainly Python. The stack also includes Python, PyTorch, CUDA.
Use freely for any purpose, including commercial use, as long as you keep the copyright notice and state any changes made.
Setup difficulty is rated hard, with roughly 1h+ to a first successful run.
Mainly researcher.
This repo across BitVibe Labs
Don't trust strangers blindly. Verify against the repo.