(raw: str)
| 18 | from lightx2v.models.runners.registry import get_model_spec |
| 19 | from lightx2v.utils.request_defaults import get_input_value, get_request_default_arguments |
| 20 | from lightx2v.utils.request_spec import is_list_type |
| 21 | |
| 22 | |
| 23 | def _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] |