Downloads · 30 days
29
2% of all-time downloads
amd/Llama-3.2-1B-Instruct-awq-uint4-asym-g128-bf16-lmhead
Llama-3.2-1B-Instruct-awq-uint4-asym-g128-bf16-lmhead 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 other.
- Introduction This model was created by applying Quark with calibration samples from Pile dataset. - Quantization Stragegy - Quantized Layers: All linear layers - Weight: int4 symmetric per-group, groupsize=128 - Pre…
Downloads · 30 days
29
2% of all-time downloads
All-time downloads
1.3K
Public
Parameters
1.5B
3.5 GB on disk
Likes
0
Public
Click a slice to open those files.
.safetensors1.2 GB · 99%
How the weights are stored.
I321.2B · 82%
From the Hugging Face model README
export MODEL_DIR = [local model checkpoint folder] or meta-llama/Meta-Llama-3.2-1B-Instruct-hf
# single GPU
python3 quantize_quark.py --model_dir $MODEL_DIR \
--data_type bfloat16 \
--quant_scheme w_uint4_per_group_asym \
--num_calib_data 128 \
--quant_algo awq \
--dataset pileval_for_awq_benchmark \
--seq_len 512 \
--output_dir $MODEL_NAME-awq-uint4-asym-g128-bf16-lmhead \
--exclude_layers \
--model_export quark_safetensors \
--custom_mode awq \
# cpu
python3 quantize_quark.py --model_dir $MODEL_DIR \
--data_type bfloat16 \
--quant_scheme w_uint4_per_group_asym \
--num_calib_data 128 \
--quant_algo awq \
--dataset pileval_for_awq_benchmark \
--seq_len 512 \
--output_dir $MODEL_NAME-awq-uint4-asym-g128-bf16-lmhead \
--exclude_layers \
--model_export quark_safetensors \
--custom_mode awq \
--device cpu
Quark has its own export format, quark_safetensors, which is compatible with autoAWQ exports.
Quark currently uses perplexity(PPL) as the evaluation metric for accuracy loss before and after quantization.The specific PPL algorithm can be referenced in the quantize_quark.py. The quantization evaluation results are conducted in pseudo-quantization mode, which may slightly differ from the actual quantized inference accuracy. These results are provided for reference only.
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.