TensorRT-LLMs/cpp/tests/unit_tests/runtime
liji-nv dca6397d1e
feat: Introduce UB allocator for pytorch flow (#3257)
* Instead of allocating UserBuffers at beginning of runtime, UB buffers
  are now managed with global allocator. The allocator will dynamically
assign free UB buffer or allocate new buffer for torch tensor. It makes
userbuffers easier to use.

* In common usecase, the Userbuffers will be allocated correctly during
  warm up stage. There is no dynamic allocation during inference.

* UB fusion pattern is rewroten using the new UB Allocator. It contains
  following passes:

1. Fuse Quant with allreduce, replace with UB impl, and insert a
   copy_to_userbuffers. Currently the normal allreduce still does not
   support FP8 quant. So this need to be done in UB pass
2. Convert all supported allreduce with UB and insert copy_to_userbuffers.
3. Fuse op before ar with the copy_to_userbuffers. So the op directly
   writes to the userbuffer
4. Remove userbuffers finalize if the output is connect to another UB
   allreduce.

Signed-off-by: Jin Li <59594262+liji-nv@users.noreply.github.com>
2025-04-08 18:39:49 +08:00
..
bufferManagerTest.cpp Update TensorRT-LLM (#2755) 2025-02-11 03:01:00 +00:00
CMakeLists.txt Update TensorRT-LLM (#2755) 2025-02-11 03:01:00 +00:00
cudaMemPoolTest.cpp Update TensorRT-LLM (#2755) 2025-02-11 03:01:00 +00:00
decodingLayerWorkspaceTest.cpp Update TensorRT-LLM (#2755) 2025-02-11 03:01:00 +00:00
iBufferTest.cpp Update TensorRT-LLM (#2755) 2025-02-11 03:01:00 +00:00
iTensorTest.cpp Update TensorRT-LLM (#2755) 2025-02-11 03:01:00 +00:00
loraUtilsTest.cpp Update TensorRT-LLM (#2755) 2025-02-11 03:01:00 +00:00
runtimeKernelTest.cpp chore: remove usernames from comments (#3291) 2025-04-05 13:44:28 +08:00
samplingConfigTest.cpp v1.2 (#3082) 2025-03-26 23:31:29 +08:00
samplingTest.cpp Update TensorRT-LLM (#2755) 2025-02-11 03:01:00 +00:00
tllmBuffersTest.cpp Update TensorRT-LLM (#2873) 2025-03-11 21:13:42 +08:00
tllmRuntimeTest.cpp Update TensorRT-LLM (#2755) 2025-02-11 03:01:00 +00:00
torchTest.cpp Update TensorRT-LLM (#2755) 2025-02-11 03:01:00 +00:00
transposeKVKernelTest.cpp Update TensorRT-LLM (#2755) 2025-02-11 03:01:00 +00:00
userBufferTest.cpp feat: Introduce UB allocator for pytorch flow (#3257) 2025-04-08 18:39:49 +08:00
utilsTest.cpp Update TensorRT-LLM (#2755) 2025-02-11 03:01:00 +00:00
workerPoolTest.cpp Update TensorRT-LLM (#2755) 2025-02-11 03:01:00 +00:00
worldConfigTest.cpp Update TensorRT-LLM (#2755) 2025-02-11 03:01:00 +00:00