Download code/models/common/model_capabilities.py from Lottolabs/Qwen3.8-Flash-Next-Coder-P150-tt-model: direct link, hf CLI and curl.
- Browser
- Download file 1.09 kB
-
https://huggingface.co/Lottolabs/Qwen3.8-Flash-Next-Coder-P150-tt-model/resolve/main/code/models/common/model_capabilities.py
- Command line
-
hf download hf://Lottolabs/Qwen3.8-Flash-Next-Coder-P150-tt-model/code/models/common/model_capabilities.py
-
curl -L -o model_capabilities.py https://huggingface.co/Lottolabs/Qwen3.8-Flash-Next-Coder-P150-tt-model/resolve/main/code/models/common/model_capabilities.py
1.09 kB
| # SPDX-FileCopyrightText: © 2026 Tenstorrent USA, Inc. | |
| # | |
| # SPDX-License-Identifier: Apache-2.0 | |
| # Maximum number of tokens that can simultaneously occupy the KV cache | |
| # across all concurrent users. This fallback applies to model/device | |
| # configurations not covered by a model-specific override. | |
| # Derived from the default branch of the per-model KV-cache rules in | |
| # the TT vLLM worker (tenstorrent/vllm#315). | |
| # See also: https://github.com/tenstorrent/vllm/issues/315 | |
| FALLBACK_MAX_TOKENS_ALL_USERS = 131_072 | |
| class ModelCapabilitiesMixin: | |
| """Defines interface for hardware- or model-specific configurations. | |
| NOTE: The default values here and per-model overrides will eventually be | |
| unified with the corresponding vLLM scheduler configuration so that both | |
| paths derive from the same source of truth. | |
| """ | |
| def get_max_tokens_all_users(cls, **kwargs) -> int: | |
| """Returns the fallback all-user KV-cache token capacity. | |
| Used when no model- or device-specific override applies. | |
| """ | |
| return FALLBACK_MAX_TOKENS_ALL_USERS | |