-
-
Notifications
You must be signed in to change notification settings - Fork 20.2k
light version of prefix caching for hybrid models gdn attention #30725
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -244,6 +244,7 @@ | |
| VLLM_SHARED_EXPERTS_STREAM_TOKEN_THRESHOLD: int = 256 | ||
| VLLM_COMPILE_CACHE_SAVE_FORMAT: Literal["binary", "unpacked"] = "binary" | ||
| VLLM_USE_V2_MODEL_RUNNER: bool = False | ||
| VLLM_USE_LIGHTER_MAMBA_CACHE: bool = False | ||
|
|
||
|
|
||
| def get_default_cache_root(): | ||
|
|
@@ -1565,6 +1566,9 @@ def get_vllm_port() -> int | None: | |
| "VLLM_USE_V2_MODEL_RUNNER": lambda: bool( | ||
| int(os.getenv("VLLM_USE_V2_MODEL_RUNNER", "0")) | ||
| ), | ||
| "VLLM_USE_LIGHTER_MAMBA_CACHE": lambda: bool( | ||
| os.getenv("VLLM_USE_LIGHTER_MAMBA_CACHE", False) | ||
| ), | ||
| } | ||
|
|
||
| # --8<-- [end:env-vars-definition] | ||
|
|
@@ -1692,6 +1696,7 @@ def compile_factors() -> dict[str, object]: | |
| "VLLM_CPU_MOE_PREPACK", | ||
| "VLLM_CPU_SGL_KERNEL", | ||
| "VLLM_TEST_FORCE_LOAD_FORMAT", | ||
| "VLLM_USE_LIGHTER_MAMBA_CACHE", | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The |
||
| "LOCAL_RANK", | ||
| "CUDA_VISIBLE_DEVICES", | ||
| "NO_COLOR", | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The parsing of the
VLLM_USE_LIGHTER_MAMBA_CACHEenvironment variable is incorrect. When a user setsVLLM_USE_LIGHTER_MAMBA_CACHE=0,os.getenvreturns the string"0", andbool("0")evaluates toTrue, which is not the intended behavior. This should be parsed similarly to other boolean environment variables in this file by converting the value to an integer before casting to a boolean.