tencent / WeDLM-8B-Instruct

huggingface.co
Total runs: 480
24-hour runs: 0
7-day runs: 93
30-day runs: 79
Model's Last Updated: January 01 2026
text-generation

Introduction of WeDLM-8B-Instruct

Model Details of WeDLM-8B-Instruct

WeDLM-8B-Instruct ⭐

WeDLM-8B-Instruct is our flagship instruction-tuned diffusion language model that performs parallel decoding under standard causal attention, fine-tuned from WeDLM-8B .

Highlights:

  • 🚀 3-6× faster than vLLM-optimized Qwen3-8B on math reasoning tasks
  • 📈 Outperforms base Qwen3-8B-Instruct on most benchmarks
  • ✅ Native KV cache compatible (FlashAttention, PagedAttention, CUDA Graphs)

For the base (pretrained) version, see WeDLM-8B , which is based on Qwen3-8B-Base.

📄 Paper (Coming Soon) | 🌐 Project Page | 💻 GitHub

Model Details
Attribute Value
Base Model WeDLM-8B
Parameters 8B
Context Length 32,768
Quick Start (Recommended)

For fast inference , use the wedlm engine:

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

llm = LLM(model="tencent/WeDLM-8B-Instruct")
tokenizer = AutoTokenizer.from_pretrained("tencent/WeDLM-8B-Instruct", trust_remote_code=True)

prompt = "Solve step by step: A store sells apples for $2 each and oranges for $3 each. Tom bought 5 apples and 4 oranges. How much did he spend?"
messages = [{"role": "user", "content": prompt}]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)

outputs = llm.generate([text], SamplingParams(temperature=0.2, max_tokens=512))
print(outputs[0]["text"])
Multi-turn Conversation
messages = [
    {"role": "user", "content": "What is the derivative of x^2?"},
    {"role": "assistant", "content": "The derivative of x² is 2x."},
    {"role": "user", "content": "What about x^3?"}
]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
outputs = llm.generate([text], SamplingParams(temperature=0.2, max_tokens=256))
Batch Inference
prompts = [
    "Explain quantum entanglement simply.",
    "Write a Python function to check if a number is prime.",
    "What are the main causes of climate change?"
]
messages_batch = [[{"role": "user", "content": p}] for p in prompts]
texts = [tokenizer.apply_chat_template(m, tokenize=False, add_generation_prompt=True) for m in messages_batch]

outputs = llm.generate(texts, SamplingParams(temperature=0.2, max_tokens=512))
for i, output in enumerate(outputs):
    print(f"=== Response {i+1} ===\n{output['text']}\n")
HuggingFace Transformers

For training or simple forward passes:

from transformers import AutoTokenizer, AutoModelForCausalLM

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

messages = [{"role": "user", "content": "Hello!"}]
text = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
inputs = tokenizer(text, 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
Generation Quality
Benchmark Qwen3-8B-Instruct WeDLM-8B-Instruct
ARC-C (0-shot) 91.47 92.92
GSM8K (3-shot) 89.91 92.27
MATH (4-shot) 69.60 64.80
HumanEval (4-shot) 71.95 80.49
MMLU (5-shot) 71.52 75.14
GPQA-Diamond (5-shot) 41.41 44.95
Average 75.12 77.53
Inference Speed

Speedup varies by task characteristics (measured against vLLM-optimized Qwen3-8B-Instruct):

Scenario Speedup Notes
Math Reasoning (GSM8K) 3-6× Structured, predictable output
Code Generation 2-3× Deterministic syntax
Open-ended QA 1.5-2× Higher entropy limits parallelism
Citation (Coming soon)
License

Apache 2.0

Runs of tencent WeDLM-8B-Instruct on huggingface.co

480
Total runs
0
24-hour runs
17
3-day runs
93
7-day runs
79
30-day runs

More Information About WeDLM-8B-Instruct huggingface.co Model

More WeDLM-8B-Instruct license Visit here:

https://choosealicense.com/licenses/apache-2.0

WeDLM-8B-Instruct huggingface.co

WeDLM-8B-Instruct huggingface.co is an AI model on huggingface.co that provides WeDLM-8B-Instruct's model effect (), which can be used instantly with this tencent WeDLM-8B-Instruct model. huggingface.co supports a free trial of the WeDLM-8B-Instruct model, and also provides paid use of the WeDLM-8B-Instruct. Support call WeDLM-8B-Instruct model through api, including Node.js, Python, http.

WeDLM-8B-Instruct huggingface.co Url

https://huggingface.co/tencent/WeDLM-8B-Instruct

tencent WeDLM-8B-Instruct online free

WeDLM-8B-Instruct huggingface.co is an online trial and call api platform, which integrates WeDLM-8B-Instruct's modeling effects, including api services, and provides a free online trial of WeDLM-8B-Instruct, you can try WeDLM-8B-Instruct online for free by clicking the link below.

tencent WeDLM-8B-Instruct online free url in huggingface.co:

https://huggingface.co/tencent/WeDLM-8B-Instruct

WeDLM-8B-Instruct install

WeDLM-8B-Instruct is an open source model from GitHub that offers a free installation service, and any user can find WeDLM-8B-Instruct on GitHub to install. At the same time, huggingface.co provides the effect of WeDLM-8B-Instruct install, users can directly use WeDLM-8B-Instruct installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

WeDLM-8B-Instruct install url in huggingface.co:

https://huggingface.co/tencent/WeDLM-8B-Instruct

Url of WeDLM-8B-Instruct

WeDLM-8B-Instruct huggingface.co Url

Provider of WeDLM-8B-Instruct huggingface.co

tencent
ORGANIZATIONS

Other API from tencent

huggingface.co

Total runs: 932.3K
Run Growth: 264.5K
Growth Rate: 28.37%
Updated:August 29 2026
huggingface.co

Total runs: 126.6K
Run Growth: 28.7K
Growth Rate: 22.65%
Updated:October 17 2025
huggingface.co

Total runs: 90.7K
Run Growth: -582.4K
Growth Rate: -642.43%
Updated:September 12 2025
huggingface.co

Total runs: 62.0K
Run Growth: 7.2K
Growth Rate: 11.57%
Updated:October 17 2025
huggingface.co

Total runs: 29.7K
Run Growth: 4.2K
Growth Rate: 14.22%
Updated:May 26 2026
huggingface.co

Total runs: 13.8K
Run Growth: 4.7K
Growth Rate: 33.67%
Updated:October 17 2025
huggingface.co

Total runs: 11.6K
Run Growth: -658
Growth Rate: -5.66%
Updated:July 30 2025
huggingface.co

Total runs: 11.5K
Run Growth: -2.5K
Growth Rate: -21.81%
Updated:May 26 2026
huggingface.co

Total runs: 6.6K
Run Growth: -624
Growth Rate: -9.44%
Updated:January 01 2026
huggingface.co

Total runs: 4.3K
Run Growth: 3.4K
Growth Rate: 78.80%
Updated:September 10 2026
huggingface.co

Total runs: 2.9K
Run Growth: 115
Growth Rate: 3.95%
Updated:February 24 2026
huggingface.co

Total runs: 2.8K
Run Growth: 2.2K
Growth Rate: 77.43%
Updated:September 09 2026
huggingface.co

Total runs: 2.3K
Run Growth: -335
Growth Rate: -14.32%
Updated:December 30 2025
huggingface.co

Total runs: 1.9K
Run Growth: 1.1K
Growth Rate: 58.91%
Updated:March 06 2025
huggingface.co

Total runs: 1.6K
Run Growth: 674
Growth Rate: 41.02%
Updated:October 09 2026
huggingface.co

Total runs: 1.4K
Run Growth: 242
Growth Rate: 16.95%
Updated:October 17 2025
huggingface.co

Total runs: 1.1K
Run Growth: 153
Growth Rate: 14.14%
Updated:June 01 2026
huggingface.co

Total runs: 634
Run Growth: 38
Growth Rate: 5.99%
Updated:October 09 2026
huggingface.co

Total runs: 425
Run Growth: 142
Growth Rate: 33.41%
Updated:March 11 2026
huggingface.co

Total runs: 402
Run Growth: 172
Growth Rate: 42.79%
Updated:December 31 2025
huggingface.co

Total runs: 388
Run Growth: 93
Growth Rate: 23.97%
Updated:March 06 2026
huggingface.co

Total runs: 372
Run Growth: -3.0K
Growth Rate: -804.03%
Updated:September 15 2025