# qwenlm/qwen3.8-flash-next architecture

> Architecture diagram of the GitHub repository qwenlm/qwen3.8-flash-next, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/qwenlm/qwen3.8-flash-next
- Repository: https://github.com/qwenlm/qwen3.8-flash-next

## Overview

This repository presents Qwen3.8-Flash-Next as an open-weight multimodal MoE model, rather than containing its implementation or weights in the visible tree. The documented user workflow is to obtain the model from Hugging Face or ModelScope and use a supported inference framework or hosted service. The architecture and capabilities below are drawn from the README; no source excerpts were available to verify internal implementation details.

Main entry points: [`README.md`](https://github.com/qwenlm/qwen3.8-flash-next/blob/main/README.md) (Model weights)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_model["Model architecture"]
  node_weights["Model weights<br/>[README.md]"]
  node_gdn["GDN attention<br/>[README.md]"]
  node_qsa["Qwen Sparse Attention<br/>[README.md]"]
  node_gated_residual["Gated Residual<br/>[README.md]"]
  node_ngram["N-gram Embedding<br/>[README.md]"]
  node_moe["Multimodal MoE<br/>[README.md]"]
  node_muon["Muon optimization<br/>[README.md]"]
end

subgraph group_use["Model use"]
  node_huggingface[("Hugging Face Hub")]
  node_modelscope[("ModelScope")]
  node_frameworks["Inference frameworks<br/>[README.md]"]
  node_transformers["Transformers"]
  node_sglang["SGLang"]
  node_vllm["vLLM"]
  node_tokenspeed["TokenSpeed"]
  node_local_runtimes["Local runtimes<br/>[README.md]"]
end

subgraph group_official["Official services"]
  node_qwenwork["QwenWork"]
  node_qwencloud["QwenCloud API"]
  node_qwen_code["Qwen Code"]
end

node_user(("Model user"))

node_user -->|"downloads from"| node_huggingface
node_user -->|"downloads from"| node_modelscope
node_huggingface -->|"provides weights"| node_weights
node_modelscope -->|"provides weights"| node_weights
node_user -->|"runs with"| node_frameworks
node_frameworks -->|"loads"| node_weights
node_user -->|"serves with"| node_transformers
node_user -->|"serves with"| node_sglang
node_user -->|"serves with"| node_vllm
node_user -->|"serves with"| node_tokenspeed
node_user -->|"runs locally"| node_local_runtimes
node_user -->|"uses"| node_qwenwork
node_user -->|"calls"| node_qwencloud
node_user -->|"uses"| node_qwen_code

click node_weights "https://github.com/qwenlm/qwen3.8-flash-next/blob/main/README.md"
click node_gdn "https://github.com/qwenlm/qwen3.8-flash-next/blob/main/README.md"
click node_qsa "https://github.com/qwenlm/qwen3.8-flash-next/blob/main/README.md"
click node_gated_residual "https://github.com/qwenlm/qwen3.8-flash-next/blob/main/README.md"
click node_ngram "https://github.com/qwenlm/qwen3.8-flash-next/blob/main/README.md"
click node_moe "https://github.com/qwenlm/qwen3.8-flash-next/blob/main/README.md"
click node_muon "https://github.com/qwenlm/qwen3.8-flash-next/blob/main/README.md"
click node_frameworks "https://github.com/qwenlm/qwen3.8-flash-next/blob/main/README.md"
click node_local_runtimes "https://github.com/qwenlm/qwen3.8-flash-next/blob/main/README.md"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_weights,node_gdn,node_qsa,node_gated_residual,node_ngram,node_moe,node_muon,node_user toneBlue
class node_huggingface,node_modelscope,node_frameworks,node_transformers,node_sglang,node_vllm,node_tokenspeed,node_local_runtimes toneAmber
class node_qwenwork,node_qwencloud,node_qwen_code toneMint
```

## Components

### Model architecture

- [Model weights](https://github.com/qwenlm/qwen3.8-flash-next/blob/main/README.md): `README.md`
- [GDN attention](https://github.com/qwenlm/qwen3.8-flash-next/blob/main/README.md): `README.md`
- [Qwen Sparse Attention](https://github.com/qwenlm/qwen3.8-flash-next/blob/main/README.md): `README.md`
- [Gated Residual](https://github.com/qwenlm/qwen3.8-flash-next/blob/main/README.md): `README.md`
- [N-gram Embedding](https://github.com/qwenlm/qwen3.8-flash-next/blob/main/README.md): `README.md`
- [Multimodal MoE](https://github.com/qwenlm/qwen3.8-flash-next/blob/main/README.md): `README.md`
- [Muon optimization](https://github.com/qwenlm/qwen3.8-flash-next/blob/main/README.md): `README.md`

### Model use

- **Hugging Face Hub**
- **ModelScope**
- [Inference frameworks](https://github.com/qwenlm/qwen3.8-flash-next/blob/main/README.md): `README.md`
- **Transformers**
- **SGLang**
- **vLLM**
- **TokenSpeed**
- [Local runtimes](https://github.com/qwenlm/qwen3.8-flash-next/blob/main/README.md): `README.md`

### Official services

- **QwenWork**
- **QwenCloud API**
- **Qwen Code**

### Other components

- **Model user**

## Connections

- Model user → Hugging Face Hub: downloads from (evidence: `README.md`)
- Model user → ModelScope: downloads from (evidence: `README.md`)
- Hugging Face Hub → Model weights: provides weights (evidence: `README.md`)
- ModelScope → Model weights: provides weights (evidence: `README.md`)
- Model user → Inference frameworks: runs with (evidence: `README.md`)
- Inference frameworks → Model weights: loads (evidence: `README.md`)
- Model user → Transformers: serves with (evidence: `README.md`)
- Model user → SGLang: serves with (evidence: `README.md`)
- Model user → vLLM: serves with (evidence: `README.md`)
- Model user → TokenSpeed: serves with (evidence: `README.md`)
- Model user → Local runtimes: runs locally (evidence: `README.md`)
- Model user → QwenWork: uses (evidence: `README.md`)
- Model user → QwenCloud API: calls (evidence: `README.md`)
- Model user → Qwen Code: uses (evidence: `README.md`)
