Downloads · 30 days
652
10% of all-time downloads
SocialLocalMobile/Qwen3.5-35B-A3B-HQQ-INT4
Qwen3.5-35B-A3B-HQQ-INT4 is a image-text-to-text model from SocialLocalMobile. Use it for the image-text-to-text task on the model card, and read the license before you ship it in a product. It is set up for executorch. The card lists the license as apache-2.0.
INT4 weight-only quantized version of Qwen/Qwen3.5-35B-A3B for ExecuTorch CUDA export.
Downloads · 30 days
652
10% of all-time downloads
All-time downloads
6.4K
Public
Parameters
17.1B
18.2 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors18.2 GB · 100%
How the weights are stored.
I816.6B · 97%
From the Hugging Face model README
INT4 weight-only quantized version of Qwen/Qwen3.5-35B-A3B for ExecuTorch CUDA export.
| Component | Method | Bits | Group Size |
|---|---|---|---|
| Expert weights (MoE) | HQQ scale-only | INT4 | 128 |
| Linear layers (attention, projections, lm_head) | INT4 tile-packed (tinygemm) | INT4 | 128 |
| Embeddings | Weight-only | INT8 | per-axis |
Int4WeightOnlyConfig with tile_packed_to_4d packing format and HQQ qparams algorithm via torchao.IntxWeightOnlyConfig with INT8 per-axis quantization.model.safetensors — Quantized weights. Tensor subclasses (Int4TilePackedTo4dTensor, IntxUnpackedToInt8Tensor) are flattened into plain inner tensors with .__qdata / .__scale_and_zero suffixes. Reconstruction metadata is stored in the safetensors header under "quantization".config.json — Model architecture configuration.tokenizer.json, tokenizer_config.json, merges.txt, vocab.json — Tokenizer files for runtime.pip install safetensors)# Download the quantized bundle
huggingface-cli download <repo-id> --local-dir qwen35_moe_int4_hqq
# Run inference
cd executorch/examples/models/qwen3_5_moe
python inference.py \
--prequantized /path/to/qwen35_moe_int4_hqq \
--prompt "The capital of France is" \
--max-new-tokens 128
cd executorch/examples/models/qwen3_5_moe
python export.py --prequantized /path/to/qwen35_moe_int4_hqq
# Build ExecuTorch with CUDA support and the runner
make qwen3_5_moe-cuda
# Run inference
cmake-out/examples/models/qwen3_5_moe/qwen3_5_moe_runner \
--model_path qwen35_moe_exports/model.pte \
--data_path qwen35_moe_exports/aoti_cuda_blob.ptd \
--tokenizer_path qwen35_moe_int4_hqq/tokenizer.json \
--prompt "The meaning of life is" \
--max_new_tokens 128
cd executorch/examples/models/qwen3_5_moe
python quantize_and_save.py \
--model-dir /path/to/Qwen3.5-35B-A3B \
--qlinear 4w \
--qembedding 8w \
--qlinear-group-size 128 \
--hqq \
--output qwen35_moe_int4_hqq
Requires CUDA and ~70GB RAM (for loading the original bf16 model).