argilla/ultrafeedback-binarized-preferences-cleaned
Viewer • Updated • 60.9k • 14.3k • 162
How to use Wan1302/lab22-dpo-adapter-gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Wan1302/lab22-dpo-adapter-gguf", filename="merged-fp16.Q4_K_M.gguf", )
output = llm( "Once upon a time,", max_tokens=512, echo=True ) print(output)
How to use Wan1302/lab22-dpo-adapter-gguf with llama.cpp:
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Wan1302/lab22-dpo-adapter-gguf:Q4_K_M # Run inference directly in the terminal: llama-cli -hf Wan1302/lab22-dpo-adapter-gguf:Q4_K_M
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Wan1302/lab22-dpo-adapter-gguf:Q4_K_M # Run inference directly in the terminal: llama-cli -hf Wan1302/lab22-dpo-adapter-gguf:Q4_K_M
# Download pre-built binary from: # https://github.com/ggerganov/llama.cpp/releases # Start a local OpenAI-compatible server with a web UI: ./llama-server -hf Wan1302/lab22-dpo-adapter-gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Wan1302/lab22-dpo-adapter-gguf:Q4_K_M
git clone https://github.com/ggerganov/llama.cpp.git cd llama.cpp cmake -B build cmake --build build -j --target llama-server llama-cli # Start a local OpenAI-compatible server with a web UI: ./build/bin/llama-server -hf Wan1302/lab22-dpo-adapter-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Wan1302/lab22-dpo-adapter-gguf:Q4_K_M
docker model run hf.co/Wan1302/lab22-dpo-adapter-gguf:Q4_K_M
How to use Wan1302/lab22-dpo-adapter-gguf with Ollama:
ollama run hf.co/Wan1302/lab22-dpo-adapter-gguf:Q4_K_M
How to use Wan1302/lab22-dpo-adapter-gguf with Unsloth Studio:
curl -fsSL https://unsloth.ai/install.sh | sh # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Wan1302/lab22-dpo-adapter-gguf to start chatting
irm https://unsloth.ai/install.ps1 | iex # Run unsloth studio unsloth studio -H 0.0.0.0 -p 8888 # Then open http://localhost:8888 in your browser # Search for Wan1302/lab22-dpo-adapter-gguf to start chatting
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Wan1302/lab22-dpo-adapter-gguf to start chatting
How to use Wan1302/lab22-dpo-adapter-gguf with Docker Model Runner:
docker model run hf.co/Wan1302/lab22-dpo-adapter-gguf:Q4_K_M
How to use Wan1302/lab22-dpo-adapter-gguf with Lemonade:
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Wan1302/lab22-dpo-adapter-gguf:Q4_K_M
lemonade run user.lab22-dpo-adapter-gguf-Q4_K_M
lemonade list
Merged FP16 weights + GGUF quantizations of an SFT+DPO Qwen2.5 model trained for the VinUni AICB Day 22 alignment lab.
unsloth/Qwen2.5-3B-bnb-4bit| Quant | File | Size (MB) |
|---|---|---|
| Q4_K_M | merged-fp16.Q4_K_M.gguf |
1929.9 |
model-*.safetensors etc. — merged FP16 weights (vLLM / transformers)| Metric | Value |
|---|---|
| Final training loss | 0.8085754909515381 |
| End chosen reward | -0.872550094127655 |
| End rejected reward | -0.9477240920066834 |
| End reward gap | 0.07517399787902834 |
from llama_cpp import Llama
llm = Llama(model_path="lab22-dpo-Q4_K_M.gguf", n_ctx=512, n_gpu_layers=-1)
out = llm.create_chat_completion(
messages=[{"role": "user", "content": "Giải thích quicksort 3 câu."}],
max_tokens=200, temperature=0.0,
)
print(out["choices"][0]["message"]["content"])
vllm serve Wan1302/lab22-dpo-adapter-gguf --port 8000 --max-model-len 512
VinUni AICB program · Track 3 Day 22 · A20 cohort 2026.