Run Command
python benchmark.py --model EleutherAI/gpt-j-6b static --isl 128 --osl 128 --batch 1
quantization
python benchmark.py --model EleutherAI/gpt-j-6b --quantization W8A8_SQ_PER_CHANNEL --kv-dtype float16 static --isl 128 --osl 128 --batch 1
使用这个,启用的是 Smooth Quant的 Kernel , INT8运算
python benchmark.py --model EleutherAI/gpt-j-6b --quantization W8A8_SQ_PER_TENSOR_PLUGIN --kv-dtype float16 static --isl 256 --osl 256 --batch 64
启用没attention的 GPU profile
python benchmark.py --model meta/llama-7b-no-att --quantization W8A8_SQ_PER_TENSOR_PLUGIN static --isl 256 --osl 256 --batch 64 --model-config-path /workspaces/llm_gpu_profile/model_configs/llama_bypass_att_7b_config.json
抽象bug ,generated_config中有个rotary_base参数设不上,会导致trtllm-build失败,需要通过该trtllm_config.py 实现设置
原生trtllm-build指令
trtllm-build
hugging face access
huggingface-cli login --token my_token
hugging face models
meta-llama/Llama-2-7b-hfchargoddard/llama-2-34b-uncodemeta-llama/Llama-2-13b-hfmeta-llama/Llama-2-70b-hfpython benchmark.py --model meta-llama/Llama-2-7b-hf --quantization W8A8_SQ_PER_TENSOR_PLUGIN --kv-dtype float16 static --isl 256 --osl 256 --batch 64
Python
100.0%
Run Command
python benchmark.py --model EleutherAI/gpt-j-6b static --isl 128 --osl 128 --batch 1
quantization
python benchmark.py --model EleutherAI/gpt-j-6b --quantization W8A8_SQ_PER_CHANNEL --kv-dtype float16 static --isl 128 --osl 128 --batch 1
使用这个,启用的是 Smooth Quant的 Kernel , INT8运算
python benchmark.py --model EleutherAI/gpt-j-6b --quantization W8A8_SQ_PER_TENSOR_PLUGIN --kv-dtype float16 static --isl 256 --osl 256 --batch 64
启用没attention的 GPU profile
python benchmark.py --model meta/llama-7b-no-att --quantization W8A8_SQ_PER_TENSOR_PLUGIN static --isl 256 --osl 256 --batch 64 --model-config-path /workspaces/llm_gpu_profile/model_configs/llama_bypass_att_7b_config.json
抽象bug ,generated_config中有个rotary_base参数设不上,会导致trtllm-build失败,需要通过该trtllm_config.py 实现设置
原生trtllm-build指令
trtllm-build
hugging face access
huggingface-cli login --token my_token
hugging face models
meta-llama/Llama-2-7b-hfchargoddard/llama-2-34b-uncodemeta-llama/Llama-2-13b-hfmeta-llama/Llama-2-70b-hfpython benchmark.py --model meta-llama/Llama-2-7b-hf --quantization W8A8_SQ_PER_TENSOR_PLUGIN --kv-dtype float16 static --isl 256 --osl 256 --batch 64
Python
100.0%