Instructions to use Bloce3an/qwen2.5-0.5B-entities-relationship-gguf with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use Bloce3an/qwen2.5-0.5B-entities-relationship-gguf with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="Bloce3an/qwen2.5-0.5B-entities-relationship-gguf", filename="qwen2.5-0.5b-instruct.Q4_K_M.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps
- llama.cpp
How to use Bloce3an/qwen2.5-0.5B-entities-relationship-gguf with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf Bloce3an/qwen2.5-0.5B-entities-relationship-gguf:Q4_K_M # Run inference directly in the terminal: llama-cli -hf Bloce3an/qwen2.5-0.5B-entities-relationship-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 Bloce3an/qwen2.5-0.5B-entities-relationship-gguf:Q4_K_M # Run inference directly in the terminal: llama-cli -hf Bloce3an/qwen2.5-0.5B-entities-relationship-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 Bloce3an/qwen2.5-0.5B-entities-relationship-gguf:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf Bloce3an/qwen2.5-0.5B-entities-relationship-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 Bloce3an/qwen2.5-0.5B-entities-relationship-gguf:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf Bloce3an/qwen2.5-0.5B-entities-relationship-gguf:Q4_K_M
Use Docker
docker model run hf.co/Bloce3an/qwen2.5-0.5B-entities-relationship-gguf:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use Bloce3an/qwen2.5-0.5B-entities-relationship-gguf with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "Bloce3an/qwen2.5-0.5B-entities-relationship-gguf" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "Bloce3an/qwen2.5-0.5B-entities-relationship-gguf", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/Bloce3an/qwen2.5-0.5B-entities-relationship-gguf:Q4_K_M
- Ollama
How to use Bloce3an/qwen2.5-0.5B-entities-relationship-gguf with Ollama:
ollama run hf.co/Bloce3an/qwen2.5-0.5B-entities-relationship-gguf:Q4_K_M
- Unsloth Studio
How to use Bloce3an/qwen2.5-0.5B-entities-relationship-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 Bloce3an/qwen2.5-0.5B-entities-relationship-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 Bloce3an/qwen2.5-0.5B-entities-relationship-gguf to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for Bloce3an/qwen2.5-0.5B-entities-relationship-gguf to start chatting
- Pi
How to use Bloce3an/qwen2.5-0.5B-entities-relationship-gguf with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf Bloce3an/qwen2.5-0.5B-entities-relationship-gguf:Q4_K_M
Configure the model in Pi
# Install Pi: npm install -g @mariozechner/pi-coding-agent # Add to ~/.pi/agent/models.json: { "providers": { "llama-cpp": { "baseUrl": "http://localhost:8080/v1", "api": "openai-completions", "apiKey": "none", "models": [ { "id": "Bloce3an/qwen2.5-0.5B-entities-relationship-gguf:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use Bloce3an/qwen2.5-0.5B-entities-relationship-gguf with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf Bloce3an/qwen2.5-0.5B-entities-relationship-gguf:Q4_K_M
Configure Hermes
# Install Hermes: curl -fsSL https://hermes-agent.nousresearch.com/install.sh | bash hermes setup # Point Hermes at the local server: hermes config set model.provider custom hermes config set model.base_url http://127.0.0.1:8080/v1 hermes config set model.default Bloce3an/qwen2.5-0.5B-entities-relationship-gguf:Q4_K_M
Run Hermes
hermes
- Docker Model Runner
How to use Bloce3an/qwen2.5-0.5B-entities-relationship-gguf with Docker Model Runner:
docker model run hf.co/Bloce3an/qwen2.5-0.5B-entities-relationship-gguf:Q4_K_M
- Lemonade
How to use Bloce3an/qwen2.5-0.5B-entities-relationship-gguf with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull Bloce3an/qwen2.5-0.5B-entities-relationship-gguf:Q4_K_M
Run and chat with the model
lemonade run user.qwen2.5-0.5B-entities-relationship-gguf-Q4_K_M
List all available models
lemonade list
Qwen2.5-0.5B-Instruct Knowledge Graph Extractor (GGUF)
This is a GGUF quantized version of the qwen2.5-0.5B-kg-lora2 model. The base model (Qwen2.5-0.5B-Instruct) was fine-tuned with Unsloth to strictly extract Knowledge Graph triples from unstructured text.
The weights have been merged and quantized to allow for fast, lightweight inference on CPU and edge devices using tools like llama.cpp, Ollama, or LM Studio.
Available Quantizations
This repository contains the following quantized files:
Q8_0: 8-bit quantization. Highest quality, nearly identical to the original fp16 model. Good if you have enough RAM.Q6_K: 6-bit quantization. Excellent balance between size and quality.Q4_K_M: 4-bit quantization. Recommended for most users. Fast inference and very low memory footprint with minimal quality loss.
Prompt Format (CRITICAL)
This model was strictly fine-tuned on a specific ChatML system prompt. You MUST use this exact system prompt or the model will hallucinate or output the wrong format.
<|im_start|>system
You are an expert at extracting clean, accurate knowledge graph triples from text.
Your task is to carefully read the input text and extract **all** meaningful triples in this exact format:
(subject | relation | object)
Strict rules you must follow:
- Subject and object must be specific named entities or concrete concepts explicitly mentioned in the text (people, organizations, locations, events, products, years, etc.)
- Relation should be a short, clear predicate in base form or simple present tense (examples: "is", "has", "works at", "located in", "born in", "capital of", "founded in")
- Only extract triples that are **directly supported** by the text โ do **not** infer, assume, hallucinate or add information that is not clearly stated
- If uncertain about a triple โ do **not** include it
- Each triple must be written on its **own separate line**
- Do **not** add any explanations, headings, numbering, bullet points, comments, or extra text of any kind
- If no valid triples can be extracted โ return exactly one line: "No triples found"<|im_end|>
<|im_start|>user
Text:
{your_input_text}<|im_end|>
<|im_start|>assistant
Usage with llama.cpp
Once you have downloaded the .gguf file of your choice (e.g. model-unsloth.Q4_K_M.gguf), you can run it via llama.cpp using the CLI. Since Qwen2.5 uses ChatML, ensure that you pass the exact system instruction.
./main -m model-unsloth.Q4_K_M.gguf \
--color \
-c 2048 \
-temp 0.1 \
--repeat_penalty 1.15 \
-p "<|im_start|>system\nYou are an expert at extracting clean, accurate knowledge graph triples from text.\n\nYour task is to carefully read the input text and extract **all** meaningful triples in this exact format:\n(subject | relation | object)\n\nStrict rules you must follow:\n- Subject and object must be specific named entities or concrete concepts explicitly mentioned in the text (people, organizations, locations, events, products, years, etc.)\n- Relation should be a short, clear predicate in base form or simple present tense (examples: \"is\", \"has\", \"works at\", \"located in\", \"born in\", \"capital of\", \"founded in\")\n- Only extract triples that are **directly supported** by the text โ do **not** infer, assume, hallucinate or add information that is not clearly stated\n- If uncertain about a triple โ do **not** include it\n- Each triple must be written on its **own separate line**\n- Do **not** add any explanations, headings, numbering, bullet points, comments, or extra text of any kind\n- If no valid triples can be extracted โ return exactly one line: \"No triples found\"<|im_end|>\n<|im_start|>user\nText:\nThe Tasmanian Devil is a carnivorous marsupial of the family Dasyuridae.<|im_end|>\n<|im_start|>assistant\n"
Intended Use
- Local processing of sensitive documents.
- Rapid edge-device extraction of explicit Entity-Relation-Entity relationships.
- Pipeline integration for RAG (Retrieval-Augmented Generation) graph curation.
- Downloads last month
- 35
4-bit
6-bit
8-bit