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
Safetensors
Model size
0.2B params
Tensor type
F32
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for summerAIO/Diffusion-Qwen3.8-27Bv2

Base model

Qwen/Qwen3.8-27B
Finetuned
(1)
this model