Granite 3.3 8b instruct
Model Overview¶
Granite-3.3-8B-Instruct model is fine-tuned for improved reasoning and instruction-following capabilities.
This model is designed to handle general instruction-following tasks and can be integrated into AI assistants across various domains, including business applications.
- Model Architecture: Granite-3.3-8B-Instruct is a 8-billion parameter 128K context length language model.
- Website: Granite Docs
- Model Source: ibm-granite/granite-3.3-8b-instruct
- Release Date: April 16th, 2025
- License: Apache 2.0
- Supported Languages: English, German, Spanish, French, Japanese, Portuguese, Arabic, Czech, Italian, Korean, Dutch, and Chinese. However, users may finetune this Granite model for languages beyond these 12 languages.
QPC Configurations¶
| Precision | SoCs / Tensor slicing | NSP-Cores (per SoC) | Full Batch Size | Chunking Prompt Length | Context Length (CL) | Generated URL | Download |
|---|---|---|---|---|---|---|---|
| MXFP6 | 4 | 16 | 1 | 128 | 32768 | https://dc00tk1pxen80.cloudfront.net/SDK1.20.2/ibm-granite/granite-3.3-8b-instruct/qpc_16cores_128pl_32768cl_1fbs_4devices_mxfp6_mxint8.tar.gz | Download |
| MXFP6 | 4 | 16 | 8 | 128 | 32768 | https://dc00tk1pxen80.cloudfront.net/SDK1.20.2/ibm-granite/granite-3.3-8b-instruct/qpc_16cores_128pl_32768cl_8fbs_4devices_mxfp6_mxint8.tar.gz | Download |
Run This Model¶
# Download QPC
mkdir -p ibm-granite/granite-3.3-8b-instruct
cd ibm-granite/granite-3.3-8b-instruct
wget <Download URL>
tar xzvf <downloaded filename.tar.gz>
# Run QPC
python3 -m QEfficient.cloud.execute --model_name ibm-granite/granite-3.3-8b-instruct --qpc_path <path/to/qpc> --prompt "# shortest path algorithm\n" --generation_len 128
API Endpoint¶
# Start REST endpoint with vLLM
VLLM_QAIC_MAX_CPU_THREADS=8 VLLM_QAIC_QPC_PATH=/path/to/qpc python3 -m vllm.entrypoints.openai.api_server \
--host 0.0.0.0 \
--port 8000 \
--model ibm-granite/granite-3.3-8b-instruct \
--max-model-len <Context Length> \
--max-num-seq <Full Batch Size> \
--max-seq_len-to-capture <Chunking Prompt Length> \
--device qaic \
--block-size 32