[Misc] Move device options to a single place (#8322)
This commit is contained in:
@@ -26,6 +26,16 @@ logger = init_logger(__name__)
|
||||
|
||||
ALLOWED_DETAILED_TRACE_MODULES = ["model", "worker", "all"]
|
||||
|
||||
DEVICE_OPTIONS = [
|
||||
"auto",
|
||||
"cuda",
|
||||
"neuron",
|
||||
"cpu",
|
||||
"openvino",
|
||||
"tpu",
|
||||
"xpu",
|
||||
]
|
||||
|
||||
|
||||
def nullable_str(val: str):
|
||||
if not val or val == "None":
|
||||
@@ -553,10 +563,7 @@ class EngineArgs:
|
||||
parser.add_argument("--device",
|
||||
type=str,
|
||||
default=EngineArgs.device,
|
||||
choices=[
|
||||
"auto", "cuda", "neuron", "cpu", "openvino",
|
||||
"tpu", "xpu"
|
||||
],
|
||||
choices=DEVICE_OPTIONS,
|
||||
help='Device type for vLLM execution.')
|
||||
parser.add_argument('--num-scheduler-steps',
|
||||
type=int,
|
||||
|
||||
Reference in New Issue
Block a user