vllm_gaudi.extension.config
¶
Config
¶
Contains pairs of key/value that can be calculated on demand
Source code in vllm_gaudi/extension/config.py
Env
¶
A callable that fetches values from env variables, applying conversions if necessary
Source code in vllm_gaudi/extension/config.py
__call__
¶
Source code in vllm_gaudi/extension/config.py
__init__
¶
__init__(
name: str,
value_type: Constructor,
check: Checker = skip_validation,
)
Value
¶
A callable that returns the value calculated through its dependencies or overriden by an associated experimental flag
Source code in vllm_gaudi/extension/config.py
__call__
¶
Return value from experimental flag if provided by user or calculate it based on dependencies
Source code in vllm_gaudi/extension/config.py
__init__
¶
__init__(
name: str,
dependencies: Any,
env_var: Optional[str] = None,
env_var_type: Constructor = boolean,
check: Checker = skip_validation,
)
Source code in vllm_gaudi/extension/config.py
_validate
¶
ValueFromList
¶
Bases: Value
Helper class to create a value with a limited list of possible options
Source code in vllm_gaudi/extension/config.py
All
¶
Disabled
¶
Enabled
¶
Engine
¶
Eq
¶
FirstEnabled
¶
Hardware
¶
Kernel
¶
Return True if loader_fn result is not None and hardware != 'cpu'
MinPackageVersion
¶
ModelType
¶
Not
¶
VersionRange
¶
Return True if any of the version specifiers matches current build
Source code in vllm_gaudi/extension/config.py
boolean
¶
env_flags
¶
list_of
¶
list_of(t: Constructor)
Converts a comma seperated string representation of a list of values
split_values_and_flags
¶
Converts a list of values and returns dicts for both values and envs