Image-Text-to-Text
Transformers
Safetensors
granite
text-generation
uncensored
heretic
conversational
8-bit precision
sdnq
Instructions to use SD-Next/Granite-4.2-3b-sdnq-uint8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use SD-Next/Granite-4.2-3b-sdnq-uint8 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("image-text-to-text", model="SD-Next/Granite-4.2-3b-sdnq-uint8") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] pipe(text=messages)# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("SD-Next/Granite-4.2-3b-sdnq-uint8") model = AutoModelForCausalLM.from_pretrained("SD-Next/Granite-4.2-3b-sdnq-uint8", device_map="auto") messages = [ { "role": "user", "content": [ {"type": "image", "url": "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/p-blog/candy.JPG"}, {"type": "text", "text": "What animal is on the candy?"} ] }, ] inputs = tokenizer.apply_chat_template( messages, add_generation_prompt=True, tokenize=True, return_dict=True, return_tensors="pt", ).to(model.device) outputs = model.generate(**inputs, max_new_tokens=256) print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:])) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use SD-Next/Granite-4.2-3b-sdnq-uint8 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "SD-Next/Granite-4.2-3b-sdnq-uint8" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SD-Next/Granite-4.2-3b-sdnq-uint8", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker
docker model run hf.co/SD-Next/Granite-4.2-3b-sdnq-uint8
- SGLang
How to use SD-Next/Granite-4.2-3b-sdnq-uint8 with SGLang:
Install from pip and serve model
# Install SGLang from pip: pip install sglang # Start the SGLang server: python3 -m sglang.launch_server \ --model-path "SD-Next/Granite-4.2-3b-sdnq-uint8" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SD-Next/Granite-4.2-3b-sdnq-uint8", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }'Use Docker images
docker run --gpus all \ --shm-size 32g \ -p 30000:30000 \ -v ~/.cache/huggingface:/root/.cache/huggingface \ --env "HF_TOKEN=<secret>" \ --ipc=host \ lmsysorg/sglang:latest \ python3 -m sglang.launch_server \ --model-path "SD-Next/Granite-4.2-3b-sdnq-uint8" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/chat/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "SD-Next/Granite-4.2-3b-sdnq-uint8", "messages": [ { "role": "user", "content": [ { "type": "text", "text": "Describe this image in one sentence." }, { "type": "image_url", "image_url": { "url": "https://cdn.britannica.com/61/93061-050-99147DCE/Statue-of-Liberty-Island-New-York-Bay.jpg" } } ] } ] }' - Docker Model Runner
How to use SD-Next/Granite-4.2-3b-sdnq-uint8 with Docker Model Runner:
docker model run hf.co/SD-Next/Granite-4.2-3b-sdnq-uint8
Download quantization_config.json from SD-Next/Granite-4.2-3b-sdnq-uint8: direct link, hf CLI and curl.
- Browser
- Download file 19.4 kB
-
https://huggingface.co/SD-Next/Granite-4.2-3b-sdnq-uint8/resolve/main/quantization_config.json
- Command line
-
hf download hf://SD-Next/Granite-4.2-3b-sdnq-uint8/quantization_config.json
-
curl -L -o quantization_config.json https://huggingface.co/SD-Next/Granite-4.2-3b-sdnq-uint8/resolve/main/quantization_config.json
19.4 kB
| { | |
| "add_skip_keys": true, | |
| "codebook_steps": 24, | |
| "dequantize_fp32": true, | |
| "dynamic_loss_average_error_weight": 0.5, | |
| "dynamic_loss_max_error_weight": 0.2, | |
| "dynamic_loss_max_row_error_weight": 0.3, | |
| "dynamic_loss_threshold": null, | |
| "group_size": 0, | |
| "hadamard_group_size": 256, | |
| "is_integer": true, | |
| "is_training": false, | |
| "is_unsigned": true, | |
| "minimum_allowed_channel_size": 32, | |
| "minimum_allowed_numel": 16384, | |
| "modules_dtype_dict": { | |
| "int10": [ | |
| "model.layers.6.self_attn.o_proj.weight" | |
| ], | |
| "int9": [ | |
| "model.layers.12.self_attn.o_proj.weight", | |
| "model.layers.21.self_attn.o_proj.weight", | |
| "model.layers.35.self_attn.o_proj.weight", | |
| "model.layers.38.self_attn.o_proj.weight" | |
| ], | |
| "uint8": [ | |
| "model.layers.0.self_attn.q_proj.weight", | |
| "model.layers.0.self_attn.k_proj.weight", | |
| "model.layers.0.self_attn.v_proj.weight", | |
| "model.layers.0.self_attn.o_proj.weight", | |
| "model.layers.0.mlp.gate_proj.weight", | |
| "model.layers.0.mlp.up_proj.weight", | |
| "model.layers.0.mlp.down_proj.weight", | |
| "model.layers.1.self_attn.q_proj.weight", | |
| "model.layers.1.self_attn.k_proj.weight", | |
| "model.layers.1.self_attn.v_proj.weight", | |
| "model.layers.1.self_attn.o_proj.weight", | |
| "model.layers.1.mlp.gate_proj.weight", | |
| "model.layers.1.mlp.up_proj.weight", | |
| "model.layers.1.mlp.down_proj.weight", | |
| "model.layers.2.self_attn.q_proj.weight", | |
| "model.layers.2.self_attn.k_proj.weight", | |
| "model.layers.2.self_attn.v_proj.weight", | |
| "model.layers.2.self_attn.o_proj.weight", | |
| "model.layers.2.mlp.gate_proj.weight", | |
| "model.layers.2.mlp.up_proj.weight", | |
| "model.layers.2.mlp.down_proj.weight", | |
| "model.layers.3.self_attn.q_proj.weight", | |
| "model.layers.3.self_attn.k_proj.weight", | |
| "model.layers.3.self_attn.v_proj.weight", | |
| "model.layers.3.self_attn.o_proj.weight", | |
| "model.layers.3.mlp.gate_proj.weight", | |
| "model.layers.3.mlp.up_proj.weight", | |
| "model.layers.3.mlp.down_proj.weight", | |
| "model.layers.4.self_attn.q_proj.weight", | |
| "model.layers.4.self_attn.k_proj.weight", | |
| "model.layers.4.self_attn.v_proj.weight", | |
| "model.layers.4.self_attn.o_proj.weight", | |
| "model.layers.4.mlp.gate_proj.weight", | |
| "model.layers.4.mlp.up_proj.weight", | |
| "model.layers.4.mlp.down_proj.weight", | |
| "model.layers.5.self_attn.q_proj.weight", | |
| "model.layers.5.self_attn.k_proj.weight", | |
| "model.layers.5.self_attn.v_proj.weight", | |
| "model.layers.5.self_attn.o_proj.weight", | |
| "model.layers.5.mlp.gate_proj.weight", | |
| "model.layers.5.mlp.up_proj.weight", | |
| "model.layers.5.mlp.down_proj.weight", | |
| "model.layers.6.self_attn.q_proj.weight", | |
| "model.layers.6.self_attn.k_proj.weight", | |
| "model.layers.6.self_attn.v_proj.weight", | |
| "model.layers.6.mlp.gate_proj.weight", | |
| "model.layers.6.mlp.up_proj.weight", | |
| "model.layers.6.mlp.down_proj.weight", | |
| "model.layers.7.self_attn.q_proj.weight", | |
| "model.layers.7.self_attn.k_proj.weight", | |
| "model.layers.7.self_attn.v_proj.weight", | |
| "model.layers.7.self_attn.o_proj.weight", | |
| "model.layers.7.mlp.gate_proj.weight", | |
| "model.layers.7.mlp.up_proj.weight", | |
| "model.layers.7.mlp.down_proj.weight", | |
| "model.layers.8.self_attn.q_proj.weight", | |
| "model.layers.8.self_attn.k_proj.weight", | |
| "model.layers.8.self_attn.v_proj.weight", | |
| "model.layers.8.self_attn.o_proj.weight", | |
| "model.layers.8.mlp.gate_proj.weight", | |
| "model.layers.8.mlp.up_proj.weight", | |
| "model.layers.8.mlp.down_proj.weight", | |
| "model.layers.9.self_attn.q_proj.weight", | |
| "model.layers.9.self_attn.k_proj.weight", | |
| "model.layers.9.self_attn.v_proj.weight", | |
| "model.layers.9.self_attn.o_proj.weight", | |
| "model.layers.9.mlp.gate_proj.weight", | |
| "model.layers.9.mlp.up_proj.weight", | |
| "model.layers.9.mlp.down_proj.weight", | |
| "model.layers.10.self_attn.q_proj.weight", | |
| "model.layers.10.self_attn.k_proj.weight", | |
| "model.layers.10.self_attn.v_proj.weight", | |
| "model.layers.10.self_attn.o_proj.weight", | |
| "model.layers.10.mlp.gate_proj.weight", | |
| "model.layers.10.mlp.up_proj.weight", | |
| "model.layers.10.mlp.down_proj.weight", | |
| "model.layers.11.self_attn.q_proj.weight", | |
| "model.layers.11.self_attn.k_proj.weight", | |
| "model.layers.11.self_attn.v_proj.weight", | |
| "model.layers.11.self_attn.o_proj.weight", | |
| "model.layers.11.mlp.gate_proj.weight", | |
| "model.layers.11.mlp.up_proj.weight", | |
| "model.layers.11.mlp.down_proj.weight", | |
| "model.layers.12.self_attn.q_proj.weight", | |
| "model.layers.12.self_attn.k_proj.weight", | |
| "model.layers.12.self_attn.v_proj.weight", | |
| "model.layers.12.mlp.gate_proj.weight", | |
| "model.layers.12.mlp.up_proj.weight", | |
| "model.layers.12.mlp.down_proj.weight", | |
| "model.layers.13.self_attn.q_proj.weight", | |
| "model.layers.13.self_attn.k_proj.weight", | |
| "model.layers.13.self_attn.v_proj.weight", | |
| "model.layers.13.self_attn.o_proj.weight", | |
| "model.layers.13.mlp.gate_proj.weight", | |
| "model.layers.13.mlp.up_proj.weight", | |
| "model.layers.13.mlp.down_proj.weight", | |
| "model.layers.14.self_attn.q_proj.weight", | |
| "model.layers.14.self_attn.k_proj.weight", | |
| "model.layers.14.self_attn.v_proj.weight", | |
| "model.layers.14.self_attn.o_proj.weight", | |
| "model.layers.14.mlp.gate_proj.weight", | |
| "model.layers.14.mlp.up_proj.weight", | |
| "model.layers.14.mlp.down_proj.weight", | |
| "model.layers.15.self_attn.q_proj.weight", | |
| "model.layers.15.self_attn.k_proj.weight", | |
| "model.layers.15.self_attn.v_proj.weight", | |
| "model.layers.15.self_attn.o_proj.weight", | |
| "model.layers.15.mlp.gate_proj.weight", | |
| "model.layers.15.mlp.up_proj.weight", | |
| "model.layers.15.mlp.down_proj.weight", | |
| "model.layers.16.self_attn.q_proj.weight", | |
| "model.layers.16.self_attn.k_proj.weight", | |
| "model.layers.16.self_attn.v_proj.weight", | |
| "model.layers.16.self_attn.o_proj.weight", | |
| "model.layers.16.mlp.gate_proj.weight", | |
| "model.layers.16.mlp.up_proj.weight", | |
| "model.layers.16.mlp.down_proj.weight", | |
| "model.layers.17.self_attn.q_proj.weight", | |
| "model.layers.17.self_attn.k_proj.weight", | |
| "model.layers.17.self_attn.v_proj.weight", | |
| "model.layers.17.self_attn.o_proj.weight", | |
| "model.layers.17.mlp.gate_proj.weight", | |
| "model.layers.17.mlp.up_proj.weight", | |
| "model.layers.17.mlp.down_proj.weight", | |
| "model.layers.18.self_attn.q_proj.weight", | |
| "model.layers.18.self_attn.k_proj.weight", | |
| "model.layers.18.self_attn.v_proj.weight", | |
| "model.layers.18.self_attn.o_proj.weight", | |
| "model.layers.18.mlp.gate_proj.weight", | |
| "model.layers.18.mlp.up_proj.weight", | |
| "model.layers.18.mlp.down_proj.weight", | |
| "model.layers.19.self_attn.q_proj.weight", | |
| "model.layers.19.self_attn.k_proj.weight", | |
| "model.layers.19.self_attn.v_proj.weight", | |
| "model.layers.19.self_attn.o_proj.weight", | |
| "model.layers.19.mlp.gate_proj.weight", | |
| "model.layers.19.mlp.up_proj.weight", | |
| "model.layers.19.mlp.down_proj.weight", | |
| "model.layers.20.self_attn.q_proj.weight", | |
| "model.layers.20.self_attn.k_proj.weight", | |
| "model.layers.20.self_attn.v_proj.weight", | |
| "model.layers.20.self_attn.o_proj.weight", | |
| "model.layers.20.mlp.gate_proj.weight", | |
| "model.layers.20.mlp.up_proj.weight", | |
| "model.layers.20.mlp.down_proj.weight", | |
| "model.layers.21.self_attn.q_proj.weight", | |
| "model.layers.21.self_attn.k_proj.weight", | |
| "model.layers.21.self_attn.v_proj.weight", | |
| "model.layers.21.mlp.gate_proj.weight", | |
| "model.layers.21.mlp.up_proj.weight", | |
| "model.layers.21.mlp.down_proj.weight", | |
| "model.layers.22.self_attn.q_proj.weight", | |
| "model.layers.22.self_attn.k_proj.weight", | |
| "model.layers.22.self_attn.v_proj.weight", | |
| "model.layers.22.self_attn.o_proj.weight", | |
| "model.layers.22.mlp.gate_proj.weight", | |
| "model.layers.22.mlp.up_proj.weight", | |
| "model.layers.22.mlp.down_proj.weight", | |
| "model.layers.23.self_attn.q_proj.weight", | |
| "model.layers.23.self_attn.k_proj.weight", | |
| "model.layers.23.self_attn.v_proj.weight", | |
| "model.layers.23.self_attn.o_proj.weight", | |
| "model.layers.23.mlp.gate_proj.weight", | |
| "model.layers.23.mlp.up_proj.weight", | |
| "model.layers.23.mlp.down_proj.weight", | |
| "model.layers.24.self_attn.q_proj.weight", | |
| "model.layers.24.self_attn.k_proj.weight", | |
| "model.layers.24.self_attn.v_proj.weight", | |
| "model.layers.24.self_attn.o_proj.weight", | |
| "model.layers.24.mlp.gate_proj.weight", | |
| "model.layers.24.mlp.up_proj.weight", | |
| "model.layers.24.mlp.down_proj.weight", | |
| "model.layers.25.self_attn.q_proj.weight", | |
| "model.layers.25.self_attn.k_proj.weight", | |
| "model.layers.25.self_attn.v_proj.weight", | |
| "model.layers.25.self_attn.o_proj.weight", | |
| "model.layers.25.mlp.gate_proj.weight", | |
| "model.layers.25.mlp.up_proj.weight", | |
| "model.layers.25.mlp.down_proj.weight", | |
| "model.layers.26.self_attn.q_proj.weight", | |
| "model.layers.26.self_attn.k_proj.weight", | |
| "model.layers.26.self_attn.v_proj.weight", | |
| "model.layers.26.self_attn.o_proj.weight", | |
| "model.layers.26.mlp.gate_proj.weight", | |
| "model.layers.26.mlp.up_proj.weight", | |
| "model.layers.26.mlp.down_proj.weight", | |
| "model.layers.27.self_attn.q_proj.weight", | |
| "model.layers.27.self_attn.k_proj.weight", | |
| "model.layers.27.self_attn.v_proj.weight", | |
| "model.layers.27.self_attn.o_proj.weight", | |
| "model.layers.27.mlp.gate_proj.weight", | |
| "model.layers.27.mlp.up_proj.weight", | |
| "model.layers.27.mlp.down_proj.weight", | |
| "model.layers.28.self_attn.q_proj.weight", | |
| "model.layers.28.self_attn.k_proj.weight", | |
| "model.layers.28.self_attn.v_proj.weight", | |
| "model.layers.28.self_attn.o_proj.weight", | |
| "model.layers.28.mlp.gate_proj.weight", | |
| "model.layers.28.mlp.up_proj.weight", | |
| "model.layers.28.mlp.down_proj.weight", | |
| "model.layers.29.self_attn.q_proj.weight", | |
| "model.layers.29.self_attn.k_proj.weight", | |
| "model.layers.29.self_attn.v_proj.weight", | |
| "model.layers.29.self_attn.o_proj.weight", | |
| "model.layers.29.mlp.gate_proj.weight", | |
| "model.layers.29.mlp.up_proj.weight", | |
| "model.layers.29.mlp.down_proj.weight", | |
| "model.layers.30.self_attn.q_proj.weight", | |
| "model.layers.30.self_attn.k_proj.weight", | |
| "model.layers.30.self_attn.v_proj.weight", | |
| "model.layers.30.self_attn.o_proj.weight", | |
| "model.layers.30.mlp.gate_proj.weight", | |
| "model.layers.30.mlp.up_proj.weight", | |
| "model.layers.30.mlp.down_proj.weight", | |
| "model.layers.31.self_attn.q_proj.weight", | |
| "model.layers.31.self_attn.k_proj.weight", | |
| "model.layers.31.self_attn.v_proj.weight", | |
| "model.layers.31.self_attn.o_proj.weight", | |
| "model.layers.31.mlp.gate_proj.weight", | |
| "model.layers.31.mlp.up_proj.weight", | |
| "model.layers.31.mlp.down_proj.weight", | |
| "model.layers.32.self_attn.q_proj.weight", | |
| "model.layers.32.self_attn.k_proj.weight", | |
| "model.layers.32.self_attn.v_proj.weight", | |
| "model.layers.32.self_attn.o_proj.weight", | |
| "model.layers.32.mlp.gate_proj.weight", | |
| "model.layers.32.mlp.up_proj.weight", | |
| "model.layers.32.mlp.down_proj.weight", | |
| "model.layers.33.self_attn.q_proj.weight", | |
| "model.layers.33.self_attn.k_proj.weight", | |
| "model.layers.33.self_attn.v_proj.weight", | |
| "model.layers.33.self_attn.o_proj.weight", | |
| "model.layers.33.mlp.gate_proj.weight", | |
| "model.layers.33.mlp.up_proj.weight", | |
| "model.layers.33.mlp.down_proj.weight", | |
| "model.layers.34.self_attn.q_proj.weight", | |
| "model.layers.34.self_attn.k_proj.weight", | |
| "model.layers.34.self_attn.v_proj.weight", | |
| "model.layers.34.self_attn.o_proj.weight", | |
| "model.layers.34.mlp.gate_proj.weight", | |
| "model.layers.34.mlp.up_proj.weight", | |
| "model.layers.34.mlp.down_proj.weight", | |
| "model.layers.35.self_attn.q_proj.weight", | |
| "model.layers.35.self_attn.k_proj.weight", | |
| "model.layers.35.self_attn.v_proj.weight", | |
| "model.layers.35.mlp.gate_proj.weight", | |
| "model.layers.35.mlp.up_proj.weight", | |
| "model.layers.35.mlp.down_proj.weight", | |
| "model.layers.36.self_attn.q_proj.weight", | |
| "model.layers.36.self_attn.k_proj.weight", | |
| "model.layers.36.self_attn.v_proj.weight", | |
| "model.layers.36.self_attn.o_proj.weight", | |
| "model.layers.36.mlp.gate_proj.weight", | |
| "model.layers.36.mlp.up_proj.weight", | |
| "model.layers.36.mlp.down_proj.weight", | |
| "model.layers.37.self_attn.q_proj.weight", | |
| "model.layers.37.self_attn.k_proj.weight", | |
| "model.layers.37.self_attn.v_proj.weight", | |
| "model.layers.37.self_attn.o_proj.weight", | |
| "model.layers.37.mlp.gate_proj.weight", | |
| "model.layers.37.mlp.up_proj.weight", | |
| "model.layers.37.mlp.down_proj.weight", | |
| "model.layers.38.self_attn.q_proj.weight", | |
| "model.layers.38.self_attn.k_proj.weight", | |
| "model.layers.38.self_attn.v_proj.weight", | |
| "model.layers.38.mlp.gate_proj.weight", | |
| "model.layers.38.mlp.up_proj.weight", | |
| "model.layers.38.mlp.down_proj.weight", | |
| "model.layers.39.self_attn.q_proj.weight", | |
| "model.layers.39.self_attn.k_proj.weight", | |
| "model.layers.39.self_attn.v_proj.weight", | |
| "model.layers.39.self_attn.o_proj.weight", | |
| "model.layers.39.mlp.gate_proj.weight", | |
| "model.layers.39.mlp.up_proj.weight", | |
| "model.layers.39.mlp.down_proj.weight" | |
| ] | |
| }, | |
| "modules_quant_config": {}, | |
| "modules_to_not_convert": [ | |
| ".condition_embedder", | |
| "multi_modal_projector", | |
| ".context_embedder", | |
| ".emb_in", | |
| ".txt_in", | |
| ".y_embedder", | |
| ".target_timestep_embedder", | |
| "lm_head.weight", | |
| ".proj_in", | |
| "time_text_embed", | |
| "wte", | |
| "patch_embed", | |
| ".x_embedder", | |
| ".vid_in", | |
| ".time_embed", | |
| ".proj_out", | |
| ".img_out", | |
| ".final_layer", | |
| "patch_embedding", | |
| "lm_head", | |
| ".norm_out", | |
| ".t_embedder", | |
| ".vid_out", | |
| ".timestep_embedder", | |
| ".emb_out", | |
| ".img_in", | |
| "patch_emb", | |
| ".txt_out", | |
| "model.embed_tokens.weight", | |
| "model.layers.0.input_layernorm.weight", | |
| "model.layers.0.post_attention_layernorm.weight", | |
| "model.layers.1.input_layernorm.weight", | |
| "model.layers.1.post_attention_layernorm.weight", | |
| "model.layers.2.input_layernorm.weight", | |
| "model.layers.2.post_attention_layernorm.weight", | |
| "model.layers.3.input_layernorm.weight", | |
| "model.layers.3.post_attention_layernorm.weight", | |
| "model.layers.4.input_layernorm.weight", | |
| "model.layers.4.post_attention_layernorm.weight", | |
| "model.layers.5.input_layernorm.weight", | |
| "model.layers.5.post_attention_layernorm.weight", | |
| "model.layers.6.input_layernorm.weight", | |
| "model.layers.6.post_attention_layernorm.weight", | |
| "model.layers.7.input_layernorm.weight", | |
| "model.layers.7.post_attention_layernorm.weight", | |
| "model.layers.8.input_layernorm.weight", | |
| "model.layers.8.post_attention_layernorm.weight", | |
| "model.layers.9.input_layernorm.weight", | |
| "model.layers.9.post_attention_layernorm.weight", | |
| "model.layers.10.input_layernorm.weight", | |
| "model.layers.10.post_attention_layernorm.weight", | |
| "model.layers.11.input_layernorm.weight", | |
| "model.layers.11.post_attention_layernorm.weight", | |
| "model.layers.12.input_layernorm.weight", | |
| "model.layers.12.post_attention_layernorm.weight", | |
| "model.layers.13.input_layernorm.weight", | |
| "model.layers.13.post_attention_layernorm.weight", | |
| "model.layers.14.input_layernorm.weight", | |
| "model.layers.14.post_attention_layernorm.weight", | |
| "model.layers.15.input_layernorm.weight", | |
| "model.layers.15.post_attention_layernorm.weight", | |
| "model.layers.16.input_layernorm.weight", | |
| "model.layers.16.post_attention_layernorm.weight", | |
| "model.layers.17.input_layernorm.weight", | |
| "model.layers.17.post_attention_layernorm.weight", | |
| "model.layers.18.input_layernorm.weight", | |
| "model.layers.18.post_attention_layernorm.weight", | |
| "model.layers.19.input_layernorm.weight", | |
| "model.layers.19.post_attention_layernorm.weight", | |
| "model.layers.20.input_layernorm.weight", | |
| "model.layers.20.post_attention_layernorm.weight", | |
| "model.layers.21.input_layernorm.weight", | |
| "model.layers.21.post_attention_layernorm.weight", | |
| "model.layers.22.input_layernorm.weight", | |
| "model.layers.22.post_attention_layernorm.weight", | |
| "model.layers.23.input_layernorm.weight", | |
| "model.layers.23.post_attention_layernorm.weight", | |
| "model.layers.24.input_layernorm.weight", | |
| "model.layers.24.post_attention_layernorm.weight", | |
| "model.layers.25.input_layernorm.weight", | |
| "model.layers.25.post_attention_layernorm.weight", | |
| "model.layers.26.input_layernorm.weight", | |
| "model.layers.26.post_attention_layernorm.weight", | |
| "model.layers.27.input_layernorm.weight", | |
| "model.layers.27.post_attention_layernorm.weight", | |
| "model.layers.28.input_layernorm.weight", | |
| "model.layers.28.post_attention_layernorm.weight", | |
| "model.layers.29.input_layernorm.weight", | |
| "model.layers.29.post_attention_layernorm.weight", | |
| "model.layers.30.input_layernorm.weight", | |
| "model.layers.30.post_attention_layernorm.weight", | |
| "model.layers.31.input_layernorm.weight", | |
| "model.layers.31.post_attention_layernorm.weight", | |
| "model.layers.32.input_layernorm.weight", | |
| "model.layers.32.post_attention_layernorm.weight", | |
| "model.layers.33.input_layernorm.weight", | |
| "model.layers.33.post_attention_layernorm.weight", | |
| "model.layers.34.input_layernorm.weight", | |
| "model.layers.34.post_attention_layernorm.weight", | |
| "model.layers.35.input_layernorm.weight", | |
| "model.layers.35.post_attention_layernorm.weight", | |
| "model.layers.36.input_layernorm.weight", | |
| "model.layers.36.post_attention_layernorm.weight", | |
| "model.layers.37.input_layernorm.weight", | |
| "model.layers.37.post_attention_layernorm.weight", | |
| "model.layers.38.input_layernorm.weight", | |
| "model.layers.38.post_attention_layernorm.weight", | |
| "model.layers.39.input_layernorm.weight", | |
| "model.layers.39.post_attention_layernorm.weight", | |
| "model.norm.weight" | |
| ], | |
| "modules_to_not_use_matmul": [ | |
| "model.layers.6.self_attn.o_proj.weight", | |
| "model.layers.12.self_attn.o_proj.weight", | |
| "model.layers.21.self_attn.o_proj.weight", | |
| "model.layers.35.self_attn.o_proj.weight", | |
| "model.layers.38.self_attn.o_proj.weight" | |
| ], | |
| "non_blocking": false, | |
| "quant_conv": false, | |
| "quant_embedding": false, | |
| "quant_method": "sdnq", | |
| "quantization_device": "cuda", | |
| "quantized_matmul_dtype": null, | |
| "return_device": null, | |
| "scale_dtype": null, | |
| "sdnq_version": "0.3.0", | |
| "svd_rank": 32, | |
| "svd_steps": 8, | |
| "use_codebook": false, | |
| "use_codebook_scale": false, | |
| "use_dynamic_quantization": true, | |
| "use_grad_ckpt": true, | |
| "use_hadamard": true, | |
| "use_quantized_matmul": false, | |
| "use_quantized_matmul_conv": false, | |
| "use_static_quantization": true, | |
| "use_stochastic_rounding": false, | |
| "use_svd": false, | |
| "weights_dtype": "uint8", | |
| "weights_dtype_order": null, | |
| "zero_point_dtype": null | |
| } | |