Views
No views yet
qweight, qzeros, and
scales), rather than as fake-quantized BF16 tensors.AutoModel.from_pretrained("ForeverBlue/LLaVA-1.5-7B-GRACE-W4G128-AWQ")| Model | Backbone | Bits | Group size | Description | HF Hub |
|---|---|---|---|---|---|
| Qwen3-VL-2B-GRACE-BF16 | Qwen3-VL-2B | BF16 | — | Full-precision GRACE checkpoint used as the student initialization for the Qwen3-VL W8/W4 runs. | ForeverBlue/Qwen3-VL-2B-GRACE-BF16 |
| Qwen3-VL-2B-GRACE-W8G128 | Qwen3-VL-2B | INT8 | 128 | INT8 QAT checkpoint with group size 128. | ForeverBlue/Qwen3-VL-2B-GRACE-W8G128 |
| Qwen3-VL-2B-GRACE-W4G128 | Qwen3-VL-2B | INT4 | 128 | INT4 QAT checkpoint with group size 128. | ForeverBlue/Qwen3-VL-2B-GRACE-W4G128 |
| LLaVA-1.5-7B-GRACE-W4G128 | LLaVA-1.5-7B | INT4 | 128 | QAT checkpoint with BF16 weights constrained to the INT4 grid and a quantized-weight sidecar. | ForeverBlue/LLaVA-1.5-7B-GRACE-W4G128 |
| LLaVA-1.5-7B-GRACE-W4G128-AWQ | LLaVA-1.5-7B | INT4 | 128 | This repository. Real AWQ-packed deployment build with qweight, qzeros, and scales. | ForeverBlue/LLaVA-1.5-7B-GRACE-W4G128-AWQ |
LLaVA-1.5-7B-GRACE-W4G128 repository contains the QAT checkpoint, while this
repository contains the same model packed into real 4-bit AWQ tensors for
deployment and storage-efficient inference.[-8, 7]qweight, qzeros, and scalesself_attn.q_projself_attn.k_projself_attn.v_projself_attn.o_projmlp.gate_projmlp.up_projmlp.down_projautoawq-kernels can be used for practical
inference acceleration. Without fused kernels, the GRACE loader can still
reconstruct and run the model through a correct dequantization path, although it
may be slower.config.json: model configuration. The mm_vision_tower field should point to openai/clip-vit-large-patch14-336.model.safetensors: checkpoint file containing AWQ-packed tensors for the quantized language-model linear layers and FP16 tensors for the remaining modules.awq_quantized_modules.json: metadata listing the AWQ-packed module names, bit width, and group size required by the GRACE loader.tokenizer.model: SentencePiece tokenizer model.tokenizer_config.json: tokenizer configuration.special_tokens_map.json: special-token mapping.generation_config.json: generation configuration.1git clone https://github.com/ForeverBlue816/GRACE
2cd GRACE/deployment1from huggingface_hub import snapshot_download
2
3ckpt_dir = snapshot_download("ForeverBlue/LLaVA-1.5-7B-GRACE-W4G128-AWQ")
4print(ckpt_dir)1python scripts/deploy_awq_llava.py \
2 --load-packed /path/to/LLaVA-1.5-7B-GRACE-W4G128-AWQ \
3 --image-file your_image.jpg \
4 --query "Describe this image in detail." \
5 --conv-mode vicuna_v11import os
2import glob
3import json
4from safetensors.torch import load_file
5
6from llava.model.builder import load_pretrained_model
7from llava.mm_utils import get_model_name_from_path
8from llava.quantize import build_awq_skeleton
9
10ckpt_dir = "/path/to/LLaVA-1.5-7B-GRACE-W4G128-AWQ"
11
12meta = json.load(open(os.path.join(ckpt_dir, "awq_quantized_modules.json")))
13
14tokenizer, model, image_processor, context_len = load_pretrained_model(
15 ckpt_dir,
16 None,
17 get_model_name_from_path(ckpt_dir),
18 device_map="cuda",
19 device="cuda",
20)
21
22build_awq_skeleton(
23 model,
24 meta["modules"],
25 bits=meta["bits"],
26 group_size=meta["group_size"],
27 device="cuda",
28)
29
30state_dict = {}
31for path in glob.glob(os.path.join(ckpt_dir, "*.safetensors")):
32 state_dict.update(load_file(path))
33
34prefixes = tuple(name + "." for name in meta["modules"])
35awq_state_dict = {
36 key: value
37 for key, value in state_dict.items()
38 if key.startswith(prefixes)
39}
40
41missing, unexpected = model.load_state_dict(awq_state_dict, strict=False)
42model.eval()mm_vision_tower field in
config.json. By default, this field should be:"mm_vision_tower": "openai/clip-vit-large-patch14-336"Lin-Chen/ShareGPT4V1@article{chen2026gated,
2 title={Gated Relational Alignment via Confidence-based Distillation for Efficient VLMs},
3 author={Chen, Yanlong and Habibian, Amirhossein and Benini, Luca and Li, Yawei},
4 journal={arXiv preprint arXiv:2601.22709},
5 year={2026}
6}