TensorRT-LLMs/tests/integration/defs/examples
Netanel Haber 3c52ac098f
feat: allocate minimal blocks per window size (#3028)
* implement variable window attention by breaking the block manager into window block managers per window size

Signed-off-by: Netanel Haber <58652339+netanel-haber@users.noreply.github.com>

* revert isCyclic to be true if the min attention window is reached, not per window size

Signed-off-by: Netanel Haber <58652339+netanel-haber@users.noreply.github.com>

* add explanatory comment to mCyclicThreshold

Signed-off-by: Netanel Haber <58652339+netanel-haber@users.noreply.github.com>

* load correct gemma config

Signed-off-by: Netanel Haber <58652339+netanel-haber@users.noreply.github.com>

* don't shadow inputLength in addSequence - it should remain the function scope input length between window size loop iterations

Signed-off-by: Netanel Haber <58652339+netanel-haber@users.noreply.github.com>

* fix KVCacheManagerVariableWindowAttentionWithReuseTest for multiple window block managers

Signed-off-by: Netanel Haber <58652339+netanel-haber@users.noreply.github.com>

* if TYPE_CHECKING

Signed-off-by: Netanel Haber <58652339+netanel-haber@users.noreply.github.com>

* set temp_attention_window_inputs to None explicitly

Signed-off-by: Netanel Haber <58652339+netanel-haber@users.noreply.github.com>

* set temp_attention_window_inputs to None explicitly

Signed-off-by: Netanel Haber <58652339+netanel-haber@users.noreply.github.com>

* pass dtype as well

Signed-off-by: Netanel Haber <58652339+netanel-haber@users.noreply.github.com>

* test_gemma variable sliding window attention

Signed-off-by: Netanel Haber <58652339+netanel-haber@users.noreply.github.com>

* allot a fraction of primary/secondaryBlocks to different window size heaps, depending on the window size's total contribution to the kvcache size (i.e., including all layers)

Signed-off-by: Netanel Haber <58652339+netanel-haber@users.noreply.github.com>

* remove || mEnableBlockReuse which erroneously triggers beamsearch code for cyclic variable attention window code

Signed-off-by: Netanel Haber <58652339+netanel-haber@users.noreply.github.com>

* turn off request delaying for MaxUtil

Signed-off-by: Netanel Haber <58652339+netanel-haber@users.noreply.github.com>

* make comments better

Signed-off-by: Netanel Haber <58652339+netanel-haber@users.noreply.github.com>

* windowSizesTotalSum using std::accumulate

Signed-off-by: Netanel Haber <58652339+netanel-haber@users.noreply.github.com>

* fix error handling of forwardAsync - forwardAsync catch-all catch cleanup code that runs terminateRequest can also fail and must be caught

Signed-off-by: Netanel Haber <58652339+netanel-haber@users.noreply.github.com>

* fix comments

Signed-off-by: Netanel Haber <58652339+netanel-haber@users.noreply.github.com>

* remove assert that kills disagg tests, since it isn't necessary

Signed-off-by: Netanel Haber <58652339+netanel-haber@users.noreply.github.com>

* fix corrupted expression: 'isNewTask && (peftCacheManager ?' -> '(isNewTask && peftCacheManager) ?' which caused boolean algebra. Main is correct

Signed-off-by: Netanel Haber <58652339+netanel-haber@users.noreply.github.com>

* add Gemma3 to SUPPORTED_HF_ARCHITECTURES

Signed-off-by: Netanel Haber <58652339+netanel-haber@users.noreply.github.com>

* support Gemma3

Signed-off-by: Netanel Haber <58652339+netanel-haber@users.noreply.github.com>

* finally fix test_gemma - always spread at least {} into generate_summary_cmd, never None

Signed-off-by: Netanel Haber <58652339+netanel-haber@users.noreply.github.com>

* finally fix test_gemma - always spread at least {} into generate_summary_cmd, never None

Signed-off-by: Netanel Haber <58652339+netanel-haber@users.noreply.github.com>

* fix kvfactor field for deepseek

Signed-off-by: Netanel Haber <58652339+netanel-haber@users.noreply.github.com>

* fix comment

Signed-off-by: Netanel Haber <58652339+netanel-haber@users.noreply.github.com>

* fix gemma-3 entries in testlist to include vswa

Signed-off-by: Netanel Haber <58652339+netanel-haber@users.noreply.github.com>

* only quantize gemma2 VSWA

Signed-off-by: Netanel Haber <58652339+netanel-haber@users.noreply.github.com>

remove misleading comment

Signed-off-by: Netanel Haber <58652339+netanel-haber@users.noreply.github.com>

fix test_gemma

Signed-off-by: Netanel Haber <58652339+netanel-haber@users.noreply.github.com>

* fix test_gemma

Signed-off-by: Netanel Haber <58652339+netanel-haber@users.noreply.github.com>

* fix test_gemma

Signed-off-by: Netanel Haber <58652339+netanel-haber@users.noreply.github.com>

* in sendRequestInfo, fromOldAllocatedBlockIds->fromOldAllocatedBlockIds, like in main

Signed-off-by: Netanel Haber <58652339+netanel-haber@users.noreply.github.com>

* fix: disable KV cache reuse if using attention sink (#3021)

* fix: disable KV cache reuse if using attention sink

Signed-off-by: Robin Kobus <19427718+Funatiq@users.noreply.github.com>

* fix: disable KV cache reuse if sink bubble

Signed-off-by: Robin Kobus <19427718+Funatiq@users.noreply.github.com>

* add comment

Signed-off-by: Robin Kobus <19427718+Funatiq@users.noreply.github.com>

---------

Signed-off-by: Robin Kobus <19427718+Funatiq@users.noreply.github.com>

---------

Signed-off-by: Netanel Haber <58652339+netanel-haber@users.noreply.github.com>
Signed-off-by: Robin Kobus <19427718+Funatiq@users.noreply.github.com>
Co-authored-by: Robin Kobus <19427718+Funatiq@users.noreply.github.com>
2025-04-17 16:04:57 +08:00
..
run_llm_fp8_quant_llama_70b.py Update (#2978) 2025-03-23 16:39:35 +08:00
run_llm_lad_mtbench.py Update (#2978) 2025-03-23 16:39:35 +08:00
run_llm_quickstart_atexit.py Update (#2978) 2025-03-23 16:39:35 +08:00
test_bert.py feat: Add FP8 support for SM 120 (#3248) 2025-04-14 16:05:41 -07:00
test_bindings.py Update (#2978) 2025-03-23 16:39:35 +08:00
test_chatglm.py fix bug of glm-4-9b ci (#3184) bug nvbug_5196515 2025-04-01 16:58:42 +08:00
test_commandr.py Update (#2978) 2025-03-23 16:39:35 +08:00
test_deepseek.py feat: Add FP8 support for SM 120 (#3248) 2025-04-14 16:05:41 -07:00
test_draft_target_model.py Update (#2978) 2025-03-23 16:39:35 +08:00
test_eagle.py test: add torch flow test case in qa test list (#3404) 2025-04-11 16:57:41 +08:00
test_enc_dec.py Add Llama 4 (#3302) 2025-04-09 03:35:21 +08:00
test_exaone.py Add EXAONE-Deep (#3054) 2025-03-26 14:24:04 +08:00
test_gemma.py feat: allocate minimal blocks per window size (#3028) 2025-04-17 16:04:57 +08:00
test_gpt.py fix: disable the kv cache reuse for prompt tuning test (#3474) 2025-04-14 14:35:47 +08:00
test_gptj.py test:remove opt/mpt/gptj/gptneox/bloom/falcon/baichuan/internlm/deep_… (#2987) 2025-03-24 14:18:06 +08:00
test_granite.py Update (#2978) 2025-03-23 16:39:35 +08:00
test_internlm.py test:remove opt/mpt/gptj/gptneox/bloom/falcon/baichuan/internlm/deep_… (#2987) 2025-03-24 14:18:06 +08:00
test_llama.py test:add fp8_kv_cache functionality test case. (#3457) 2025-04-15 09:16:46 +08:00
test_llm_api_with_mpi.py Update (#2978) 2025-03-23 16:39:35 +08:00
test_mamba.py Update (#2978) 2025-03-23 16:39:35 +08:00
test_medusa.py Add support for Phi-4-mini (#2990) 2025-04-02 08:34:39 +08:00
test_mistral.py chore: Mass integration of release/0.18 (#3421) 2025-04-16 10:03:29 +08:00
test_mixtral.py AWQ support Modelopt ckpts. (#3258) 2025-04-04 08:10:35 +08:00
test_multimodal.py Add support for Phi-4-MM (#3296) 2025-04-14 14:24:10 +08:00
test_nemotron_nas.py Update (#2978) 2025-03-23 16:39:35 +08:00
test_nemotron.py Update (#2978) 2025-03-23 16:39:35 +08:00
test_openai.py Update (#2978) 2025-03-23 16:39:35 +08:00
test_phi.py test: add cuda visible device constraint for phi_1gpu test (#3364) 2025-04-11 17:14:52 +08:00
test_prompt_lookup.py Update (#2978) 2025-03-23 16:39:35 +08:00
test_qwen2audio.py chore: Handle qwen2audio inputs ids expansion during processing (#3080) 2025-03-26 15:00:27 +08:00
test_qwen.py test: Accuracy test improvement (Part 3.2): Move Qwen tests (NvBug 5135332) (#3219) 2025-04-02 17:29:57 +08:00
test_qwenvl.py Update (#2978) 2025-03-23 16:39:35 +08:00
test_recurrentgemma.py Update (#2978) 2025-03-23 16:39:35 +08:00
test_redrafter.py Update (#2978) 2025-03-23 16:39:35 +08:00
test_whisper.py Update (#2978) 2025-03-23 16:39:35 +08:00