Instructions to use QuantFactory/Qwen2.5-0.5b-RBase-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use QuantFactory/Qwen2.5-0.5b-RBase-GGUF with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("QuantFactory/Qwen2.5-0.5b-RBase-GGUF", dtype="auto") - llama-cpp-python
How to use QuantFactory/Qwen2.5-0.5b-RBase-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="QuantFactory/Qwen2.5-0.5b-RBase-GGUF", filename="Qwen2.5-0.5b-RBase.Q2_K.gguf", )
llm.create_chat_completion( messages = "No input example has been defined for this model task." )
- Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use QuantFactory/Qwen2.5-0.5b-RBase-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf QuantFactory/Qwen2.5-0.5b-RBase-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf QuantFactory/Qwen2.5-0.5b-RBase-GGUF:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf QuantFactory/Qwen2.5-0.5b-RBase-GGUF:Q4_K_M # Run inference directly in the terminal: llama-cli -hf QuantFactory/Qwen2.5-0.5b-RBase-GGUF:Q4_K_M
Use pre-built binary
# 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 QuantFactory/Qwen2.5-0.5b-RBase-GGUF:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf QuantFactory/Qwen2.5-0.5b-RBase-GGUF:Q4_K_M
Build from source code
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 QuantFactory/Qwen2.5-0.5b-RBase-GGUF:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf QuantFactory/Qwen2.5-0.5b-RBase-GGUF:Q4_K_M
Use Docker
docker model run hf.co/QuantFactory/Qwen2.5-0.5b-RBase-GGUF:Q4_K_M
- LM Studio
- Jan
- Ollama
How to use QuantFactory/Qwen2.5-0.5b-RBase-GGUF with Ollama:
ollama run hf.co/QuantFactory/Qwen2.5-0.5b-RBase-GGUF:Q4_K_M
- Unsloth Studio new
How to use QuantFactory/Qwen2.5-0.5b-RBase-GGUF with Unsloth Studio:
Install Unsloth Studio (macOS, Linux, WSL)
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 QuantFactory/Qwen2.5-0.5b-RBase-GGUF to start chatting
Install Unsloth Studio (Windows)
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 QuantFactory/Qwen2.5-0.5b-RBase-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for QuantFactory/Qwen2.5-0.5b-RBase-GGUF to start chatting
- Docker Model Runner
How to use QuantFactory/Qwen2.5-0.5b-RBase-GGUF with Docker Model Runner:
docker model run hf.co/QuantFactory/Qwen2.5-0.5b-RBase-GGUF:Q4_K_M
- Lemonade
How to use QuantFactory/Qwen2.5-0.5b-RBase-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull QuantFactory/Qwen2.5-0.5b-RBase-GGUF:Q4_K_M
Run and chat with the model
lemonade run user.Qwen2.5-0.5b-RBase-GGUF-Q4_K_M
List all available models
lemonade list
Install from WinGet (Windows)
winget install llama.cpp
# Start a local OpenAI-compatible server with a web UI:
llama-server -hf QuantFactory/Qwen2.5-0.5b-RBase-GGUF:# Run inference directly in the terminal:
llama-cli -hf QuantFactory/Qwen2.5-0.5b-RBase-GGUF:Use pre-built binary
# 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 QuantFactory/Qwen2.5-0.5b-RBase-GGUF:# Run inference directly in the terminal:
./llama-cli -hf QuantFactory/Qwen2.5-0.5b-RBase-GGUF:Build from source code
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 QuantFactory/Qwen2.5-0.5b-RBase-GGUF:# Run inference directly in the terminal:
./build/bin/llama-cli -hf QuantFactory/Qwen2.5-0.5b-RBase-GGUF:Use Docker
docker model run hf.co/QuantFactory/Qwen2.5-0.5b-RBase-GGUF:QuantFactory/Qwen2.5-0.5b-RBase-GGUF
This is quantized version of KingNish/Qwen2.5-0.5b-RBase created using llama.cpp
Original Model Card
Qwen 2.5 0.5B Model
Model Description
This model is a compact yet powerful language model trained to answer a variety of questions with impressive quality. Despite its smaller size, it has demonstrated performance comparable to Llama 3.2 1B, and in some cases, it even outperforms it. This model was specifically trained on a 12,800 rows of the Magpie 300k Dataset.
Performance
The Qwen 2.5 model has shown promising results in various tests, including the "strawberry test, Decimal Comparison test" where it successfully provided accurate answers. However, it is important to note that, like many models of its size, it may occasionally produce incorrect answers or flawed reasoning. Continuous improvements and full training are planned to enhance its performance further.
How to Use
To use the Qwen 2.5 model, you can load it using the Hugging Face Transformers library. Here’s a simple example:
from transformers import AutoModelForCausalLM, AutoTokenizer
model_name = "KingNish/Qwen2.5-0.5b-Test-ft"
model = AutoModelForCausalLM.from_pretrained(
model_name,
torch_dtype="auto",
device_map="auto"
)
tokenizer = AutoTokenizer.from_pretrained(model_name)
prompt = "Which is greater 9.9 or 9.11 ??"
messages = [
{"role": "system", "content": "You are Qwen, created by Alibaba Cloud. You are a helpful assistant."},
{"role": "user", "content": prompt}
]
text = tokenizer.apply_chat_template(
messages,
tokenize=False,
add_generation_prompt=True
)
model_inputs = tokenizer([text], return_tensors="pt").to(model.device)
generated_ids = model.generate(
**model_inputs,
max_new_tokens=512
)
generated_ids = [
output_ids[len(input_ids):] for input_ids, output_ids in zip(model_inputs.input_ids, generated_ids)
]
response = tokenizer.batch_decode(generated_ids, skip_special_tokens=True)[0]
print(response)
Future Work
I am actively working on improving the Qwen 2.5 model by training it on a larger dataset.
Uploaded model
- Developed by: KingNish
- License: apache-2.0
- Finetuned from model : Qwen/Qwen2.5-0.5B-Instruct
This qwen2 model was trained 2x faster with Unsloth and Huggingface's TRL library.
- Downloads last month
- 30
2-bit
3-bit
4-bit
5-bit
6-bit
8-bit

Install from brew
# Start a local OpenAI-compatible server with a web UI: llama-server -hf QuantFactory/Qwen2.5-0.5b-RBase-GGUF:# Run inference directly in the terminal: llama-cli -hf QuantFactory/Qwen2.5-0.5b-RBase-GGUF: