Instructions to use ProCreations/Booper-Big-Chat-INT8 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ProCreations/Booper-Big-Chat-INT8 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-generation", model="ProCreations/Booper-Big-Chat-INT8")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForCausalLM tokenizer = AutoTokenizer.from_pretrained("ProCreations/Booper-Big-Chat-INT8") model = AutoModelForCausalLM.from_pretrained("ProCreations/Booper-Big-Chat-INT8", device_map="auto") - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- vLLM
How to use ProCreations/Booper-Big-Chat-INT8 with vLLM:
Install from pip and serve model
# Install vLLM from pip: pip install vllm # Start the vLLM server: vllm serve "ProCreations/Booper-Big-Chat-INT8" # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:8000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ProCreations/Booper-Big-Chat-INT8", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'Use Docker
docker model run hf.co/ProCreations/Booper-Big-Chat-INT8
- SGLang
How to use ProCreations/Booper-Big-Chat-INT8 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 "ProCreations/Booper-Big-Chat-INT8" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ProCreations/Booper-Big-Chat-INT8", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }'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 "ProCreations/Booper-Big-Chat-INT8" \ --host 0.0.0.0 \ --port 30000 # Call the server using curl (OpenAI-compatible API): curl -X POST "http://localhost:30000/v1/completions" \ -H "Content-Type: application/json" \ --data '{ "model": "ProCreations/Booper-Big-Chat-INT8", "prompt": "Once upon a time,", "max_tokens": 512, "temperature": 0.5 }' - Docker Model Runner
How to use ProCreations/Booper-Big-Chat-INT8 with Docker Model Runner:
docker model run hf.co/ProCreations/Booper-Big-Chat-INT8
Download quantization_config.json from ProCreations/Booper-Big-Chat-INT8: direct link, hf CLI and curl.
- Browser
- Download file 29.3 kB
-
https://huggingface.co/ProCreations/Booper-Big-Chat-INT8/resolve/main/quantization_config.json
- Command line
-
hf download hf://ProCreations/Booper-Big-Chat-INT8/quantization_config.json
-
curl -L -o quantization_config.json https://huggingface.co/ProCreations/Booper-Big-Chat-INT8/resolve/main/quantization_config.json
29.3 kB
| { | |
| "activations": "bfloat16", | |
| "granularity": "per-output-channel", | |
| "quant_method": "booper_symmetric_int8", | |
| "source": "/home/user/models/Booper-Big-Chat", | |
| "tensors": { | |
| "lm_head.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "lm_head.weight.scale" | |
| }, | |
| "model.embed_tokens.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.embed_tokens.weight.scale" | |
| }, | |
| "model.layers.0.block_sparse_moe.experts.0.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.0.block_sparse_moe.experts.0.w1.weight.scale" | |
| }, | |
| "model.layers.0.block_sparse_moe.experts.0.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.0.block_sparse_moe.experts.0.w2.weight.scale" | |
| }, | |
| "model.layers.0.block_sparse_moe.experts.0.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.0.block_sparse_moe.experts.0.w3.weight.scale" | |
| }, | |
| "model.layers.0.block_sparse_moe.experts.1.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.0.block_sparse_moe.experts.1.w1.weight.scale" | |
| }, | |
| "model.layers.0.block_sparse_moe.experts.1.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.0.block_sparse_moe.experts.1.w2.weight.scale" | |
| }, | |
| "model.layers.0.block_sparse_moe.experts.1.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.0.block_sparse_moe.experts.1.w3.weight.scale" | |
| }, | |
| "model.layers.0.block_sparse_moe.experts.2.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.0.block_sparse_moe.experts.2.w1.weight.scale" | |
| }, | |
| "model.layers.0.block_sparse_moe.experts.2.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.0.block_sparse_moe.experts.2.w2.weight.scale" | |
| }, | |
| "model.layers.0.block_sparse_moe.experts.2.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.0.block_sparse_moe.experts.2.w3.weight.scale" | |
| }, | |
| "model.layers.0.block_sparse_moe.experts.3.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.0.block_sparse_moe.experts.3.w1.weight.scale" | |
| }, | |
| "model.layers.0.block_sparse_moe.experts.3.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.0.block_sparse_moe.experts.3.w2.weight.scale" | |
| }, | |
| "model.layers.0.block_sparse_moe.experts.3.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.0.block_sparse_moe.experts.3.w3.weight.scale" | |
| }, | |
| "model.layers.0.block_sparse_moe.experts.4.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.0.block_sparse_moe.experts.4.w1.weight.scale" | |
| }, | |
| "model.layers.0.block_sparse_moe.experts.4.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.0.block_sparse_moe.experts.4.w2.weight.scale" | |
| }, | |
| "model.layers.0.block_sparse_moe.experts.4.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.0.block_sparse_moe.experts.4.w3.weight.scale" | |
| }, | |
| "model.layers.0.block_sparse_moe.experts.5.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.0.block_sparse_moe.experts.5.w1.weight.scale" | |
| }, | |
| "model.layers.0.block_sparse_moe.experts.5.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.0.block_sparse_moe.experts.5.w2.weight.scale" | |
| }, | |
| "model.layers.0.block_sparse_moe.experts.5.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.0.block_sparse_moe.experts.5.w3.weight.scale" | |
| }, | |
| "model.layers.0.block_sparse_moe.experts.6.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.0.block_sparse_moe.experts.6.w1.weight.scale" | |
| }, | |
| "model.layers.0.block_sparse_moe.experts.6.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.0.block_sparse_moe.experts.6.w2.weight.scale" | |
| }, | |
| "model.layers.0.block_sparse_moe.experts.6.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.0.block_sparse_moe.experts.6.w3.weight.scale" | |
| }, | |
| "model.layers.0.block_sparse_moe.gate.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.0.block_sparse_moe.gate.weight.scale" | |
| }, | |
| "model.layers.0.input_layernorm.weight": { | |
| "dtype": "bfloat16" | |
| }, | |
| "model.layers.0.post_attention_layernorm.weight": { | |
| "dtype": "bfloat16" | |
| }, | |
| "model.layers.0.self_attn.k_proj.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.0.self_attn.k_proj.weight.scale" | |
| }, | |
| "model.layers.0.self_attn.o_proj.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.0.self_attn.o_proj.weight.scale" | |
| }, | |
| "model.layers.0.self_attn.q_proj.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.0.self_attn.q_proj.weight.scale" | |
| }, | |
| "model.layers.0.self_attn.v_proj.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.0.self_attn.v_proj.weight.scale" | |
| }, | |
| "model.layers.1.block_sparse_moe.experts.0.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.1.block_sparse_moe.experts.0.w1.weight.scale" | |
| }, | |
| "model.layers.1.block_sparse_moe.experts.0.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.1.block_sparse_moe.experts.0.w2.weight.scale" | |
| }, | |
| "model.layers.1.block_sparse_moe.experts.0.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.1.block_sparse_moe.experts.0.w3.weight.scale" | |
| }, | |
| "model.layers.1.block_sparse_moe.experts.1.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.1.block_sparse_moe.experts.1.w1.weight.scale" | |
| }, | |
| "model.layers.1.block_sparse_moe.experts.1.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.1.block_sparse_moe.experts.1.w2.weight.scale" | |
| }, | |
| "model.layers.1.block_sparse_moe.experts.1.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.1.block_sparse_moe.experts.1.w3.weight.scale" | |
| }, | |
| "model.layers.1.block_sparse_moe.experts.2.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.1.block_sparse_moe.experts.2.w1.weight.scale" | |
| }, | |
| "model.layers.1.block_sparse_moe.experts.2.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.1.block_sparse_moe.experts.2.w2.weight.scale" | |
| }, | |
| "model.layers.1.block_sparse_moe.experts.2.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.1.block_sparse_moe.experts.2.w3.weight.scale" | |
| }, | |
| "model.layers.1.block_sparse_moe.experts.3.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.1.block_sparse_moe.experts.3.w1.weight.scale" | |
| }, | |
| "model.layers.1.block_sparse_moe.experts.3.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.1.block_sparse_moe.experts.3.w2.weight.scale" | |
| }, | |
| "model.layers.1.block_sparse_moe.experts.3.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.1.block_sparse_moe.experts.3.w3.weight.scale" | |
| }, | |
| "model.layers.1.block_sparse_moe.experts.4.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.1.block_sparse_moe.experts.4.w1.weight.scale" | |
| }, | |
| "model.layers.1.block_sparse_moe.experts.4.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.1.block_sparse_moe.experts.4.w2.weight.scale" | |
| }, | |
| "model.layers.1.block_sparse_moe.experts.4.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.1.block_sparse_moe.experts.4.w3.weight.scale" | |
| }, | |
| "model.layers.1.block_sparse_moe.experts.5.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.1.block_sparse_moe.experts.5.w1.weight.scale" | |
| }, | |
| "model.layers.1.block_sparse_moe.experts.5.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.1.block_sparse_moe.experts.5.w2.weight.scale" | |
| }, | |
| "model.layers.1.block_sparse_moe.experts.5.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.1.block_sparse_moe.experts.5.w3.weight.scale" | |
| }, | |
| "model.layers.1.block_sparse_moe.experts.6.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.1.block_sparse_moe.experts.6.w1.weight.scale" | |
| }, | |
| "model.layers.1.block_sparse_moe.experts.6.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.1.block_sparse_moe.experts.6.w2.weight.scale" | |
| }, | |
| "model.layers.1.block_sparse_moe.experts.6.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.1.block_sparse_moe.experts.6.w3.weight.scale" | |
| }, | |
| "model.layers.1.block_sparse_moe.gate.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.1.block_sparse_moe.gate.weight.scale" | |
| }, | |
| "model.layers.1.input_layernorm.weight": { | |
| "dtype": "bfloat16" | |
| }, | |
| "model.layers.1.post_attention_layernorm.weight": { | |
| "dtype": "bfloat16" | |
| }, | |
| "model.layers.1.self_attn.k_proj.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.1.self_attn.k_proj.weight.scale" | |
| }, | |
| "model.layers.1.self_attn.o_proj.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.1.self_attn.o_proj.weight.scale" | |
| }, | |
| "model.layers.1.self_attn.q_proj.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.1.self_attn.q_proj.weight.scale" | |
| }, | |
| "model.layers.1.self_attn.v_proj.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.1.self_attn.v_proj.weight.scale" | |
| }, | |
| "model.layers.2.block_sparse_moe.experts.0.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.2.block_sparse_moe.experts.0.w1.weight.scale" | |
| }, | |
| "model.layers.2.block_sparse_moe.experts.0.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.2.block_sparse_moe.experts.0.w2.weight.scale" | |
| }, | |
| "model.layers.2.block_sparse_moe.experts.0.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.2.block_sparse_moe.experts.0.w3.weight.scale" | |
| }, | |
| "model.layers.2.block_sparse_moe.experts.1.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.2.block_sparse_moe.experts.1.w1.weight.scale" | |
| }, | |
| "model.layers.2.block_sparse_moe.experts.1.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.2.block_sparse_moe.experts.1.w2.weight.scale" | |
| }, | |
| "model.layers.2.block_sparse_moe.experts.1.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.2.block_sparse_moe.experts.1.w3.weight.scale" | |
| }, | |
| "model.layers.2.block_sparse_moe.experts.2.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.2.block_sparse_moe.experts.2.w1.weight.scale" | |
| }, | |
| "model.layers.2.block_sparse_moe.experts.2.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.2.block_sparse_moe.experts.2.w2.weight.scale" | |
| }, | |
| "model.layers.2.block_sparse_moe.experts.2.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.2.block_sparse_moe.experts.2.w3.weight.scale" | |
| }, | |
| "model.layers.2.block_sparse_moe.experts.3.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.2.block_sparse_moe.experts.3.w1.weight.scale" | |
| }, | |
| "model.layers.2.block_sparse_moe.experts.3.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.2.block_sparse_moe.experts.3.w2.weight.scale" | |
| }, | |
| "model.layers.2.block_sparse_moe.experts.3.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.2.block_sparse_moe.experts.3.w3.weight.scale" | |
| }, | |
| "model.layers.2.block_sparse_moe.experts.4.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.2.block_sparse_moe.experts.4.w1.weight.scale" | |
| }, | |
| "model.layers.2.block_sparse_moe.experts.4.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.2.block_sparse_moe.experts.4.w2.weight.scale" | |
| }, | |
| "model.layers.2.block_sparse_moe.experts.4.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.2.block_sparse_moe.experts.4.w3.weight.scale" | |
| }, | |
| "model.layers.2.block_sparse_moe.experts.5.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.2.block_sparse_moe.experts.5.w1.weight.scale" | |
| }, | |
| "model.layers.2.block_sparse_moe.experts.5.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.2.block_sparse_moe.experts.5.w2.weight.scale" | |
| }, | |
| "model.layers.2.block_sparse_moe.experts.5.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.2.block_sparse_moe.experts.5.w3.weight.scale" | |
| }, | |
| "model.layers.2.block_sparse_moe.experts.6.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.2.block_sparse_moe.experts.6.w1.weight.scale" | |
| }, | |
| "model.layers.2.block_sparse_moe.experts.6.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.2.block_sparse_moe.experts.6.w2.weight.scale" | |
| }, | |
| "model.layers.2.block_sparse_moe.experts.6.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.2.block_sparse_moe.experts.6.w3.weight.scale" | |
| }, | |
| "model.layers.2.block_sparse_moe.gate.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.2.block_sparse_moe.gate.weight.scale" | |
| }, | |
| "model.layers.2.input_layernorm.weight": { | |
| "dtype": "bfloat16" | |
| }, | |
| "model.layers.2.post_attention_layernorm.weight": { | |
| "dtype": "bfloat16" | |
| }, | |
| "model.layers.2.self_attn.k_proj.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.2.self_attn.k_proj.weight.scale" | |
| }, | |
| "model.layers.2.self_attn.o_proj.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.2.self_attn.o_proj.weight.scale" | |
| }, | |
| "model.layers.2.self_attn.q_proj.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.2.self_attn.q_proj.weight.scale" | |
| }, | |
| "model.layers.2.self_attn.v_proj.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.2.self_attn.v_proj.weight.scale" | |
| }, | |
| "model.layers.3.block_sparse_moe.experts.0.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.3.block_sparse_moe.experts.0.w1.weight.scale" | |
| }, | |
| "model.layers.3.block_sparse_moe.experts.0.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.3.block_sparse_moe.experts.0.w2.weight.scale" | |
| }, | |
| "model.layers.3.block_sparse_moe.experts.0.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.3.block_sparse_moe.experts.0.w3.weight.scale" | |
| }, | |
| "model.layers.3.block_sparse_moe.experts.1.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.3.block_sparse_moe.experts.1.w1.weight.scale" | |
| }, | |
| "model.layers.3.block_sparse_moe.experts.1.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.3.block_sparse_moe.experts.1.w2.weight.scale" | |
| }, | |
| "model.layers.3.block_sparse_moe.experts.1.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.3.block_sparse_moe.experts.1.w3.weight.scale" | |
| }, | |
| "model.layers.3.block_sparse_moe.experts.2.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.3.block_sparse_moe.experts.2.w1.weight.scale" | |
| }, | |
| "model.layers.3.block_sparse_moe.experts.2.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.3.block_sparse_moe.experts.2.w2.weight.scale" | |
| }, | |
| "model.layers.3.block_sparse_moe.experts.2.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.3.block_sparse_moe.experts.2.w3.weight.scale" | |
| }, | |
| "model.layers.3.block_sparse_moe.experts.3.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.3.block_sparse_moe.experts.3.w1.weight.scale" | |
| }, | |
| "model.layers.3.block_sparse_moe.experts.3.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.3.block_sparse_moe.experts.3.w2.weight.scale" | |
| }, | |
| "model.layers.3.block_sparse_moe.experts.3.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.3.block_sparse_moe.experts.3.w3.weight.scale" | |
| }, | |
| "model.layers.3.block_sparse_moe.experts.4.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.3.block_sparse_moe.experts.4.w1.weight.scale" | |
| }, | |
| "model.layers.3.block_sparse_moe.experts.4.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.3.block_sparse_moe.experts.4.w2.weight.scale" | |
| }, | |
| "model.layers.3.block_sparse_moe.experts.4.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.3.block_sparse_moe.experts.4.w3.weight.scale" | |
| }, | |
| "model.layers.3.block_sparse_moe.experts.5.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.3.block_sparse_moe.experts.5.w1.weight.scale" | |
| }, | |
| "model.layers.3.block_sparse_moe.experts.5.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.3.block_sparse_moe.experts.5.w2.weight.scale" | |
| }, | |
| "model.layers.3.block_sparse_moe.experts.5.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.3.block_sparse_moe.experts.5.w3.weight.scale" | |
| }, | |
| "model.layers.3.block_sparse_moe.experts.6.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.3.block_sparse_moe.experts.6.w1.weight.scale" | |
| }, | |
| "model.layers.3.block_sparse_moe.experts.6.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.3.block_sparse_moe.experts.6.w2.weight.scale" | |
| }, | |
| "model.layers.3.block_sparse_moe.experts.6.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.3.block_sparse_moe.experts.6.w3.weight.scale" | |
| }, | |
| "model.layers.3.block_sparse_moe.gate.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.3.block_sparse_moe.gate.weight.scale" | |
| }, | |
| "model.layers.3.input_layernorm.weight": { | |
| "dtype": "bfloat16" | |
| }, | |
| "model.layers.3.post_attention_layernorm.weight": { | |
| "dtype": "bfloat16" | |
| }, | |
| "model.layers.3.self_attn.k_proj.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.3.self_attn.k_proj.weight.scale" | |
| }, | |
| "model.layers.3.self_attn.o_proj.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.3.self_attn.o_proj.weight.scale" | |
| }, | |
| "model.layers.3.self_attn.q_proj.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.3.self_attn.q_proj.weight.scale" | |
| }, | |
| "model.layers.3.self_attn.v_proj.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.3.self_attn.v_proj.weight.scale" | |
| }, | |
| "model.layers.4.block_sparse_moe.experts.0.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.4.block_sparse_moe.experts.0.w1.weight.scale" | |
| }, | |
| "model.layers.4.block_sparse_moe.experts.0.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.4.block_sparse_moe.experts.0.w2.weight.scale" | |
| }, | |
| "model.layers.4.block_sparse_moe.experts.0.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.4.block_sparse_moe.experts.0.w3.weight.scale" | |
| }, | |
| "model.layers.4.block_sparse_moe.experts.1.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.4.block_sparse_moe.experts.1.w1.weight.scale" | |
| }, | |
| "model.layers.4.block_sparse_moe.experts.1.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.4.block_sparse_moe.experts.1.w2.weight.scale" | |
| }, | |
| "model.layers.4.block_sparse_moe.experts.1.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.4.block_sparse_moe.experts.1.w3.weight.scale" | |
| }, | |
| "model.layers.4.block_sparse_moe.experts.2.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.4.block_sparse_moe.experts.2.w1.weight.scale" | |
| }, | |
| "model.layers.4.block_sparse_moe.experts.2.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.4.block_sparse_moe.experts.2.w2.weight.scale" | |
| }, | |
| "model.layers.4.block_sparse_moe.experts.2.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.4.block_sparse_moe.experts.2.w3.weight.scale" | |
| }, | |
| "model.layers.4.block_sparse_moe.experts.3.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.4.block_sparse_moe.experts.3.w1.weight.scale" | |
| }, | |
| "model.layers.4.block_sparse_moe.experts.3.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.4.block_sparse_moe.experts.3.w2.weight.scale" | |
| }, | |
| "model.layers.4.block_sparse_moe.experts.3.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.4.block_sparse_moe.experts.3.w3.weight.scale" | |
| }, | |
| "model.layers.4.block_sparse_moe.experts.4.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.4.block_sparse_moe.experts.4.w1.weight.scale" | |
| }, | |
| "model.layers.4.block_sparse_moe.experts.4.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.4.block_sparse_moe.experts.4.w2.weight.scale" | |
| }, | |
| "model.layers.4.block_sparse_moe.experts.4.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.4.block_sparse_moe.experts.4.w3.weight.scale" | |
| }, | |
| "model.layers.4.block_sparse_moe.experts.5.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.4.block_sparse_moe.experts.5.w1.weight.scale" | |
| }, | |
| "model.layers.4.block_sparse_moe.experts.5.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.4.block_sparse_moe.experts.5.w2.weight.scale" | |
| }, | |
| "model.layers.4.block_sparse_moe.experts.5.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.4.block_sparse_moe.experts.5.w3.weight.scale" | |
| }, | |
| "model.layers.4.block_sparse_moe.experts.6.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.4.block_sparse_moe.experts.6.w1.weight.scale" | |
| }, | |
| "model.layers.4.block_sparse_moe.experts.6.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.4.block_sparse_moe.experts.6.w2.weight.scale" | |
| }, | |
| "model.layers.4.block_sparse_moe.experts.6.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.4.block_sparse_moe.experts.6.w3.weight.scale" | |
| }, | |
| "model.layers.4.block_sparse_moe.gate.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.4.block_sparse_moe.gate.weight.scale" | |
| }, | |
| "model.layers.4.input_layernorm.weight": { | |
| "dtype": "bfloat16" | |
| }, | |
| "model.layers.4.post_attention_layernorm.weight": { | |
| "dtype": "bfloat16" | |
| }, | |
| "model.layers.4.self_attn.k_proj.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.4.self_attn.k_proj.weight.scale" | |
| }, | |
| "model.layers.4.self_attn.o_proj.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.4.self_attn.o_proj.weight.scale" | |
| }, | |
| "model.layers.4.self_attn.q_proj.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.4.self_attn.q_proj.weight.scale" | |
| }, | |
| "model.layers.4.self_attn.v_proj.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.4.self_attn.v_proj.weight.scale" | |
| }, | |
| "model.layers.5.block_sparse_moe.experts.0.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.5.block_sparse_moe.experts.0.w1.weight.scale" | |
| }, | |
| "model.layers.5.block_sparse_moe.experts.0.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.5.block_sparse_moe.experts.0.w2.weight.scale" | |
| }, | |
| "model.layers.5.block_sparse_moe.experts.0.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.5.block_sparse_moe.experts.0.w3.weight.scale" | |
| }, | |
| "model.layers.5.block_sparse_moe.experts.1.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.5.block_sparse_moe.experts.1.w1.weight.scale" | |
| }, | |
| "model.layers.5.block_sparse_moe.experts.1.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.5.block_sparse_moe.experts.1.w2.weight.scale" | |
| }, | |
| "model.layers.5.block_sparse_moe.experts.1.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.5.block_sparse_moe.experts.1.w3.weight.scale" | |
| }, | |
| "model.layers.5.block_sparse_moe.experts.2.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.5.block_sparse_moe.experts.2.w1.weight.scale" | |
| }, | |
| "model.layers.5.block_sparse_moe.experts.2.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.5.block_sparse_moe.experts.2.w2.weight.scale" | |
| }, | |
| "model.layers.5.block_sparse_moe.experts.2.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.5.block_sparse_moe.experts.2.w3.weight.scale" | |
| }, | |
| "model.layers.5.block_sparse_moe.experts.3.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.5.block_sparse_moe.experts.3.w1.weight.scale" | |
| }, | |
| "model.layers.5.block_sparse_moe.experts.3.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.5.block_sparse_moe.experts.3.w2.weight.scale" | |
| }, | |
| "model.layers.5.block_sparse_moe.experts.3.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.5.block_sparse_moe.experts.3.w3.weight.scale" | |
| }, | |
| "model.layers.5.block_sparse_moe.experts.4.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.5.block_sparse_moe.experts.4.w1.weight.scale" | |
| }, | |
| "model.layers.5.block_sparse_moe.experts.4.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.5.block_sparse_moe.experts.4.w2.weight.scale" | |
| }, | |
| "model.layers.5.block_sparse_moe.experts.4.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.5.block_sparse_moe.experts.4.w3.weight.scale" | |
| }, | |
| "model.layers.5.block_sparse_moe.experts.5.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.5.block_sparse_moe.experts.5.w1.weight.scale" | |
| }, | |
| "model.layers.5.block_sparse_moe.experts.5.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.5.block_sparse_moe.experts.5.w2.weight.scale" | |
| }, | |
| "model.layers.5.block_sparse_moe.experts.5.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.5.block_sparse_moe.experts.5.w3.weight.scale" | |
| }, | |
| "model.layers.5.block_sparse_moe.experts.6.w1.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.5.block_sparse_moe.experts.6.w1.weight.scale" | |
| }, | |
| "model.layers.5.block_sparse_moe.experts.6.w2.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.5.block_sparse_moe.experts.6.w2.weight.scale" | |
| }, | |
| "model.layers.5.block_sparse_moe.experts.6.w3.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.5.block_sparse_moe.experts.6.w3.weight.scale" | |
| }, | |
| "model.layers.5.block_sparse_moe.gate.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.5.block_sparse_moe.gate.weight.scale" | |
| }, | |
| "model.layers.5.input_layernorm.weight": { | |
| "dtype": "bfloat16" | |
| }, | |
| "model.layers.5.post_attention_layernorm.weight": { | |
| "dtype": "bfloat16" | |
| }, | |
| "model.layers.5.self_attn.k_proj.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.5.self_attn.k_proj.weight.scale" | |
| }, | |
| "model.layers.5.self_attn.o_proj.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.5.self_attn.o_proj.weight.scale" | |
| }, | |
| "model.layers.5.self_attn.q_proj.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.5.self_attn.q_proj.weight.scale" | |
| }, | |
| "model.layers.5.self_attn.v_proj.weight": { | |
| "axis": 1, | |
| "dtype": "int8", | |
| "scale": "model.layers.5.self_attn.v_proj.weight.scale" | |
| }, | |
| "model.norm.weight": { | |
| "dtype": "bfloat16" | |
| } | |
| }, | |
| "weights": "int8" | |
| } | |