Instructions to use unsloth/Qwen3-30B-A3B-Base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use unsloth/Qwen3-30B-A3B-Base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="unsloth/Qwen3-30B-A3B-Base")# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("unsloth/Qwen3-30B-A3B-Base") model = AutoModelForCausalLM.from_pretrained("unsloth/Qwen3-30B-A3B-Base") - Notebooks
- Google Colab
- Kaggle
- Local Apps
- vLLM
How to use unsloth/Qwen3-30B-A3B-Base with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "unsloth/Qwen3-30B-A3B-Base" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "unsloth/Qwen3-30B-A3B-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/unsloth/Qwen3-30B-A3B-Base
- SGLang
How to use unsloth/Qwen3-30B-A3B-Base 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 "unsloth/Qwen3-30B-A3B-Base" \ --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": "unsloth/Qwen3-30B-A3B-Base", "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 "unsloth/Qwen3-30B-A3B-Base" \ --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": "unsloth/Qwen3-30B-A3B-Base", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Unsloth Studio new
How to use unsloth/Qwen3-30B-A3B-Base 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 unsloth/Qwen3-30B-A3B-Base 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 unsloth/Qwen3-30B-A3B-Base to start chatting
Using HuggingFace Spaces for Unsloth
# No setup required # Open https://huggingface.co/spaces/unsloth/studio in your browser # Search for unsloth/Qwen3-30B-A3B-Base to start chatting
Load model with FastModel
pip install unsloth from unsloth import FastModel model, tokenizer = FastModel.from_pretrained( model_name="unsloth/Qwen3-30B-A3B-Base", max_seq_length=2048, ) - Docker Model Runner
How to use unsloth/Qwen3-30B-A3B-Base with Docker Model Runner:
docker model run hf.co/unsloth/Qwen3-30B-A3B-Base
Add files using upload-large-folder tool
Browse files- README.md +5 -3
- added_tokens.json +4 -0
- config.json +1 -1
- tokenizer.json +2 -2
- tokenizer_config.json +32 -0
README.md
CHANGED
|
@@ -3,8 +3,10 @@ tags:
|
|
| 3 |
- unsloth
|
| 4 |
base_model:
|
| 5 |
- Qwen/Qwen3-30B-A3B-Base
|
|
|
|
|
|
|
| 6 |
---
|
| 7 |
-
# Qwen3-30B-A3B
|
| 8 |
|
| 9 |
## Qwen3 Highlights
|
| 10 |
|
|
@@ -18,9 +20,9 @@ Building upon extensive advancements in training data, model architecture, and o
|
|
| 18 |
|
| 19 |
## Model Overview
|
| 20 |
|
| 21 |
-
**Qwen3-30B-A3B** has the following features:
|
| 22 |
- Type: Causal Language Models
|
| 23 |
-
- Training Stage: Pretraining
|
| 24 |
- Number of Parameters: 30.5B in total and 3.3B activated
|
| 25 |
- Number of Paramaters (Non-Embedding): 29.9B
|
| 26 |
- Number of Layers: 48
|
|
|
|
| 3 |
- unsloth
|
| 4 |
base_model:
|
| 5 |
- Qwen/Qwen3-30B-A3B-Base
|
| 6 |
+
license: apache-2.0
|
| 7 |
+
library_name: transformers
|
| 8 |
---
|
| 9 |
+
# Qwen3-30B-A3B-Base
|
| 10 |
|
| 11 |
## Qwen3 Highlights
|
| 12 |
|
|
|
|
| 20 |
|
| 21 |
## Model Overview
|
| 22 |
|
| 23 |
+
**Qwen3-30B-A3B-Base** has the following features:
|
| 24 |
- Type: Causal Language Models
|
| 25 |
+
- Training Stage: Pretraining
|
| 26 |
- Number of Parameters: 30.5B in total and 3.3B activated
|
| 27 |
- Number of Paramaters (Non-Embedding): 29.9B
|
| 28 |
- Number of Layers: 48
|
added_tokens.json
CHANGED
|
@@ -1,6 +1,10 @@
|
|
| 1 |
{
|
|
|
|
| 2 |
"</tool_call>": 151658,
|
|
|
|
|
|
|
| 3 |
"<tool_call>": 151657,
|
|
|
|
| 4 |
"<|box_end|>": 151649,
|
| 5 |
"<|box_start|>": 151648,
|
| 6 |
"<|endoftext|>": 151643,
|
|
|
|
| 1 |
{
|
| 2 |
+
"</think>": 151668,
|
| 3 |
"</tool_call>": 151658,
|
| 4 |
+
"</tool_response>": 151666,
|
| 5 |
+
"<think>": 151667,
|
| 6 |
"<tool_call>": 151657,
|
| 7 |
+
"<tool_response>": 151665,
|
| 8 |
"<|box_end|>": 151649,
|
| 9 |
"<|box_start|>": 151648,
|
| 10 |
"<|endoftext|>": 151643,
|
config.json
CHANGED
|
@@ -10,7 +10,7 @@
|
|
| 10 |
"hidden_act": "silu",
|
| 11 |
"hidden_size": 2048,
|
| 12 |
"initializer_range": 0.02,
|
| 13 |
-
"intermediate_size":
|
| 14 |
"max_position_embeddings": 32768,
|
| 15 |
"max_window_layers": 48,
|
| 16 |
"mlp_only_layers": [],
|
|
|
|
| 10 |
"hidden_act": "silu",
|
| 11 |
"hidden_size": 2048,
|
| 12 |
"initializer_range": 0.02,
|
| 13 |
+
"intermediate_size": 6144,
|
| 14 |
"max_position_embeddings": 32768,
|
| 15 |
"max_window_layers": 48,
|
| 16 |
"mlp_only_layers": [],
|
tokenizer.json
CHANGED
|
@@ -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:aeb13307a71acd8fe81861d94ad54ab689df773318809eed3cbe794b4492dae4
|
| 3 |
+
size 11422654
|
tokenizer_config.json
CHANGED
|
@@ -177,6 +177,38 @@
|
|
| 177 |
"rstrip": false,
|
| 178 |
"single_word": false,
|
| 179 |
"special": false
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 180 |
}
|
| 181 |
},
|
| 182 |
"additional_special_tokens": [
|
|
|
|
| 177 |
"rstrip": false,
|
| 178 |
"single_word": false,
|
| 179 |
"special": false
|
| 180 |
+
},
|
| 181 |
+
"151665": {
|
| 182 |
+
"content": "<tool_response>",
|
| 183 |
+
"lstrip": false,
|
| 184 |
+
"normalized": false,
|
| 185 |
+
"rstrip": false,
|
| 186 |
+
"single_word": false,
|
| 187 |
+
"special": false
|
| 188 |
+
},
|
| 189 |
+
"151666": {
|
| 190 |
+
"content": "</tool_response>",
|
| 191 |
+
"lstrip": false,
|
| 192 |
+
"normalized": false,
|
| 193 |
+
"rstrip": false,
|
| 194 |
+
"single_word": false,
|
| 195 |
+
"special": false
|
| 196 |
+
},
|
| 197 |
+
"151667": {
|
| 198 |
+
"content": "<think>",
|
| 199 |
+
"lstrip": false,
|
| 200 |
+
"normalized": false,
|
| 201 |
+
"rstrip": false,
|
| 202 |
+
"single_word": false,
|
| 203 |
+
"special": false
|
| 204 |
+
},
|
| 205 |
+
"151668": {
|
| 206 |
+
"content": "</think>",
|
| 207 |
+
"lstrip": false,
|
| 208 |
+
"normalized": false,
|
| 209 |
+
"rstrip": false,
|
| 210 |
+
"single_word": false,
|
| 211 |
+
"special": false
|
| 212 |
}
|
| 213 |
},
|
| 214 |
"additional_special_tokens": [
|