Text Generation
Transformers
Safetensors
qwen3
neuralmagic
redhat
llmcompressor
quantized
FP8
conversational
text-generation-inference
compressed-tensors
Instructions to use BCCard/Qwen3-32B-FP8-Dynamic with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BCCard/Qwen3-32B-FP8-Dynamic with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="BCCard/Qwen3-32B-FP8-Dynamic") messages = [ {"role": "user", "content": "Who are you?"}, ] pipe(messages)# Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("BCCard/Qwen3-32B-FP8-Dynamic") model = AutoModelForCausalLM.from_pretrained("BCCard/Qwen3-32B-FP8-Dynamic", 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 BCCard/Qwen3-32B-FP8-Dynamic with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "BCCard/Qwen3-32B-FP8-Dynamic" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "BCCard/Qwen3-32B-FP8-Dynamic", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }'Use Docker
docker model run hf.co/BCCard/Qwen3-32B-FP8-Dynamic
- SGLang
How to use BCCard/Qwen3-32B-FP8-Dynamic 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 "BCCard/Qwen3-32B-FP8-Dynamic" \ --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": "BCCard/Qwen3-32B-FP8-Dynamic", "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 "BCCard/Qwen3-32B-FP8-Dynamic" \ --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": "BCCard/Qwen3-32B-FP8-Dynamic", "messages": [ { "role": "user", "content": "What is the capital of France?" } ] }' - Docker Model Runner
How to use BCCard/Qwen3-32B-FP8-Dynamic with Docker Model Runner:
docker model run hf.co/BCCard/Qwen3-32B-FP8-Dynamic
Update README.md
Browse files
README.md
CHANGED
|
@@ -12,7 +12,7 @@ tags:
|
|
| 12 |
- FP8
|
| 13 |
---
|
| 14 |
|
| 15 |
-
# Qwen3-32B-FP8-
|
| 16 |
|
| 17 |
## Model Overview
|
| 18 |
- **Model Architecture:** Qwen3ForCausalLM
|
|
@@ -30,7 +30,7 @@ tags:
|
|
| 30 |
- **Out-of-scope:** Use in any manner that violates applicable laws or regulations (including trade compliance laws).
|
| 31 |
- **Release Date:** 05/02/2025
|
| 32 |
- **Version:** 1.0
|
| 33 |
-
- **Model Developers:**
|
| 34 |
|
| 35 |
### Model Optimizations
|
| 36 |
|
|
@@ -51,7 +51,7 @@ This model can be deployed efficiently using the [vLLM](https://docs.vllm.ai/en/
|
|
| 51 |
from vllm import LLM, SamplingParams
|
| 52 |
from transformers import AutoTokenizer
|
| 53 |
|
| 54 |
-
model_id = "
|
| 55 |
number_gpus = 1
|
| 56 |
sampling_params = SamplingParams(temperature=0.6, top_p=0.95, top_k=20, min_p=0, max_tokens=256)
|
| 57 |
|
|
@@ -128,7 +128,7 @@ The model was evaluated on the OpenLLM leaderboard tasks (version 1), using [lm-
|
|
| 128 |
```
|
| 129 |
lm_eval \
|
| 130 |
--model vllm \
|
| 131 |
-
--model_args pretrained="
|
| 132 |
--tasks openllm \
|
| 133 |
--apply_chat_template\
|
| 134 |
--fewshot_as_multiturn \
|
|
|
|
| 12 |
- FP8
|
| 13 |
---
|
| 14 |
|
| 15 |
+
# Qwen3-32B-FP8-Dynamic
|
| 16 |
|
| 17 |
## Model Overview
|
| 18 |
- **Model Architecture:** Qwen3ForCausalLM
|
|
|
|
| 30 |
- **Out-of-scope:** Use in any manner that violates applicable laws or regulations (including trade compliance laws).
|
| 31 |
- **Release Date:** 05/02/2025
|
| 32 |
- **Version:** 1.0
|
| 33 |
+
- **Model Developers:** BC Card, Redhat
|
| 34 |
|
| 35 |
### Model Optimizations
|
| 36 |
|
|
|
|
| 51 |
from vllm import LLM, SamplingParams
|
| 52 |
from transformers import AutoTokenizer
|
| 53 |
|
| 54 |
+
model_id = "BCCard/Qwen3-32B-FP8-dynamic"
|
| 55 |
number_gpus = 1
|
| 56 |
sampling_params = SamplingParams(temperature=0.6, top_p=0.95, top_k=20, min_p=0, max_tokens=256)
|
| 57 |
|
|
|
|
| 128 |
```
|
| 129 |
lm_eval \
|
| 130 |
--model vllm \
|
| 131 |
+
--model_args pretrained="BCCard/Qwen3-32B-FP8-dynamic",dtype=auto,gpu_memory_utilization=0.5,max_model_len=8192,enable_chunk_prefill=True,tensor_parallel_size=1 \
|
| 132 |
--tasks openllm \
|
| 133 |
--apply_chat_template\
|
| 134 |
--fewshot_as_multiturn \
|