Instructions to use ShahzebKhoso/Qwen2.5-Coder-7B-Instruct with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- llama-cpp-python
How to use ShahzebKhoso/Qwen2.5-Coder-7B-Instruct with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="ShahzebKhoso/Qwen2.5-Coder-7B-Instruct", filename="Qwen2.5-Coder-7B-Instruct-FP16.gguf", )
llm.create_chat_completion( messages = [ { "role": "user", "content": "What is the capital of France?" } ] ) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- llama.cpp
How to use ShahzebKhoso/Qwen2.5-Coder-7B-Instruct with llama.cpp:
Install (macOS, Linux)
curl -LsSf https://llama.app/install.sh | sh # Start a local OpenAI-compatible server with a web UI: llama serve -hf ShahzebKhoso/Qwen2.5-Coder-7B-Instruct:Q4_K_M # Run inference directly in the terminal: llama cli -hf ShahzebKhoso/Qwen2.5-Coder-7B-Instruct:Q4_K_M
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama serve -hf ShahzebKhoso/Qwen2.5-Coder-7B-Instruct:Q4_K_M # Run inference directly in the terminal: llama cli -hf ShahzebKhoso/Qwen2.5-Coder-7B-Instruct: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 ShahzebKhoso/Qwen2.5-Coder-7B-Instruct:Q4_K_M # Run inference directly in the terminal: ./llama-cli -hf ShahzebKhoso/Qwen2.5-Coder-7B-Instruct: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 ShahzebKhoso/Qwen2.5-Coder-7B-Instruct:Q4_K_M # Run inference directly in the terminal: ./build/bin/llama-cli -hf ShahzebKhoso/Qwen2.5-Coder-7B-Instruct:Q4_K_M
Use Docker
docker model run hf.co/ShahzebKhoso/Qwen2.5-Coder-7B-Instruct:Q4_K_M
- LM Studio
- Jan
- vLLM
How to use ShahzebKhoso/Qwen2.5-Coder-7B-Instruct with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ShahzebKhoso/Qwen2.5-Coder-7B-Instruct" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ShahzebKhoso/Qwen2.5-Coder-7B-Instruct", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/ShahzebKhoso/Qwen2.5-Coder-7B-Instruct:Q4_K_M
- Ollama
How to use ShahzebKhoso/Qwen2.5-Coder-7B-Instruct with Ollama:
ollama run hf.co/ShahzebKhoso/Qwen2.5-Coder-7B-Instruct:Q4_K_M
- Unsloth Studio
How to use ShahzebKhoso/Qwen2.5-Coder-7B-Instruct 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 ShahzebKhoso/Qwen2.5-Coder-7B-Instruct 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 ShahzebKhoso/Qwen2.5-Coder-7B-Instruct to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for ShahzebKhoso/Qwen2.5-Coder-7B-Instruct to start chatting
- Pi
How to use ShahzebKhoso/Qwen2.5-Coder-7B-Instruct with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ShahzebKhoso/Qwen2.5-Coder-7B-Instruct: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": "ShahzebKhoso/Qwen2.5-Coder-7B-Instruct:Q4_K_M" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use ShahzebKhoso/Qwen2.5-Coder-7B-Instruct with Hermes Agent:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ShahzebKhoso/Qwen2.5-Coder-7B-Instruct: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 ShahzebKhoso/Qwen2.5-Coder-7B-Instruct:Q4_K_M
Run Hermes
hermes
- Atomic Chat new
- OpenClaw new
How to use ShahzebKhoso/Qwen2.5-Coder-7B-Instruct with OpenClaw:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama serve -hf ShahzebKhoso/Qwen2.5-Coder-7B-Instruct:Q4_K_M
Configure OpenClaw
# Install OpenClaw: npm install -g openclaw@latest # Register the local server and set it as the default model: openclaw onboard --non-interactive --mode local \ --auth-choice custom-api-key \ --custom-base-url http://127.0.0.1:8080/v1 \ --custom-model-id "ShahzebKhoso/Qwen2.5-Coder-7B-Instruct:Q4_K_M" \ --custom-provider-id llama-cpp \ --custom-compatibility openai \ --custom-text-input \ --accept-risk \ --skip-health
Run OpenClaw
openclaw agent --local --agent main --message "Hello from Hugging Face"
- Docker Model Runner
How to use ShahzebKhoso/Qwen2.5-Coder-7B-Instruct with Docker Model Runner:
docker model run hf.co/ShahzebKhoso/Qwen2.5-Coder-7B-Instruct:Q4_K_M
- Lemonade
How to use ShahzebKhoso/Qwen2.5-Coder-7B-Instruct with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull ShahzebKhoso/Qwen2.5-Coder-7B-Instruct:Q4_K_M
Run and chat with the model
lemonade run user.Qwen2.5-Coder-7B-Instruct-Q4_K_M
List all available models
lemonade list
| { | |
| "created_at": "2026-05-25T09:47:31Z", | |
| "base_model": "Qwen/Qwen2.5-Coder-7B-Instruct", | |
| "target_repo": "ShahzebKhoso/Qwen2.5-Coder-7B-Instruct", | |
| "model_name": "Qwen2.5-Coder-7B-Instruct", | |
| "mode": "full", | |
| "metadata": { | |
| "model_id": "Qwen/Qwen2.5-Coder-7B-Instruct", | |
| "sha": "c03e6d358207e414f1eca0bb1891e29f1db0e242", | |
| "license": "apache-2.0", | |
| "tags": [ | |
| "transformers", | |
| "safetensors", | |
| "qwen2", | |
| "text-generation", | |
| "code", | |
| "codeqwen", | |
| "chat", | |
| "qwen", | |
| "qwen-coder", | |
| "conversational", | |
| "en", | |
| "arxiv:2409.12186", | |
| "arxiv:2309.00071", | |
| "arxiv:2407.10671", | |
| "base_model:Qwen/Qwen2.5-Coder-7B", | |
| "base_model:finetune:Qwen/Qwen2.5-Coder-7B", | |
| "license:apache-2.0", | |
| "text-generation-inference", | |
| "endpoints_compatible", | |
| "deploy:azure", | |
| "region:us" | |
| ], | |
| "pipeline_tag": "text-generation" | |
| }, | |
| "files": [ | |
| { | |
| "quant": "FP16", | |
| "filename": "Qwen2.5-Coder-7B-Instruct-FP16.gguf", | |
| "path": "workspace/releases/Qwen2.5-Coder-7B-Instruct/Qwen2.5-Coder-7B-Instruct-FP16.gguf", | |
| "size_gib": 14.191357225179672, | |
| "sha256": "274c0eb05fe4a712805d4b999ad8e419f14a908ef1ca1b310a737a418ba15452" | |
| }, | |
| { | |
| "quant": "Q2_K", | |
| "filename": "Qwen2.5-Coder-7B-Instruct-Q2_K.gguf", | |
| "path": "workspace/releases/Qwen2.5-Coder-7B-Instruct/Qwen2.5-Coder-7B-Instruct-Q2_K.gguf", | |
| "size_gib": 2.808813661336899, | |
| "sha256": "3200d17f49c65545f8eb7ec4b3568ab91c947373f90181765c4dc912b94ac8cb" | |
| }, | |
| { | |
| "quant": "Q3_K_M", | |
| "filename": "Qwen2.5-Coder-7B-Instruct-Q3_K_M.gguf", | |
| "path": "workspace/releases/Qwen2.5-Coder-7B-Instruct/Qwen2.5-Coder-7B-Instruct-Q3_K_M.gguf", | |
| "size_gib": 3.5468412339687347, | |
| "sha256": "30be23c2bc76e2bb1a954b5d273e5694d185584d4ce34194c6436b7f246e45d7" | |
| }, | |
| { | |
| "quant": "Q4_0", | |
| "filename": "Qwen2.5-Coder-7B-Instruct-Q4_0.gguf", | |
| "path": "workspace/releases/Qwen2.5-Coder-7B-Instruct/Qwen2.5-Coder-7B-Instruct-Q4_0.gguf", | |
| "size_gib": 4.127054780721664, | |
| "sha256": "339fbe41f5d4cefa541eb59f25a5b026730cbd712b30c3a5a34a6c20a971778f" | |
| }, | |
| { | |
| "quant": "Q4_K_M", | |
| "filename": "Qwen2.5-Coder-7B-Instruct-Q4_K_M.gguf", | |
| "path": "workspace/releases/Qwen2.5-Coder-7B-Instruct/Qwen2.5-Coder-7B-Instruct-Q4_K_M.gguf", | |
| "size_gib": 4.361452668905258, | |
| "sha256": "46caa6175bbef0b12ffe552f702fb3949cb72c11acc29fdc935e10640b57f5a9" | |
| }, | |
| { | |
| "quant": "Q5_K_M", | |
| "filename": "Qwen2.5-Coder-7B-Instruct-Q5_K_M.gguf", | |
| "path": "workspace/releases/Qwen2.5-Coder-7B-Instruct/Qwen2.5-Coder-7B-Instruct-Q5_K_M.gguf", | |
| "size_gib": 5.070894807577133, | |
| "sha256": "38d6bd18220d7ae5251470a35eb57f469748b5bbf210eb0048f1e0365229a1e7" | |
| }, | |
| { | |
| "quant": "Q6_K", | |
| "filename": "Qwen2.5-Coder-7B-Instruct-Q6_K.gguf", | |
| "path": "workspace/releases/Qwen2.5-Coder-7B-Instruct/Qwen2.5-Coder-7B-Instruct-Q6_K.gguf", | |
| "size_gib": 5.824677079916, | |
| "sha256": "86b8e170136541e170f5c08b4fe5038c367c90922f3444685e0ed4c3bf61b9ca" | |
| }, | |
| { | |
| "quant": "Q8_0", | |
| "filename": "Qwen2.5-Coder-7B-Instruct-Q8_0.gguf", | |
| "path": "workspace/releases/Qwen2.5-Coder-7B-Instruct/Qwen2.5-Coder-7B-Instruct-Q8_0.gguf", | |
| "size_gib": 7.542339891195297, | |
| "sha256": "d4cdb65b1880d07b78acb24a26fe516a0b81b414bc6d4eaf2468746253ab75c9" | |
| } | |
| ], | |
| "validation": [ | |
| { | |
| "quant": "FP16", | |
| "filename": "Qwen2.5-Coder-7B-Instruct-FP16.gguf", | |
| "passed": true, | |
| "returncode": 0, | |
| "log": "workspace/releases/Qwen2.5-Coder-7B-Instruct/logs/validate_FP16.log" | |
| }, | |
| { | |
| "quant": "Q2_K", | |
| "filename": "Qwen2.5-Coder-7B-Instruct-Q2_K.gguf", | |
| "passed": true, | |
| "returncode": 0, | |
| "log": "workspace/releases/Qwen2.5-Coder-7B-Instruct/logs/validate_Q2_K.log" | |
| }, | |
| { | |
| "quant": "Q3_K_M", | |
| "filename": "Qwen2.5-Coder-7B-Instruct-Q3_K_M.gguf", | |
| "passed": true, | |
| "returncode": 0, | |
| "log": "workspace/releases/Qwen2.5-Coder-7B-Instruct/logs/validate_Q3_K_M.log" | |
| }, | |
| { | |
| "quant": "Q4_0", | |
| "filename": "Qwen2.5-Coder-7B-Instruct-Q4_0.gguf", | |
| "passed": true, | |
| "returncode": 0, | |
| "log": "workspace/releases/Qwen2.5-Coder-7B-Instruct/logs/validate_Q4_0.log" | |
| }, | |
| { | |
| "quant": "Q4_K_M", | |
| "filename": "Qwen2.5-Coder-7B-Instruct-Q4_K_M.gguf", | |
| "passed": true, | |
| "returncode": 0, | |
| "log": "workspace/releases/Qwen2.5-Coder-7B-Instruct/logs/validate_Q4_K_M.log" | |
| }, | |
| { | |
| "quant": "Q5_K_M", | |
| "filename": "Qwen2.5-Coder-7B-Instruct-Q5_K_M.gguf", | |
| "passed": true, | |
| "returncode": 0, | |
| "log": "workspace/releases/Qwen2.5-Coder-7B-Instruct/logs/validate_Q5_K_M.log" | |
| }, | |
| { | |
| "quant": "Q6_K", | |
| "filename": "Qwen2.5-Coder-7B-Instruct-Q6_K.gguf", | |
| "passed": true, | |
| "returncode": 0, | |
| "log": "workspace/releases/Qwen2.5-Coder-7B-Instruct/logs/validate_Q6_K.log" | |
| }, | |
| { | |
| "quant": "Q8_0", | |
| "filename": "Qwen2.5-Coder-7B-Instruct-Q8_0.gguf", | |
| "passed": true, | |
| "returncode": 0, | |
| "log": "workspace/releases/Qwen2.5-Coder-7B-Instruct/logs/validate_Q8_0.log" | |
| } | |
| ], | |
| "release_dir": "workspace/releases/Qwen2.5-Coder-7B-Instruct" | |
| } |