Instructions to use StableQuant/Qwen-Templates-Rebuild-Project with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use StableQuant/Qwen-Templates-Rebuild-Project with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="StableQuant/Qwen-Templates-Rebuild-Project")# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("StableQuant/Qwen-Templates-Rebuild-Project", dtype="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use StableQuant/Qwen-Templates-Rebuild-Project with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "StableQuant/Qwen-Templates-Rebuild-Project" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "StableQuant/Qwen-Templates-Rebuild-Project", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/StableQuant/Qwen-Templates-Rebuild-Project
- SGLang
How to use StableQuant/Qwen-Templates-Rebuild-Project 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 "StableQuant/Qwen-Templates-Rebuild-Project" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "StableQuant/Qwen-Templates-Rebuild-Project", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "StableQuant/Qwen-Templates-Rebuild-Project" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "StableQuant/Qwen-Templates-Rebuild-Project", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use StableQuant/Qwen-Templates-Rebuild-Project with Docker Model Runner:
docker model run hf.co/StableQuant/Qwen-Templates-Rebuild-Project
Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,21 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
Update: You can download v1.0 now.
|
| 2 |
16 common Bugs from other templates and tool cases are fixed (for example JSON """ escapes, unicode character parsing etc.)
|
| 3 |
Dev role fix etc. will be pushed soon to in a v1.1, prework is almost done.
|
|
@@ -28,24 +46,4 @@ In the next days I will create more specific and intense test cases and run them
|
|
| 28 |
|
| 29 |
Please feel free to report any bug you encounter with the template, it will be looked in manually from me and be analyzed intensly.
|
| 30 |
|
| 31 |
-
Have fun!
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
|
| 35 |
-
---
|
| 36 |
-
license: apache-2.0
|
| 37 |
-
base_model:
|
| 38 |
-
- Qwen/Qwen3.6-27B
|
| 39 |
-
- Qwen/Qwen3.6-35B-A3B
|
| 40 |
-
- Qwen/Qwen3.5-27B
|
| 41 |
-
- Qwen/Qwen3.5-35B-A3B
|
| 42 |
-
pipeline_tag: text-generation
|
| 43 |
-
library_name: transformers
|
| 44 |
-
tags:
|
| 45 |
-
- chat-template
|
| 46 |
-
- jinja
|
| 47 |
-
- jinja2
|
| 48 |
-
- qwen3
|
| 49 |
-
- template-fix
|
| 50 |
-
- bugfix
|
| 51 |
-
---
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
base_model:
|
| 4 |
+
- Qwen/Qwen3.6-27B
|
| 5 |
+
- Qwen/Qwen3.6-35B-A3B
|
| 6 |
+
- Qwen/Qwen3.5-27B
|
| 7 |
+
- Qwen/Qwen3.5-35B-A3B
|
| 8 |
+
pipeline_tag: text-generation
|
| 9 |
+
library_name: transformers
|
| 10 |
+
tags:
|
| 11 |
+
- chat-template
|
| 12 |
+
- jinja
|
| 13 |
+
- jinja2
|
| 14 |
+
- qwen3
|
| 15 |
+
- template-fix
|
| 16 |
+
- bugfix
|
| 17 |
+
---
|
| 18 |
+
|
| 19 |
Update: You can download v1.0 now.
|
| 20 |
16 common Bugs from other templates and tool cases are fixed (for example JSON """ escapes, unicode character parsing etc.)
|
| 21 |
Dev role fix etc. will be pushed soon to in a v1.1, prework is almost done.
|
|
|
|
| 46 |
|
| 47 |
Please feel free to report any bug you encounter with the template, it will be looked in manually from me and be analyzed intensly.
|
| 48 |
|
| 49 |
+
Have fun!
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|