CoolFace
Modelpublic

tencent/WeDLM-8B-Base

sourceHugging Faceapache-2.0updated 9mo agoView on Hugging Face
18likes198downloads
Model Card

WeDLM-8B

WeDLM-8B is a diffusion language model that performs parallel decoding under standard causal attention, initialized from Qwen3-8B.

This is the base (pretrained) version. For the instruction-tuned version, see WeDLM-8B-Instruct.

๐Ÿ“„ Paper (Coming Soon) | ๐ŸŒ Project Page | ๐Ÿ’ป GitHub

Model Details

AttributeValue
Initialized FromQwen3-8B
Parameters8B
Context Length32,768

Quick Start (Recommended)

For fast inference, use the wedlm engine:

bash
pip install git+https://github.com/tencent/WeDLM.git
python
from wedlm import LLM, SamplingParams

llm = LLM(model="tencent/WeDLM-8B")

prompt = "The theory of relativity states that"
outputs = llm.generate([prompt], SamplingParams(max_tokens=256))

print(outputs[0]["text"])

HuggingFace Transformers

For training or simple forward passes, you can load via Transformers:

python
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("tencent/WeDLM-8B", trust_remote_code=True)
model = AutoModelForCausalLM.from_pretrained(
    "tencent/WeDLM-8B", 
    trust_remote_code=True,
    torch_dtype="auto",
    device_map="auto"
)

inputs = tokenizer("The theory of relativity", return_tensors="pt").to(model.device)
outputs = model(**inputs)
โš ๏ธ Note: The HuggingFace interface is for training/forward pass convenience. For optimized inference throughput, use the wedlm engine above.

Performance

BenchmarkQwen3-8BWeDLM-8B
ARC-C (0-shot)92.6692.92
GSM8K (3-shot)85.9790.20
MATH (4-shot)50.8053.60
HumanEval (4-shot)68.9075.00
MMLU (5-shot)74.0375.46
Average72.6174.72

Citation (Coming soon)

License

Apache 2.0