Speed up inference for a Qwen3 based language model without losing output quality
Try Orthrus's dual view diffusion decoding in a hosted Colab notebook before installing locally
Fine-tune only a small fraction of a frozen base model to add parallel token generation
| chiennv2000/orthrus | paddlepaddle/interpretdl | opendrivelab/simscale | |
|---|---|---|---|
| Stars | 261 | 261 | 263 |
| Language | Python | Python | Python |
| Last pushed | — | 2024-09-04 | — |
| Maintenance | — | Stale | — |
| Setup difficulty | moderate | moderate | hard |
| Complexity | 4/5 | 3/5 | 5/5 |
| Audience | developer | data | researcher |
Figures from each repo's GitHub metadata at analysis time.
Needs a CUDA GPU and the flash-attn library, a Colab notebook is available for a quick try without local setup.
Orthrus is a technique that makes large language models, the AI systems behind tools like chatbots, produce answers much faster without changing what they actually say. Normally, an AI language model generates text one word at a time in a strict sequence, where each new word waits for the previous one to finish. That sequential process is the main speed bottleneck. Orthrus breaks that bottleneck by running two views of the same model at once: one view uses the standard sequential approach to stay accurate, and a second diffusion based view generates multiple tokens in parallel. The two views check against each other through an internal consensus mechanism, so the final output is guaranteed to match exactly what the original model would have produced on its own, meaning no quality is sacrificed for the speed gain. The practical result, according to the README's own benchmarks, is a speedup that reaches roughly 4 to 5 times on the released models and up to about 7.8 times on certain generation tasks, with no accuracy loss. It also needs no extra memory beyond the base model, because both views share the exact same internal cache. Only 16 percent of the model's parameters need to be fine-tuned to add this capability, while the core model stays frozen and untouched. Three ready-to-use models, built on the Qwen3 model family at 1.7B, 4B, and 8B parameter sizes, are published on Hugging Face along with example Python code for loading and running them, including a version you can try instantly in a hosted Colab notebook without installing anything locally. Researchers and developers building AI applications would use Orthrus when inference speed is a bottleneck and they cannot afford any drop in output quality. It requires a compatible GPU setup and the flash attention library to run efficiently.
A technique that makes large language models generate text several times faster by running two coordinated views of the same model at once, with a guarantee that output quality never drops.
Mainly Python. The stack also includes Python, PyTorch, Qwen3.
Setup difficulty is rated moderate, with roughly 30min to a first successful run.
Mainly developer.
This repo across BitVibe Labs
Verify against the repo before relying on details.