handle torch_compile set to auto (#2172) [skip ci]

* handle torch_compile set to auto

* update docs [skip ci]

* add tests
This commit is contained in:
Wing Lian
2024-12-17 16:42:41 -05:00
committed by GitHub
parent 10cfecf02e
commit 3798229d85
4 changed files with 64 additions and 4 deletions

View File

@@ -245,8 +245,8 @@ def validate_config(
) = merge_input_args()
if capabilities or env_capabilities:
if (capabilities and not env_capabilities) or (
env_capabilities and not capabilities
if (capabilities and env_capabilities is None) or (
env_capabilities and capabilities is None
):
raise ValueError(
"Both capabilities and env_capabilities must be provided or not provided."