Add max_seq_len parameter to ConfigIQ /recommend tool so teams can compare GPU costs across different context tiers without using the CLI.
Field teams need to answer: "If we serve GLM at 64k instead of 1M tokens, how many fewer GPUs do we need?"
Right now:
- AIC CLI already supports
--max-seq-len to constrain KV cache allocation
- REST API and ConfigIQ webapp don't have this parameter
- Teams are stuck running CLI multiple times to compare context tiers
Change
-
Add max_seq_len to REST API
- Just pass it through to
cli_recommend() — it's already supported there
-
Add input fields to ConfigIQ /recommend page
- For agg mode: single "Max sequence length (tokens)" field
- For disagg mode: two fields — one for prefill workers, one for decode workers (optional, can override per-worker if needed)
- Help text: "Constrains KV cache allocation. Default is input + output sequence length (not the model's
max_position_embeddings). Set lower to model serving at specific context tiers."
The model's max is a hard upper limit, but the default allocation is just what's needed for your typical workload. This way you can size KV cache for 64k context without the model knowing it supports 1M.
Notes
- CLI already has this:
aiconfigurator cli recommend --isl 4000 --osl 500 --max-seq-len 64000
- For disagg, CLI supports
--prefill-max-seq-len and --decode-max-seq-len for per-worker tuning
- Python SDK already supports both patterns
- Just needs REST wrapper + ConfigIQ UI
Add
max_seq_lenparameter to ConfigIQ/recommendtool so teams can compare GPU costs across different context tiers without using the CLI.Field teams need to answer: "If we serve GLM at 64k instead of 1M tokens, how many fewer GPUs do we need?"
Right now:
--max-seq-lento constrain KV cache allocationChange
Add
max_seq_lento REST APIcli_recommend()— it's already supported thereAdd input fields to ConfigIQ
/recommendpagemax_position_embeddings). Set lower to model serving at specific context tiers."The model's max is a hard upper limit, but the default allocation is just what's needed for your typical workload. This way you can size KV cache for 64k context without the model knowing it supports 1M.
Notes
aiconfigurator cli recommend --isl 4000 --osl 500 --max-seq-len 64000--prefill-max-seq-lenand--decode-max-seq-lenfor per-worker tuning