Spaces:
Running on Zero
Running on Zero
Download benchmark/models.py from muratcanlaloglu/TurkishDecisionBenchmark: direct link, hf CLI and curl.
- Browser
- Download file 1.17 kB
-
https://huggingface.co/spaces/muratcanlaloglu/TurkishDecisionBenchmark/resolve/main/benchmark/models.py
- Command line
-
hf download hf://spaces/muratcanlaloglu/TurkishDecisionBenchmark/benchmark/models.py
-
curl -L -o models.py https://huggingface.co/spaces/muratcanlaloglu/TurkishDecisionBenchmark/resolve/main/benchmark/models.py
1.17 kB
| import os | |
| from .dataset import ROOT | |
| PRESETS = { | |
| "liquid-d1-free": ("liquid", "d1:free"), | |
| "jev-1.13": ("openrouter", "typesafe/jev-1.13"), | |
| "kev-4b": ("openrouter", "jaredpalmer/kev-4b"), | |
| "solar-decide": ("openrouter", "upstage/solar-decide"), | |
| "laya-multilingual": ("laya", "convaiinnovations/laya-multilingual"), | |
| "julia-1": ("julia", "SupersonicLabs/Julia-1"), | |
| "baseline-majority": ("baseline", "majority"), | |
| "baseline-overlap": ("baseline", "overlap"), | |
| "baseline-last-clause": ("baseline", "last_clause"), | |
| "baseline-first-clause": ("baseline", "first_clause"), | |
| } | |
| def load_dotenv(path=ROOT / ".env"): | |
| """Minimal KEY=VALUE loader; real environment variables take precedence.""" | |
| if not path.exists(): | |
| return | |
| for line in path.read_text(encoding="utf-8").splitlines(): | |
| line = line.strip() | |
| if not line or line.startswith("#") or "=" not in line: | |
| continue | |
| key, value = line.split("=", 1) | |
| key = key.strip().removeprefix("export ").strip() | |
| value = value.strip().strip("'\"") | |
| if key and value and key not in os.environ: | |
| os.environ[key] = value | |