5CD-AI/Vietnamese-Intel-orca_dpo_pairs-gg-translated
Viewer • Updated • 12.9k • 17 • 35
This is a Block Diffusion Language Model (BD3LM) fine-tuned on Vietnamese Intel Orca dataset for instruction following and question answering tasks. The model is based on Qwen2.5-1.5B architecture with BD3LM diffusion approach.
The model was trained on Vietnamese instruction-following data with:
system_vi): Task instructionsquestion_vi): User querieschosen_vi): Expected responsesimport torch
import dllm
from transformers import AutoTokenizer
model_name = "ChaosAiVision/qwen2.5-1.5b-orca-bd3lm-sft-orca"
# Load model and tokenizer
model_args = type("Args", (), {"model_name_or_path": model_name})()
model = dllm.utils.get_model(model_args=model_args).eval().cuda()
tokenizer = AutoTokenizer.from_pretrained(model_name)
# Setup BD3LM sampler
sampler = dllm.core.samplers.BD3LMSampler(model=model, tokenizer=tokenizer)
sampler_config = dllm.core.samplers.BD3LMSamplerConfig(
steps=128,
max_new_tokens=512,
temperature=0.0,
block_size=32
)
# Prepare messages
messages = [
{"role": "system", "content": "Bạn là một trợ lý AI hữu ích."},
{"role": "user", "content": "Thủ đô của Việt Nam là gì?"}
]
# Generate
prompt_ids = tokenizer.apply_chat_template(
messages,
tokenize=True,
add_generation_prompt=True,
return_tensors="pt"
).cuda()
output = sampler.sample(inputs=[prompt_ids[0]], config=sampler_config)
response = tokenizer.decode(output[0], skip_special_tokens=True)
print(response)
Apache 2.0
@misc{qwen25-bd3lm-orca-sft,
title={Qwen2.5-1.5B BD3LM Vietnamese Orca SFT},
author={ChaosAiVision},
year={2026},
publisher={HuggingFace},
howpublished={\url{https://huggingface.co/ChaosAiVision/qwen2.5-1.5b-orca-bd3lm-sft-orca}}
}