Spaces:
Running
Running
Upload config.py with huggingface_hub
Browse files
config.py
ADDED
|
@@ -0,0 +1,48 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
"""Shared config extracted from collect.py — colors, allocations, project codes."""
|
| 2 |
+
|
| 3 |
+
from __future__ import annotations
|
| 4 |
+
|
| 5 |
+
from datetime import date
|
| 6 |
+
|
| 7 |
+
PROJECT_CODES = ["PAS1266", "PAS3209"]
|
| 8 |
+
|
| 9 |
+
COLORS = {
|
| 10 |
+
"systems": {"PITZER": "#2176AE", "ASCEND": "#57B894", "CARDINAL": "#F4845F"},
|
| 11 |
+
"cpu_gpu": {"CPU": "#2176AE", "GPU": "#F4845F"},
|
| 12 |
+
"states": {
|
| 13 |
+
"COMPLETED": "#57B894",
|
| 14 |
+
"FAILED": "#E63946",
|
| 15 |
+
"CANCELLED": "#FFB703",
|
| 16 |
+
"TIMEOUT": "#8338EC",
|
| 17 |
+
"NODE_FAIL": "#264653",
|
| 18 |
+
"OUT_OF_MEMORY": "#E76F51",
|
| 19 |
+
},
|
| 20 |
+
"projects": {"PAS1266": "#2176AE", "PAS3209": "#F4845F"},
|
| 21 |
+
"launch_methods": {
|
| 22 |
+
"Jupyter": "#E63946",
|
| 23 |
+
"Desktop": "#FFB703",
|
| 24 |
+
"Code Server": "#8338EC",
|
| 25 |
+
"MATLAB": "#264653",
|
| 26 |
+
"MLflow": "#57B894",
|
| 27 |
+
"Batch": "#2176AE",
|
| 28 |
+
},
|
| 29 |
+
"pie": [
|
| 30 |
+
"#2176AE",
|
| 31 |
+
"#57B894",
|
| 32 |
+
"#F4845F",
|
| 33 |
+
"#FFB703",
|
| 34 |
+
"#8338EC",
|
| 35 |
+
"#264653",
|
| 36 |
+
"#E63946",
|
| 37 |
+
"#A8DADC",
|
| 38 |
+
],
|
| 39 |
+
}
|
| 40 |
+
|
| 41 |
+
ALLOCATIONS = {
|
| 42 |
+
"PAS1266": 2257.0,
|
| 43 |
+
"PAS3209": 1211.0,
|
| 44 |
+
}
|
| 45 |
+
|
| 46 |
+
FISCAL_YEAR_END = date(2025, 6, 30)
|
| 47 |
+
|
| 48 |
+
STATE_ORDER = ["COMPLETED", "FAILED", "CANCELLED", "TIMEOUT", "NODE_FAIL", "OUT_OF_MEMORY"]
|