Download tests/test_config.py from officialcyber88/torch-tensorcore-speedkit: direct link, hf CLI and curl.
- Browser
- Download file 310 Bytes
-
https://huggingface.co/officialcyber88/torch-tensorcore-speedkit/resolve/main/tests/test_config.py
- Command line
-
hf download hf://officialcyber88/torch-tensorcore-speedkit/tests/test_config.py
-
curl -L -o test_config.py https://huggingface.co/officialcyber88/torch-tensorcore-speedkit/resolve/main/tests/test_config.py
310 Bytes
| from __future__ import annotations | |
| import pytest | |
| from torch_speedkit.config import SpeedConfig | |
| def test_config_defaults_validate(): | |
| cfg = SpeedConfig() | |
| cfg.validate() | |
| def test_invalid_precision(): | |
| with pytest.raises(ValueError): | |
| SpeedConfig.from_dict({"precision": "fp8"}) | |