vllm.config.device
¶
Classes:
-
DeviceConfig–Configuration for the device to use for vLLM execution.
DeviceConfig
¶
Configuration for the device to use for vLLM execution.
Methods:
-
compile_factors–This config does not affect the compiled graph.
Attributes:
-
device(SkipValidation[Device | device | None]) –Device type for vLLM execution.
-
device_type(str) –Device type from the current platform. This is set in
Source code in vllm/config/device.py
device = 'auto'
class-attribute
instance-attribute
¶
Device type for vLLM execution. This parameter is deprecated and will be removed in a future release. It will now be set automatically based on the current platform.
device_type = field(init=False)
class-attribute
instance-attribute
¶
Device type from the current platform. This is set in
__post_init__.
compile_factors()
¶
This config does not affect the compiled graph.
If a field starts affecting it, return
get_compile_factors(self, ignored_factors) with every other field in
ignored_factors.