Spaces:
Running
Running
Deploy Space: update src
Browse files
src/__pycache__/__init__.cpython-310.pyc
ADDED
|
Binary file (142 Bytes). View file
|
|
|
src/__pycache__/rank_based_metric.cpython-310.pyc
ADDED
|
Binary file (3.43 kB). View file
|
|
|
src/__pycache__/utils.cpython-310.pyc
ADDED
|
Binary file (39.8 kB). View file
|
|
|
src/about.py
CHANGED
|
@@ -15,27 +15,22 @@ subsequent domain tab retains the original absolute per-dataset results.
|
|
| 15 |
LLM_BENCHMARKS_TEXT = """
|
| 16 |
## How to participate (Submit a New Model)
|
| 17 |
|
| 18 |
-
|
| 19 |
-
|
| 20 |
-
|
| 21 |
-
|
| 22 |
-
|
| 23 |
-
|
| 24 |
-
|
| 25 |
-
|
| 26 |
-
|
| 27 |
-
|
| 28 |
-
|
| 29 |
-
|
| 30 |
-
|
| 31 |
-
|
| 32 |
-
|
| 33 |
-
|
| 34 |
-
model_class: user_models.<your_model_id>.<ModelClass>
|
| 35 |
-
model_path: space/user_models/<your_model_id>_checkpoint.pt
|
| 36 |
-
```
|
| 37 |
-
|
| 38 |
-
Once your Pull Request is opened, our automated sandbox pipeline will load your model, run zero-shot evaluations on the live test streams under the exact same conditions, compute the metrics fairly, and update the leaderboard automatically.
|
| 39 |
|
| 40 |
## Metrics
|
| 41 |
|
|
|
|
| 15 |
LLM_BENCHMARKS_TEXT = """
|
| 16 |
## How to participate (Submit a New Model)
|
| 17 |
|
| 18 |
+
Community models are evaluated through owner-operated HTTPS endpoints. Copy the
|
| 19 |
+
portable FastAPI template in `examples/community_endpoint/`, replace its
|
| 20 |
+
`forecast_one` function, and deploy it on your own inference server or existing
|
| 21 |
+
cloud service. A paid Hugging Face Space is optional and a Static Space cannot
|
| 22 |
+
run the forecasting API.
|
| 23 |
+
|
| 24 |
+
The endpoint receives only causal history, prediction length, frequency, and
|
| 25 |
+
requested quantiles. It never receives future labels. Servers behind NAT can use
|
| 26 |
+
a stable named HTTPS tunnel; temporary Quick Tunnel URLs are not accepted.
|
| 27 |
+
|
| 28 |
+
Before submitting, run `scripts/validate_external_model_endpoint.py` against the
|
| 29 |
+
public `/forecast` URL and generate `community_model.yaml` with
|
| 30 |
+
`scripts/generate_community_model_metadata.py`. Submit the public model card,
|
| 31 |
+
endpoint-code URL, endpoint URL, metadata, and successful validator receipt
|
| 32 |
+
through the community model request form. Accepted entries are evaluated only
|
| 33 |
+
on future live releases.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 34 |
|
| 35 |
## Metrics
|
| 36 |
|
src/display/__pycache__/__init__.cpython-310.pyc
ADDED
|
Binary file (150 Bytes). View file
|
|
|
src/display/__pycache__/formatting.cpython-310.pyc
ADDED
|
Binary file (979 Bytes). View file
|
|
|
src/utils.py
CHANGED
|
@@ -1005,6 +1005,24 @@ def load_baseline_rank_history_monthly(root_dir: str = "results") -> pd.DataFram
|
|
| 1005 |
present = [c for c in _MONTHLY_DISPLAY_COLS if c in monthly.columns]
|
| 1006 |
return monthly[present].sort_values(["month", "model"]).reset_index(drop=True)
|
| 1007 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1008 |
# ---------------------------------------------------------------------------
|
| 1009 |
# Forecast snapshot utilities
|
| 1010 |
# ---------------------------------------------------------------------------
|
|
|
|
| 1005 |
present = [c for c in _MONTHLY_DISPLAY_COLS if c in monthly.columns]
|
| 1006 |
return monthly[present].sort_values(["month", "model"]).reset_index(drop=True)
|
| 1007 |
|
| 1008 |
+
|
| 1009 |
+
def load_fixed_window_rank(root_dir: str = "results", window: str = "1d") -> pd.DataFrame:
|
| 1010 |
+
"""Load a wall-clock 1d/7d/30d leaderboard generated from canonical releases."""
|
| 1011 |
+
|
| 1012 |
+
if window not in {"1d", "7d", "30d"}:
|
| 1013 |
+
raise ValueError(f"Unsupported fixed leaderboard window: {window}")
|
| 1014 |
+
path = Path(root_dir) / "aggregates" / f"live_rank_{window}.csv"
|
| 1015 |
+
if not path.exists():
|
| 1016 |
+
return pd.DataFrame()
|
| 1017 |
+
try:
|
| 1018 |
+
frame = pd.read_csv(path)
|
| 1019 |
+
except Exception:
|
| 1020 |
+
return pd.DataFrame()
|
| 1021 |
+
for column in ("Rank", "AverageRank", "WinRate", "Elo"):
|
| 1022 |
+
if column in frame.columns:
|
| 1023 |
+
frame[column] = pd.to_numeric(frame[column], errors="coerce").map(format_rank_number)
|
| 1024 |
+
return frame
|
| 1025 |
+
|
| 1026 |
# ---------------------------------------------------------------------------
|
| 1027 |
# Forecast snapshot utilities
|
| 1028 |
# ---------------------------------------------------------------------------
|