PEFT
Safetensors
English
chess
lora
sarvam
fta-mark-1
FTA-Mark-1 / mark1 /levels.py
atal-ai's picture
FTA Mark-1 release: card and code
4a86fc3 verified
Raw History Blame Contribute Delete
2.22 kB
"""Mark-1's strength levels: how far it thinks ahead.
"match" is exactly the setting used in every recorded match (against GPT-6 Astra, Gemini 4 Argon and
Gemini 3.8 Flash): search_v2, top 12 moves, 12 replies looked at deeper. Its rating, about 1,824 on our
ladder, belongs to this level only.
The faster levels think ahead less, so they are weaker. They have NOT been rated. Never quote the match
rating for them.
Seconds a move: "match" was measured in the matches on an H200 (about a minute a move). Practice and Quick
were measured on an A100-80GB in the stranger test (see README.md).
"""
LEVELS = {
"match": {"name": "match", "label": "Match (as in the recorded matches)", "top_moves": 12, "deeper": 12,
"search": "search_v2", "rating": "about 1,824 on our ladder (95% range 1,635 to 2,012; R4T's official ladder, parts 1 to 3)",
"seconds_per_move_h200": "about 62 to 68 (measured in the matches)"},
"practice": {"name": "practice", "label": "Practice (faster, weaker than Match; rough rating in the card)", "top_moves": 8,
"deeper": 4, "search": "search_v2", "rating": "rough rating about 1,585 (95% range 1,368 to 1,807), 12 games (3.5 of 6 at 1400, 3 of 6 at 1700); our ladder, not FIDE",
"seconds_per_move_h200": "not measured (about 31 s on an A100-80GB)"},
"quick": {"name": "quick", "label": "Quick (fastest, weaker than Match, not yet rated)", "top_moves": 4,
"deeper": 0, "search": "search_v1", "rating": "not yet rated (weaker than Match)",
"seconds_per_move_h200": "not measured (about 5 s on an A100-80GB)"},
}
DEFAULT_LEVEL = "match"
ALIASES = {"Match": "match", "Practice": "practice", "Quick": "quick"}
def level_settings(level) -> dict:
"""The settings of a level by name ("match", "practice", "quick"; any letter case) or by its label."""
if level is None:
level = DEFAULT_LEVEL
key = str(level).strip()
for name, s in LEVELS.items():
if key.lower() == name or key == s["label"]:
return s
raise ValueError(f"Unknown level {level!r}. Use one of: {', '.join(LEVELS)}.")
def choices() -> list:
return [s["label"] for s in LEVELS.values()]