Instructions to use tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF", dtype="auto") - llama-cpp-python
How to use tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF with llama-cpp-python:
# !pip install llama-cpp-python from llama_cpp import Llama llm = Llama.from_pretrained( repo_id="tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF", filename="Qwen2.5-Coder-7B-Instruct-Q2_K.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 tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF with llama.cpp:
Install from brew
brew install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF:Q2_K
Install from WinGet (Windows)
winget install llama.cpp # Start a local OpenAI-compatible server with a web UI: llama-server -hf tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF:Q2_K # Run inference directly in the terminal: llama-cli -hf tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF:Q2_K
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 tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF:Q2_K # Run inference directly in the terminal: ./llama-cli -hf tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF:Q2_K
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 tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF:Q2_K # Run inference directly in the terminal: ./build/bin/llama-cli -hf tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF:Q2_K
Use Docker
docker model run hf.co/tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF:Q2_K
- LM Studio
- Jan
- vLLM
How to use tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "tensorblock/Qwen2.5-Coder-7B-Instruct-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": "tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF:Q2_K
- SGLang
How to use tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Ollama
How to use tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF with Ollama:
ollama run hf.co/tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF:Q2_K
- Unsloth Studio
How to use tensorblock/Qwen2.5-Coder-7B-Instruct-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 tensorblock/Qwen2.5-Coder-7B-Instruct-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 tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF to start chatting
- Pi
How to use tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF with Pi:
Start the llama.cpp server
# Install llama.cpp: brew install llama.cpp # Start a local OpenAI-compatible server: llama-server -hf tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF:Q2_K
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": "tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF:Q2_K" } ] } } }Run Pi
# Start Pi in your project directory: pi
- Hermes Agent new
How to use tensorblock/Qwen2.5-Coder-7B-Instruct-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 tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF:Q2_K
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 tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF:Q2_K
Run Hermes
hermes
- Docker Model Runner
How to use tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF with Docker Model Runner:
docker model run hf.co/tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF:Q2_K
- Lemonade
How to use tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF with Lemonade:
Pull the model
# Download Lemonade from https://lemonade-server.ai/ lemonade pull tensorblock/Qwen2.5-Coder-7B-Instruct-GGUF:Q2_K
Run and chat with the model
lemonade run user.Qwen2.5-Coder-7B-Instruct-GGUF-Q2_K
List all available models
lemonade list
Upload folder using huggingface_hub
Browse files- Qwen2.5-Coder-7B-Instruct-Q2_K.gguf +2 -2
- Qwen2.5-Coder-7B-Instruct-Q3_K_L.gguf +2 -2
- Qwen2.5-Coder-7B-Instruct-Q3_K_M.gguf +2 -2
- Qwen2.5-Coder-7B-Instruct-Q3_K_S.gguf +2 -2
- Qwen2.5-Coder-7B-Instruct-Q4_0.gguf +2 -2
- Qwen2.5-Coder-7B-Instruct-Q4_K_M.gguf +2 -2
- Qwen2.5-Coder-7B-Instruct-Q4_K_S.gguf +2 -2
- Qwen2.5-Coder-7B-Instruct-Q5_0.gguf +2 -2
- Qwen2.5-Coder-7B-Instruct-Q5_K_M.gguf +2 -2
- Qwen2.5-Coder-7B-Instruct-Q5_K_S.gguf +2 -2
- Qwen2.5-Coder-7B-Instruct-Q6_K.gguf +2 -2
- Qwen2.5-Coder-7B-Instruct-Q8_0.gguf +2 -2
- README.md +9 -8
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:f1eb61e3fd9688da3de9b8f1b90fc700e1b1a95cd8fc8a1db4d8d0e7c70d46d2
|
| 3 |
+
size 3015940608
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:487b83769ff9dab444326dd2abbec31a9a4b205177dd1ab527391bade06cc260
|
| 3 |
+
size 4088459776
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:bdd5eecfa0e5629a866772f34b727ba38fa5e6f967d8e30c166bcfdf06c9e5d5
|
| 3 |
+
size 3808391680
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6d6996d7e87d9ef95e145b3f84e36a537b2aa8f5f563942a6a547da2cf84dda4
|
| 3 |
+
size 3492368896
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:ed2b7c55aa7f6e3f1280bc332edd235f1a7df8904bffe02f6da0ea542afca738
|
| 3 |
+
size 4431391232
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fd3e718923742192a3a79c7ef2ea22e6d4a6d268883e70e4a3cffc7c76d472b1
|
| 3 |
+
size 4683074048
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:9e8b57be1f3ef538cfa987dce1edc31cdc3caf016b20e3781868e506f78d05f8
|
| 3 |
+
size 4457769472
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:965a9027d1e8bf360773a510bee94b491db69ae5d0f8e5736427c02ef6f728bd
|
| 3 |
+
size 5315176960
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:fe0348b8971dfac2b58ae129fcc09718eba69bb015f7884952dc19dc8d7c124a
|
| 3 |
+
size 5444831744
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a6580066b0d3be8f6a6323174b9b21dfe8e9b2fce2859fdf79c792febdc0e9b9
|
| 3 |
+
size 5315176960
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:0db92f3be11b912c1f060b1631b96e6a3b65f657b76ac36122a684dfc55a4561
|
| 3 |
+
size 6254199296
|
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:05715ce0f66ad3a634f5f8222e0dcd69bf84c6d7ae50560c9711c4510c4d61a1
|
| 3 |
+
size 8098525696
|
|
@@ -1,16 +1,17 @@
|
|
| 1 |
---
|
| 2 |
-
|
|
|
|
| 3 |
language:
|
| 4 |
- en
|
|
|
|
|
|
|
| 5 |
library_name: transformers
|
| 6 |
-
license: apache-2.0
|
| 7 |
tags:
|
| 8 |
-
- unsloth
|
| 9 |
-
- transformers
|
| 10 |
- code
|
|
|
|
|
|
|
| 11 |
- qwen
|
| 12 |
- qwen-coder
|
| 13 |
-
- codeqwen
|
| 14 |
- TensorBlock
|
| 15 |
- GGUF
|
| 16 |
---
|
|
@@ -26,11 +27,11 @@ tags:
|
|
| 26 |
</div>
|
| 27 |
</div>
|
| 28 |
|
| 29 |
-
##
|
| 30 |
|
| 31 |
-
This repo contains GGUF format model files for [
|
| 32 |
|
| 33 |
-
The files were quantized using machines provided by [TensorBlock](https://tensorblock.co/), and they are compatible with llama.cpp as of [commit
|
| 34 |
|
| 35 |
<div style="text-align: left; margin: 20px 0;">
|
| 36 |
<a href="https://tensorblock.co/waitlist/client" style="display: inline-block; padding: 10px 20px; background-color: #007bff; color: white; text-decoration: none; border-radius: 5px; font-weight: bold;">
|
|
|
|
| 1 |
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
license_link: https://huggingface.co/Qwen/Qwen2.5-Coder-7B-Instruct/blob/main/LICENSE
|
| 4 |
language:
|
| 5 |
- en
|
| 6 |
+
base_model: Qwen/Qwen2.5-Coder-7B-Instruct
|
| 7 |
+
pipeline_tag: text-generation
|
| 8 |
library_name: transformers
|
|
|
|
| 9 |
tags:
|
|
|
|
|
|
|
| 10 |
- code
|
| 11 |
+
- codeqwen
|
| 12 |
+
- chat
|
| 13 |
- qwen
|
| 14 |
- qwen-coder
|
|
|
|
| 15 |
- TensorBlock
|
| 16 |
- GGUF
|
| 17 |
---
|
|
|
|
| 27 |
</div>
|
| 28 |
</div>
|
| 29 |
|
| 30 |
+
## Qwen/Qwen2.5-Coder-7B-Instruct - GGUF
|
| 31 |
|
| 32 |
+
This repo contains GGUF format model files for [Qwen/Qwen2.5-Coder-7B-Instruct](https://huggingface.co/Qwen/Qwen2.5-Coder-7B-Instruct).
|
| 33 |
|
| 34 |
+
The files were quantized using machines provided by [TensorBlock](https://tensorblock.co/), and they are compatible with llama.cpp as of [commit ec7f3ac](https://github.com/ggerganov/llama.cpp/commit/ec7f3ac9ab33e46b136eb5ab6a76c4d81f57c7f1).
|
| 35 |
|
| 36 |
<div style="text-align: left; margin: 20px 0;">
|
| 37 |
<a href="https://tensorblock.co/waitlist/client" style="display: inline-block; padding: 10px 20px; background-color: #007bff; color: white; text-decoration: none; border-radius: 5px; font-weight: bold;">
|