Downloads · 30 days
46
3% of all-time downloads
amd/Qwen3-235B-A22B-Thinking-2507-ptpc
Qwen3-235B-A22B-Thinking-2507-ptpc is a machine learning model from amd. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as apache-2.0.
- Model Architecture: Qwen3-235B-A22B-Thinking-2507 - Input: Text - Output: Text - Supported Hardware Microarchitecture: AMD MI350/MI355 - ROCm: 7.0 - Operating System(s): Linux - Inference Engine: vLLM - Model Optimi…
Downloads · 30 days
46
3% of all-time downloads
All-time downloads
1.5K
Public
Parameters
235B
237 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors237 GB · 100%
How the weights are stored.
F8_E4M3234B · 99%
From the Hugging Face model README
This model was built with Qwen3-235B-A22B-Thinking-2507 model by applying AMD-Quark for ptpc quantization.
The model was quantized from Qwen3-235B-A22B-Thinking-2507 using AMD-Quark. The weights are quantized to FP8 and activations are quantized to FP8.
Quantization scripts:
# pip install amd-quark==0.10.0
from transformers import AutoTokenizer, AutoModelForCausalLM
from quark.torch import ModelQuantizer, export_safetensors
from quark.torch.quantization import FP8E4M3PerChannelSpec
from quark.torch.quantization.config.config import Config, QuantizationConfig
ckpt_path = "Qwen/Qwen3-235B-A22B-Thinking-2507"
exclude_layers = ["lm_head","*mlp.gate"]
output_dir = ckpt_path.rstrip("/").split("/")[-1] + "-ptpc"
# Load the original floating-point model
model = AutoModelForCausalLM.from_pretrained(ckpt_path, device_map="auto", torch_dtype="auto", trust_remote_code=True)
model.eval()
tokenizer = AutoTokenizer.from_pretrained(ckpt_path)
# Set the quantization configuration
FP8_PER_CHANNEL_SPEC = FP8E4M3PerChannelSpec(is_dynamic=False, ch_axis=0).to_quantization_spec()
FP8_PER_TOKEN_DYNAMIC_SPEC = FP8E4M3PerChannelSpec(is_dynamic=True, ch_axis=1).to_quantization_spec()
W_FP8_PER_CHANNEL_STATIC_A_FP8_PER_TOKEN_DYNAMIC_CONFIG = QuantizationConfig(input_tensors=FP8_PER_TOKEN_DYNAMIC_SPEC, weight=FP8_PER_CHANNEL_SPEC)
quant_config = Config(global_quant_config=W_FP8_PER_CHANNEL_STATIC_A_FP8_PER_TOKEN_DYNAMIC_CONFIG, exclude=exclude_layers)
# Apply quantization
quantizer = ModelQuantizer(quant_config)
model = quantizer.quantize_model(model)
# Export quantized model
model = quantizer.freeze(model)
export_safetensors(model, output_dir)
tokenizer.save_pretrained(output_dir)
Docker: rocm/vllm-private:rocm7.1_ubuntu22.04_vllm0.11.2_ptpc_fp8
The result of MMLU was obtained using vLLM.
vllm version: main(0b2549)
aiter version: 0.13.20191203
lm_eval \
--model vllm \
--model_args pretrained="/shareddata/Qwen/Qwen3-235B-A22B-Thinking-2507-ptpc",dtype=auto,add_bos_token=True,tensor_parallel_size=4,gpu_memory_utilization=0.8,trust_remote_code=True,max_model_len=262144,reasoning_parser=deepseek_r1 \
--tasks mmlu \
--batch_size auto \
--output_path output_dir
This model can be deployed efficiently using the vLLM backend.
The evaluation results and reproduction script are being prepared.
Modifications Copyright(c) 2025 Advanced Micro Devices, Inc. All rights reserved.