You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The scripts in benchmarks are only for latency benchmark. As we can compare it with other LLM inference framworks, is there any demo for offline throughput? I have compiled llm engine with option --use_inflight_batching.
Is build option --use_inflight_batching compatible with --use_gpt_attention_plugin bfloat16? The README said Note that in-flight batching in C++ runtime works only with attention plugin --use_gpt_attention_plugin=float16, paged KV cache --paged_kv_cache and with packed data --remove_input_padding.
> 1. The scripts in benchmarks are only for latency benchmark. As we can compare it with other LLM inference framworks, is there any demo for offline throughput? I have compiled llm engine with option --use_inflight_batching.
You can refer here to measure the perf with inflight batching.
Is build option --use_inflight_batching compatible with --use_gpt_attention_plugin bfloat16? The README said Note that in-flight batching in C++ runtime works only with attention plugin --use_gpt_attention_plugin=float16, paged KV cache --paged_kv_cache and with packed data --remove_input_padding.
Yes, --use_inflight_batching is compatible with --use_gpt_attention_plugin bfloat16. It requires some special logic which currently is only supported by GPT Attention plugin, that's why there is such a requirement.
@juney-nvidia Thanks for your kind help.
The good news: I have got the fixed BatchSize/InputLen/OutputLen benchmark by running .cpp/build/benchmarks/gptSessionBenchmark.
I tried to launch Batch Manager benchmarking. What dataset is needed for prepare_dataset.py? Could you please give a demo?
What is the difference between gptSessionBenchmark(cpp) and benchmark.py(python)? benchmark.py can also give the Fixed BatchSize/InputLen/OutputLen latency.
How could user do online throughput benchmark? I see the link is very helpful.
2/ We currently focus our efforts on the C++ code so it’s the most up to date. We’d love to provide users with both solutions but we cannot afford to build the two stacks in parallel. So, we recommend to use the C++ stack.
3/ Happy if you found the blog post useful. I like it too. For the online throughput, we will probably publish a tool in the future but it’s not ready.
@jdemouth-nvidia The key in CNN are id, article and highlights. While the prepare_dataset.py expects key are input, instruction and output. So CNN Daily dataset may not be used directly.
2/ We currently focus our efforts on the C++ code so it’s the most up to date. We’d love to provide users with both solutions but we cannot afford to build the two stacks in parallel. So, we recommend to use the C++ stack.
Got it!
3/ Happy if you found the blog post useful. I like it too. For the online throughput, we will probably publish a tool in the future but it’s not ready.
If you're looking to Maximize LLM throughput LiteLLM now has a router to load balance requests (i'd love feedback if people on this thread are trying to do this)
Activity
juney-nvidia commentedon Oct 23, 2023
> 1. The scripts in
benchmarksare only for latency benchmark. As we can compare it with other LLM inference framworks, is there any demo for offline throughput? I have compiled llm engine with option--use_inflight_batching.You can refer here to measure the perf with inflight batching.
Yes,
--use_inflight_batchingis compatible with--use_gpt_attention_plugin bfloat16. It requires some special logic which currently is only supported by GPT Attention plugin, that's why there is such a requirement.77h2l commentedon Oct 24, 2023
@juney-nvidia https://aistudio.baidu.com/projectdetail/5017442 is there lack of a necessary step of cmake command? since the original repo has no rule to make under build dir
zhaoyang-star commentedon Oct 25, 2023
@juney-nvidia Thanks for your kind help.
The good news: I have got the fixed BatchSize/InputLen/OutputLen benchmark by running
.cpp/build/benchmarks/gptSessionBenchmark.There are still several questions:
gptSessionBenchmark(cpp)andbenchmark.py(python)?benchmark.pycan also give the Fixed BatchSize/InputLen/OutputLen latency.Thanks in advance.
jdemouth-nvidia commentedon Oct 25, 2023
1/ You can try the CNN Daily dataset,
2/ We currently focus our efforts on the C++ code so it’s the most up to date. We’d love to provide users with both solutions but we cannot afford to build the two stacks in parallel. So, we recommend to use the C++ stack.
3/ Happy if you found the blog post useful. I like it too. For the online throughput, we will probably publish a tool in the future but it’s not ready.
zhaoyang-star commentedon Oct 26, 2023
@jdemouth-nvidia The key in CNN are id, article and highlights. While the prepare_dataset.py expects key are input, instruction and output. So CNN Daily dataset may not be used directly.
Got it!
Keep tuned.
ishaan-jaff commentedon Nov 22, 2023
If you're looking to Maximize LLM throughput LiteLLM now has a router to load balance requests
(i'd love feedback if people on this thread are trying to do this)
Here's how to use it
Docs: https://docs.litellm.ai/docs/routing
nv-guomingz commentedon Nov 18, 2024
hi @zhaoyang-star do u still have further issue or question now? If not, we'll close it soon.
[AutoDeploy] yaml config loader for dynamic settings (closes NVIDIA#4366