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.
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 inenumerate(outputs):
print(f"=== Response {i+1} ===\n{output['text']}\n")
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 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:
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.