Instructions to use summerAIO/Diffusion-Qwen3.8-27Bv2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use summerAIO/Diffusion-Qwen3.8-27Bv2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("feature-extraction", model="summerAIO/Diffusion-Qwen3.8-27Bv2", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("summerAIO/Diffusion-Qwen3.8-27Bv2", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Diffusion-Qwen3.8-27Bv2
Trained ModernBERT residual denoiser and projections for the frozen BF16 Diffusion-Qwen3.8-27B backbone. This self-contained release includes the trained V2 refiner at the root and all base weights, diffusion extras and tokenizer under backbone/. The nonlinear refiner is applied at inference. Text-only, direct block diffusion, no draft/verifier. Intended for research. Batch size 1, 256 positions, four rounds. The backbone must be loaded with its diffusion extras, not ordinary autoregressive generation.
Usage (one CUDA GPU, tested architecture: A100 80 GB)
Install torch, transformers==5.23.0, accelerate, huggingface_hub, safetensors. The following loads custom code from the model repositories; review it before use.
import sys, torch
from huggingface_hub import snapshot_download
from transformers import AutoModel
from pathlib import Path
release = Path(snapshot_download('summerAIO/Diffusion-Qwen3.8-27Bv2'))
base = str(release / 'backbone')
sys.path.insert(0, base)
from dqwen.hub import load_pretrained
q, tok = load_pretrained(base, fast=False)
v2 = AutoModel.from_pretrained(release, trust_remote_code=True).cuda().eval()
prompt = tok.apply_chat_template([{'role':'user','content':'日本の首都は?'}], tokenize=False, add_generation_prompt=True, enable_thinking=False)
ids = tok(prompt, return_tensors='pt', add_special_tokens=False).input_ids.cuda()
print(tok.decode(v2.generate_blocks(q, ids), skip_special_tokens=True))
Training and limitations
ModernBERT initialized from answerdotai/ModernBERT-base; the deployed checkpoint is the literal-return-value training stage after multilingual, reasoning and teacher alignment experiments. Sources included Wikipedia excerpts, algorithm implementations, GSM8K, MBPP and nohurry/Opus-4.6-Reasoning-3000x-filtered. No guarantee of equivalence to Claude Opus or original Qwen. On the project's 96-item greedy short-answer evaluation the adapter scored 23/96 vs 40/96 for the original Qwen3.8-27B. Generation can repeat or end prematurely; not production validated. Restricted digit throughput benchmarks are not free-text throughput.
- Downloads last month
- 112