Spaces:
Running
Running
Rename to SLM Tetris Arena
Browse files
app.py
CHANGED
|
@@ -1,4 +1,4 @@
|
|
| 1 |
-
"""
|
| 2 |
import os
|
| 3 |
|
| 4 |
# Keep the write token out of the environment before any model code runs:
|
|
@@ -315,7 +315,7 @@ def refresh_leaderboard(protocol):
|
|
| 315 |
|
| 316 |
INTRO = f"""
|
| 317 |
<div class="ah-heading"><div><p class="ah-eyebrow">SMALL MODELS. ZERO-SHOT TETRIS.</p>
|
| 318 |
-
<h1>
|
| 319 |
<p class="ah-intro">Decoder-only language models (≤ {short_params(MAX_PARAMS)} parameters, custom architectures welcome) play Tetris
|
| 320 |
zero-shot: no fine-tuning, no game data, only what they learned from pre-training on text. Every player gets the same
|
| 321 |
piece sequence, and ranked matches update a public Elo leaderboard.</p></div>
|
|
@@ -364,7 +364,7 @@ Results and every match (seed, commit SHA of each model, scores) are published i
|
|
| 364 |
[`{RESULTS_REPO}`](https://huggingface.co/datasets/{RESULTS_REPO}).
|
| 365 |
"""
|
| 366 |
|
| 367 |
-
with gr.Blocks(title="
|
| 368 |
gr.HTML(INTRO, padding=False)
|
| 369 |
if not STORE.persistent:
|
| 370 |
gr.HTML('<div class="ah-warn">⚠️ Results are not being saved: add an <code>HF_TOKEN</code> secret with write access '
|
|
|
|
| 1 |
+
"""SLM Tetris Arena — decoder-only LMs play Tetris zero-shot and earn Elo."""
|
| 2 |
import os
|
| 3 |
|
| 4 |
# Keep the write token out of the environment before any model code runs:
|
|
|
|
| 315 |
|
| 316 |
INTRO = f"""
|
| 317 |
<div class="ah-heading"><div><p class="ah-eyebrow">SMALL MODELS. ZERO-SHOT TETRIS.</p>
|
| 318 |
+
<h1>SLM Tetris Arena<span class="ah-accent">.</span></h1>
|
| 319 |
<p class="ah-intro">Decoder-only language models (≤ {short_params(MAX_PARAMS)} parameters, custom architectures welcome) play Tetris
|
| 320 |
zero-shot: no fine-tuning, no game data, only what they learned from pre-training on text. Every player gets the same
|
| 321 |
piece sequence, and ranked matches update a public Elo leaderboard.</p></div>
|
|
|
|
| 364 |
[`{RESULTS_REPO}`](https://huggingface.co/datasets/{RESULTS_REPO}).
|
| 365 |
"""
|
| 366 |
|
| 367 |
+
with gr.Blocks(title="SLM Tetris Arena") as demo:
|
| 368 |
gr.HTML(INTRO, padding=False)
|
| 369 |
if not STORE.persistent:
|
| 370 |
gr.HTML('<div class="ah-warn">⚠️ Results are not being saved: add an <code>HF_TOKEN</code> secret with write access '
|