Downloads · 30 days
15
0% of all-time downloads
nytopop/Qwen3-32B.w4a16
Qwen3-32B.w4a16 is a text generation model from nytopop. Use it when you need the model to write or continue text. It is set up for transformers. The card lists the license as apache-2.0.
Downloads · 30 days
15
0% of all-time downloads
All-time downloads
3.8K
Public
Parameters
33B
19.2 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors19.2 GB · 100%
How the weights are stored.
I3231.2B · 95%
From the Hugging Face model README
from transformers import AutoModelForCausalLM
from llmcompressor import oneshot
from llmcompressor.modifiers.quantization import QuantizationModifier
from accelerate import infer_auto_device_map, init_empty_weights
model_id = "Qwen/Qwen3-32B"
model_out = model_id.split("/")[1] + ".w4a16"
device_map = []
with init_empty_weights():
dummy_model = AutoModelForCausalLM.from_pretrained(model_id, torch_dtype="bfloat16")
device_map = infer_auto_device_map(dummy_model, no_split_module_classes=dummy_model._no_split_modules)
del dummy_model
for k, v in device_map.items():
device_map[k] = 'cpu'
model = AutoModelForCausalLM.from_pretrained(
model_id,
device_map=device_map,
torch_dtype="bfloat16",
)
recipe = QuantizationModifier(targets="Linear", scheme="W4A16", ignore=["lm_head"], dampening_frac=0.1)
oneshot(model=model, recipe=recipe, output_dir=model_out)