forked from oneapi-src/oneAPI-samples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsample.json
More file actions
32 lines (32 loc) · 1.04 KB
/
sample.json
File metadata and controls
32 lines (32 loc) · 1.04 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
{
"guid": "01341A25-5FBF-4AE5-B4C9-B84105C8D3E9",
"name": "Quantize Transformer Models using Intel® Extension for Transformers* (ITREX)",
"categories": ["Toolkit/oneAPI AI And Analytics/Features And Functionality"],
"description": "Quantizing Transformer models in a step-by-step manner to enable memory efficient LLM inference.",
"builder": ["cli"],
"languages": [{
"python": {}
}],
"os": ["linux"],
"targetDevice": ["CPU"],
"ciTests": {
"linux": [{
"env": [
"source /intel/oneapi/intelpython/bin/activate",
"conda activate pytorch",
"pip install uv",
"uv init",
"uv python pin $(which python)",
"uv venv --system-site-packages",
"uv add -r requirements.txt",
"uv add neural-compressor==2.6",
"uv add torch==2.5.0 torchvision==0.20.0"
],
"id": "itrex_quantize_transformer_models",
"steps": [
"uv run python quantize_transformer_models_with_itrex.py --model_name Intel/neural-chat-7b-v3-1 --quantize int4 --max_new_tokens 50"
]
}]
},
"expertise": "Concepts and Functionality"
}