MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / _parse_gpus

Function _parse_gpus

lightx2v/disagg/examples/run_controller.py:20–24  ·  view source on GitHub ↗
(raw: str)

Source from the content-addressed store, hash-verified

18from lightx2v.models.runners.registry import get_model_spec
19from lightx2v.utils.request_defaults import get_input_value, get_request_default_arguments
20from lightx2v.utils.request_spec import is_list_type
21
22
23def _parse_gpus(raw: str) -> list[int]:
24 parts = [p.strip() for p in raw.split(",") if p.strip()]
25 if not parts:
26 return [0]
27 return [int(p) for p in parts]

Callers 1

_controller_mainFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected