Xyfuture/llm_gpu_profile

profile of llm throughput/latency running on gpu

0

stars

0

commits

Python

primary language

Aug 1, 2024

updated

README

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

实验设置

batch size

Normal Llama

python 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


Xyfuture/llm_gpu_profile

profile of llm throughput/latency running on gpu

0

stars

0

commits

Python

primary language

Aug 1, 2024

updated

README

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

实验设置

batch size

Normal Llama

python 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


Languages

Python

100.0%