Text Generation
Transformers
Safetensors
English
qwen3_moe
coder
Mixture of Experts
awq
4-bit precision
int4
quantized
reap
conversational
Instructions to use mattbucci/Qwen3-Coder-30B-A3B-REAP-AWQ with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mattbucci/Qwen3-Coder-30B-A3B-REAP-AWQ with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="mattbucci/Qwen3-Coder-30B-A3B-REAP-AWQ") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("mattbucci/Qwen3-Coder-30B-A3B-REAP-AWQ") model = AutoModelForCausalLM.from_pretrained("mattbucci/Qwen3-Coder-30B-A3B-REAP-AWQ") 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
- vLLM
How to use mattbucci/Qwen3-Coder-30B-A3B-REAP-AWQ with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "mattbucci/Qwen3-Coder-30B-A3B-REAP-AWQ" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "mattbucci/Qwen3-Coder-30B-A3B-REAP-AWQ", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/mattbucci/Qwen3-Coder-30B-A3B-REAP-AWQ
- SGLang
How to use mattbucci/Qwen3-Coder-30B-A3B-REAP-AWQ 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 "mattbucci/Qwen3-Coder-30B-A3B-REAP-AWQ" \ --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": "mattbucci/Qwen3-Coder-30B-A3B-REAP-AWQ", "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 "mattbucci/Qwen3-Coder-30B-A3B-REAP-AWQ" \ --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": "mattbucci/Qwen3-Coder-30B-A3B-REAP-AWQ", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use mattbucci/Qwen3-Coder-30B-A3B-REAP-AWQ with Docker Model Runner:
docker model run hf.co/mattbucci/Qwen3-Coder-30B-A3B-REAP-AWQ
add config.json
Browse files- config.json +75 -0
config.json
ADDED
|
@@ -0,0 +1,75 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"architectures": [
|
| 3 |
+
"Qwen3MoeForCausalLM"
|
| 4 |
+
],
|
| 5 |
+
"attention_bias": false,
|
| 6 |
+
"attention_dropout": 0.0,
|
| 7 |
+
"bos_token_id": 151643,
|
| 8 |
+
"decoder_sparse_step": 1,
|
| 9 |
+
"dtype": "bfloat16",
|
| 10 |
+
"eos_token_id": 151645,
|
| 11 |
+
"head_dim": 128,
|
| 12 |
+
"hidden_act": "silu",
|
| 13 |
+
"hidden_size": 2048,
|
| 14 |
+
"initializer_range": 0.02,
|
| 15 |
+
"intermediate_size": 6144,
|
| 16 |
+
"max_position_embeddings": 262144,
|
| 17 |
+
"max_window_layers": 48,
|
| 18 |
+
"merge_args": {
|
| 19 |
+
"batch_size": 2,
|
| 20 |
+
"cache_dir": null,
|
| 21 |
+
"calibration_data_size": 1024,
|
| 22 |
+
"checkpoint_dir": null,
|
| 23 |
+
"checkpoint_every": 1,
|
| 24 |
+
"dataset": "c4+math+code",
|
| 25 |
+
"download": false,
|
| 26 |
+
"group_size": 16,
|
| 27 |
+
"grouping": "ream",
|
| 28 |
+
"merge_size": 96,
|
| 29 |
+
"merging": "none",
|
| 30 |
+
"mix_ratio": "0.0,0.3,0.7",
|
| 31 |
+
"model": "/home/letsrtfm/AI/models/Qwen3-Coder-30B-A3B-BF16",
|
| 32 |
+
"mtp_safe_tensors": null,
|
| 33 |
+
"no_gate_output": false,
|
| 34 |
+
"no_gated_sim": false,
|
| 35 |
+
"no_sequential": false,
|
| 36 |
+
"resume_from": null,
|
| 37 |
+
"saliency": "reap",
|
| 38 |
+
"save_path": "/home/letsrtfm/AI/models/Qwen3-Coder-30B-A3B-REAP-BF16"
|
| 39 |
+
},
|
| 40 |
+
"mlp_only_layers": [],
|
| 41 |
+
"model_type": "qwen3_moe",
|
| 42 |
+
"moe_intermediate_size": 768,
|
| 43 |
+
"norm_topk_prob": true,
|
| 44 |
+
"num_attention_heads": 32,
|
| 45 |
+
"num_experts_per_tok": 8,
|
| 46 |
+
"num_hidden_layers": 48,
|
| 47 |
+
"num_key_value_heads": 4,
|
| 48 |
+
"num_local_experts": 96,
|
| 49 |
+
"output_router_logits": false,
|
| 50 |
+
"pad_token_id": null,
|
| 51 |
+
"quantization_config": {
|
| 52 |
+
"bits": 4,
|
| 53 |
+
"group_size": 128,
|
| 54 |
+
"quant_method": "awq",
|
| 55 |
+
"version": "gemm",
|
| 56 |
+
"zero_point": true,
|
| 57 |
+
"modules_to_not_convert": [],
|
| 58 |
+
"ignore": [
|
| 59 |
+
"lm_head",
|
| 60 |
+
"re:.*mlp\\.gate$"
|
| 61 |
+
]
|
| 62 |
+
},
|
| 63 |
+
"rms_norm_eps": 1e-06,
|
| 64 |
+
"rope_parameters": {
|
| 65 |
+
"rope_theta": 10000000,
|
| 66 |
+
"rope_type": "default"
|
| 67 |
+
},
|
| 68 |
+
"router_aux_loss_coef": 0.001,
|
| 69 |
+
"sliding_window": null,
|
| 70 |
+
"tie_word_embeddings": false,
|
| 71 |
+
"transformers_version": "5.5.4",
|
| 72 |
+
"use_cache": true,
|
| 73 |
+
"use_sliding_window": false,
|
| 74 |
+
"vocab_size": 151936
|
| 75 |
+
}
|