Spaces:
Sleeping
Sleeping
Download src/constants.py from lczero-planning/demo: direct link, hf CLI and curl.
- Browser
- Download file 394 Bytes
-
https://huggingface.co/spaces/lczero-planning/demo/resolve/0d998a61f6437be36493a389344e1ee9e8f31644/src/constants.py
- Command line
-
hf download hf://spaces/lczero-planning/demo@0d998a61f6437be36493a389344e1ee9e8f31644/src/constants.py
-
curl -L -o constants.py https://huggingface.co/spaces/lczero-planning/demo/resolve/0d998a61f6437be36493a389344e1ee9e8f31644/src/constants.py
394 Bytes
| """Manage constants for the app. | |
| """ | |
| import os | |
| import pathlib | |
| import torch | |
| ASSETS_FOLDER = pathlib.Path(__file__).parent.parent / "assets" | |
| FIGURES_FOLER = pathlib.Path(__file__).parent.parent / "figures" | |
| HF_TOKEN = os.getenv("HF_TOKEN") | |
| DEVICE = torch.device("cuda" if torch.cuda.is_available() else "cpu") | |
| MODEL_NAME = "lc0-10-4238.onnx" | |
| SAE_CONFIG = "debug" | |
| LAYER = 9 | |
| N_FEATURES = 7680 | |