Instructions to use c01zaut/Qwen2.5-Coder-1.5B-Instruct-rk3588-1.1.4 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use c01zaut/Qwen2.5-Coder-1.5B-Instruct-rk3588-1.1.4 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="c01zaut/Qwen2.5-Coder-1.5B-Instruct-rk3588-1.1.4") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("c01zaut/Qwen2.5-Coder-1.5B-Instruct-rk3588-1.1.4") model = AutoModelForCausalLM.from_pretrained("c01zaut/Qwen2.5-Coder-1.5B-Instruct-rk3588-1.1.4", device_map="auto") messages = [ {"role": "user", "content": "Who are you?"}, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=40) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use c01zaut/Qwen2.5-Coder-1.5B-Instruct-rk3588-1.1.4 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "c01zaut/Qwen2.5-Coder-1.5B-Instruct-rk3588-1.1.4" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "c01zaut/Qwen2.5-Coder-1.5B-Instruct-rk3588-1.1.4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/c01zaut/Qwen2.5-Coder-1.5B-Instruct-rk3588-1.1.4
- SGLang
How to use c01zaut/Qwen2.5-Coder-1.5B-Instruct-rk3588-1.1.4 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 "c01zaut/Qwen2.5-Coder-1.5B-Instruct-rk3588-1.1.4" \ --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": "c01zaut/Qwen2.5-Coder-1.5B-Instruct-rk3588-1.1.4", "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 "c01zaut/Qwen2.5-Coder-1.5B-Instruct-rk3588-1.1.4" \ --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": "c01zaut/Qwen2.5-Coder-1.5B-Instruct-rk3588-1.1.4", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use c01zaut/Qwen2.5-Coder-1.5B-Instruct-rk3588-1.1.4 with Docker Model Runner:
docker model run hf.co/c01zaut/Qwen2.5-Coder-1.5B-Instruct-rk3588-1.1.4
Upload folder using huggingface_hub
Browse files- .gitattributes +12 -0
- Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8-opt-0-hybrid-ratio-0.0.rkllm +1 -1
- Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8-opt-0-hybrid-ratio-0.5.rkllm +1 -1
- Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8-opt-0-hybrid-ratio-1.0.rkllm +1 -1
- Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8-opt-1-hybrid-ratio-0.0.rkllm +1 -1
- Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8-opt-1-hybrid-ratio-0.5.rkllm +1 -1
- Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8-opt-1-hybrid-ratio-1.0.rkllm +1 -1
- Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8_g128-opt-0-hybrid-ratio-0.0.rkllm +3 -0
- Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8_g128-opt-0-hybrid-ratio-0.5.rkllm +3 -0
- Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8_g128-opt-0-hybrid-ratio-1.0.rkllm +3 -0
- Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8_g128-opt-1-hybrid-ratio-0.0.rkllm +3 -0
- Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8_g128-opt-1-hybrid-ratio-0.5.rkllm +3 -0
- Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8_g128-opt-1-hybrid-ratio-1.0.rkllm +3 -0
- Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8_g256-opt-0-hybrid-ratio-0.0.rkllm +3 -0
- Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8_g256-opt-0-hybrid-ratio-0.5.rkllm +3 -0
- Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8_g256-opt-0-hybrid-ratio-1.0.rkllm +3 -0
- Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8_g256-opt-1-hybrid-ratio-0.0.rkllm +3 -0
- Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8_g256-opt-1-hybrid-ratio-0.5.rkllm +3 -0
- Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8_g256-opt-1-hybrid-ratio-1.0.rkllm +3 -0
- README.md +1 -1
.gitattributes
CHANGED
|
@@ -39,3 +39,15 @@ Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8-opt-0-hybrid-ratio-1.0.rkllm filter=lfs
|
|
| 39 |
Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8-opt-1-hybrid-ratio-0.0.rkllm filter=lfs diff=lfs merge=lfs -text
|
| 40 |
Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8-opt-1-hybrid-ratio-0.5.rkllm filter=lfs diff=lfs merge=lfs -text
|
| 41 |
Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8-opt-1-hybrid-ratio-1.0.rkllm filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 39 |
Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8-opt-1-hybrid-ratio-0.0.rkllm filter=lfs diff=lfs merge=lfs -text
|
| 40 |
Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8-opt-1-hybrid-ratio-0.5.rkllm filter=lfs diff=lfs merge=lfs -text
|
| 41 |
Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8-opt-1-hybrid-ratio-1.0.rkllm filter=lfs diff=lfs merge=lfs -text
|
| 42 |
+
Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8_g128-opt-0-hybrid-ratio-0.0.rkllm filter=lfs diff=lfs merge=lfs -text
|
| 43 |
+
Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8_g128-opt-0-hybrid-ratio-0.5.rkllm filter=lfs diff=lfs merge=lfs -text
|
| 44 |
+
Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8_g128-opt-0-hybrid-ratio-1.0.rkllm filter=lfs diff=lfs merge=lfs -text
|
| 45 |
+
Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8_g128-opt-1-hybrid-ratio-0.0.rkllm filter=lfs diff=lfs merge=lfs -text
|
| 46 |
+
Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8_g128-opt-1-hybrid-ratio-0.5.rkllm filter=lfs diff=lfs merge=lfs -text
|
| 47 |
+
Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8_g128-opt-1-hybrid-ratio-1.0.rkllm filter=lfs diff=lfs merge=lfs -text
|
| 48 |
+
Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8_g256-opt-0-hybrid-ratio-0.0.rkllm filter=lfs diff=lfs merge=lfs -text
|
| 49 |
+
Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8_g256-opt-0-hybrid-ratio-0.5.rkllm filter=lfs diff=lfs merge=lfs -text
|
| 50 |
+
Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8_g256-opt-0-hybrid-ratio-1.0.rkllm filter=lfs diff=lfs merge=lfs -text
|
| 51 |
+
Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8_g256-opt-1-hybrid-ratio-0.0.rkllm filter=lfs diff=lfs merge=lfs -text
|
| 52 |
+
Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8_g256-opt-1-hybrid-ratio-0.5.rkllm filter=lfs diff=lfs merge=lfs -text
|
| 53 |
+
Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8_g256-opt-1-hybrid-ratio-1.0.rkllm filter=lfs diff=lfs merge=lfs -text
|
Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8-opt-0-hybrid-ratio-0.0.rkllm
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2035400284
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7210d02594c920e2d98fcf5dc1ec433b37e94f3cea78457f235fc48abf43baee
|
| 3 |
size 2035400284
|
Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8-opt-0-hybrid-ratio-0.5.rkllm
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2035400284
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7210d02594c920e2d98fcf5dc1ec433b37e94f3cea78457f235fc48abf43baee
|
| 3 |
size 2035400284
|
Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8-opt-0-hybrid-ratio-1.0.rkllm
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2035400284
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:7210d02594c920e2d98fcf5dc1ec433b37e94f3cea78457f235fc48abf43baee
|
| 3 |
size 2035400284
|
Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8-opt-1-hybrid-ratio-0.0.rkllm
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2035400284
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:726837136feec5c7e1f5db7f7fcbc26d3b974b890e9014faeba402875e229af8
|
| 3 |
size 2035400284
|
Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8-opt-1-hybrid-ratio-0.5.rkllm
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2035400284
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:726837136feec5c7e1f5db7f7fcbc26d3b974b890e9014faeba402875e229af8
|
| 3 |
size 2035400284
|
Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8-opt-1-hybrid-ratio-1.0.rkllm
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 2035400284
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:726837136feec5c7e1f5db7f7fcbc26d3b974b890e9014faeba402875e229af8
|
| 3 |
size 2035400284
|
Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8_g128-opt-0-hybrid-ratio-0.0.rkllm
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b9f43557e37490e759997e0d422cb9ab531fa0498928221cff2fbc4471a1a0ae
|
| 3 |
+
size 2154643444
|
Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8_g128-opt-0-hybrid-ratio-0.5.rkllm
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b9f43557e37490e759997e0d422cb9ab531fa0498928221cff2fbc4471a1a0ae
|
| 3 |
+
size 2154643444
|
Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8_g128-opt-0-hybrid-ratio-1.0.rkllm
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:b9f43557e37490e759997e0d422cb9ab531fa0498928221cff2fbc4471a1a0ae
|
| 3 |
+
size 2154643444
|
Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8_g128-opt-1-hybrid-ratio-0.0.rkllm
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6acb8494c41ab41ee805774d3e3890bc785cd3248432d18e093e4f7d19b48dff
|
| 3 |
+
size 2140621588
|
Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8_g128-opt-1-hybrid-ratio-0.5.rkllm
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6acb8494c41ab41ee805774d3e3890bc785cd3248432d18e093e4f7d19b48dff
|
| 3 |
+
size 2140621588
|
Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8_g128-opt-1-hybrid-ratio-1.0.rkllm
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:6acb8494c41ab41ee805774d3e3890bc785cd3248432d18e093e4f7d19b48dff
|
| 3 |
+
size 2140621588
|
Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8_g256-opt-0-hybrid-ratio-0.0.rkllm
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:656836f8142a1a53e9a008eaafaad2beab6dd45bff542ada03981744dd8b3e86
|
| 3 |
+
size 2092226260
|
Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8_g256-opt-0-hybrid-ratio-0.5.rkllm
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:656836f8142a1a53e9a008eaafaad2beab6dd45bff542ada03981744dd8b3e86
|
| 3 |
+
size 2092226260
|
Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8_g256-opt-0-hybrid-ratio-1.0.rkllm
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:656836f8142a1a53e9a008eaafaad2beab6dd45bff542ada03981744dd8b3e86
|
| 3 |
+
size 2092226260
|
Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8_g256-opt-1-hybrid-ratio-0.0.rkllm
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:75fed71133686c90c071a6917255cab794f67c095145b09139231653c149cadd
|
| 3 |
+
size 2085841492
|
Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8_g256-opt-1-hybrid-ratio-0.5.rkllm
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:75fed71133686c90c071a6917255cab794f67c095145b09139231653c149cadd
|
| 3 |
+
size 2085841492
|
Qwen2.5-Coder-1.5B-Instruct-rk3588-w8a8_g256-opt-1-hybrid-ratio-1.0.rkllm
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:75fed71133686c90c071a6917255cab794f67c095145b09139231653c149cadd
|
| 3 |
+
size 2085841492
|
README.md
CHANGED
|
@@ -16,7 +16,7 @@ tags:
|
|
| 16 |
---
|
| 17 |
# Qwen2.5-Coder-1.5B-Instruct-RK3588-1.1.2
|
| 18 |
|
| 19 |
-
This version of Qwen2.5-Coder-1.5B-Instruct has been converted to run on the RK3588 NPU using ['w8a8'] quantization.
|
| 20 |
This model has been optimized with the following LoRA:
|
| 21 |
|
| 22 |
Compatible with RKLLM version: 1.1.2
|
|
|
|
| 16 |
---
|
| 17 |
# Qwen2.5-Coder-1.5B-Instruct-RK3588-1.1.2
|
| 18 |
|
| 19 |
+
This version of Qwen2.5-Coder-1.5B-Instruct has been converted to run on the RK3588 NPU using ['w8a8', 'w8a8_g128', 'w8a8_g256', 'w8a8_g512'] quantization.
|
| 20 |
This model has been optimized with the following LoRA:
|
| 21 |
|
| 22 |
Compatible with RKLLM version: 1.1.2
|