OpenViSTAI · Agents · Blockchain · Crypto
Menu
AI Models

Orthrus

Orthrus is a Python inference framework and checkpoint collection for Qwen3 language models, combining autoregressive generation with diffusion-based parallel token generation through a shared key-value cache.

Independent OpenViST project profile, based on linked sources.

Orthrus — Testing dual-view diffusion decoding with Qwen3-1.7B, Qwen3-4B or Qwen3-8B checkpoints
OpenViST project illustration. See the linked sources for product details.
Understand the project

Practical overview

When it fits

Use Orthrus when you want to experiment with parallel decoding for Qwen3 checkpoints and can meet the documented hardware and dependency requirements.

Who it is for

  • Developers experimenting with faster inference for Qwen3-based language models.
  • Researchers comparing parallel diffusion decoding with autoregressive generation.
  • Apple Silicon users looking to try the repository’s documented MLX inference path.

Documented uses

  • Load an Orthrus Qwen3 checkpoint and generate text in diffusion mode.
  • Explore parallel token generation while retaining the base model’s predictive distribution, as claimed by the project.
  • Try the provided inference implementation on CUDA or through the documented MLX path.
Before you choose

Requirements & limits

The implementation is in a public GitHub repository under the MIT license. The README links model checkpoints on Hugging Face and provides a Colab quickstart.

  • The listed checkpoints use Qwen3 backbones; the repository does not document a general checkpoint-agnostic setup.
  • The standard quickstart uses CUDA, bfloat16 and FlashAttention, with SDPA and eager listed as attention options.
  • The repository documents a separate MLX route for Apple Silicon and identifies the MLX and MLX-LM versions used.
  • Native vLLM and SGLang integration is described as forthcoming in the README.
  • The README reports speedup and lossless-generation results; these are project claims rather than independent evaluations.

Check current requirements in the official documentation. Source-based guidance does not mean OpenViST has run or independently tested this project.

Source-based practical guide

Load an Orthrus checkpoint for diffusion-mode generation

Set up the documented CUDA/Transformers quickstart and generate text with an Orthrus Qwen3 checkpoint.

Before you start

  • Python environment with the Orthrus repository
  • CUDA device for the documented CUDA quickstart
  • PyTorch, Transformers and a tokenizer
  • Ninja, Packaging and FlashAttention dependencies

Steps

  1. Install the repository in editable mode with the command below.

    Documented command
    uv pip install -e .
  2. Install Ninja and Packaging, then install FlashAttention as shown in the README.

  3. Load chiennv/Orthrus-Qwen3-8B with Transformers, dtype=torch.bfloat16, device_map="cuda" and the documented attention implementation.

  4. Load the tokenizer, prepare prompt input with the chat template, and call model.generate with use_diffusion_mode=True.

Expected outcome

The example produces streamed text from an Orthrus Qwen3-8B checkpoint using diffusion-mode generation.

Guide limitations

  • The README’s quickstart depends on a CUDA device and shows trust_remote_code=True.
  • The README describes native vLLM and SGLang integration as forthcoming.
Source-based practical guide

Generate tokens with the documented MLX example

Use the repository’s MLX support example to generate output with an Orthrus checkpoint on Apple Silicon.

Before you start

  • Apple Silicon device
  • MLX and MLX-LM; the README lists mlx==0.31.2 and mlx-lm==0.31.3 as tested versions
  • Access to the Orthrus-Qwen3-1.7B checkpoint

Steps

  1. Import load_model_and_tokenizer and mlx_generate from src.model_mlx.

  2. Load the chiennv/Orthrus-Qwen3-1.7B model and tokenizer.

  3. Encode a prompt with the tokenizer.

  4. Pass the model, prompt tokens, end-of-sequence token ID and a token limit to mlx_generate, then decode generated tokens.

Expected outcome

The documented example prints generated text token by token through the MLX path.

Guide limitations

  • The README identifies specific MLX and MLX-LM versions for its tested support.
  • The example uses the 1.7B checkpoint.
Evidence and transparency

Sources & review

Source record details
Source availability
Active
Sources checked
12 November 2026
Original website title
chiennv2000/orthrus · Official homepage title · retained in its source language