Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -6,8 +6,8 @@ import time
|
|
| 6 |
with open("results.json") as f:
|
| 7 |
data = json.load(f)
|
| 8 |
|
| 9 |
-
def simulate_epochs(
|
| 10 |
-
results = data[
|
| 11 |
header = "| Epoch | LIAM (RFT) | Adam | Lion | SGR |\n|-------|-------------|------|------|-----|\n"
|
| 12 |
table = header
|
| 13 |
for i in range(len(results["epochs"])):
|
|
@@ -22,10 +22,13 @@ def simulate_epochs(dataset):
|
|
| 22 |
|
| 23 |
demo = gr.Interface(
|
| 24 |
fn=simulate_epochs,
|
| 25 |
-
inputs=gr.Dropdown(
|
|
|
|
|
|
|
|
|
|
| 26 |
outputs=gr.Markdown(),
|
| 27 |
title="RFT Optimizer Showdown",
|
| 28 |
-
description="Live epoch simulation comparing DCLR++ (LIAM RFT) vs. Adam, Lion, and SGR. All results sealed. No code exposed.",
|
| 29 |
live=True
|
| 30 |
)
|
| 31 |
|
|
|
|
| 6 |
with open("results.json") as f:
|
| 7 |
data = json.load(f)
|
| 8 |
|
| 9 |
+
def simulate_epochs(difficulty):
|
| 10 |
+
results = data[difficulty]
|
| 11 |
header = "| Epoch | LIAM (RFT) | Adam | Lion | SGR |\n|-------|-------------|------|------|-----|\n"
|
| 12 |
table = header
|
| 13 |
for i in range(len(results["epochs"])):
|
|
|
|
| 22 |
|
| 23 |
demo = gr.Interface(
|
| 24 |
fn=simulate_epochs,
|
| 25 |
+
inputs=gr.Dropdown(
|
| 26 |
+
choices=list(data.keys()),
|
| 27 |
+
label="Select Difficulty Level"
|
| 28 |
+
),
|
| 29 |
outputs=gr.Markdown(),
|
| 30 |
title="RFT Optimizer Showdown",
|
| 31 |
+
description="Live epoch simulation comparing DCLR++ (LIAM RFT) vs. Adam, Lion, and SGR across difficulty tiers. All results sealed. No optimizer code exposed.",
|
| 32 |
live=True
|
| 33 |
)
|
| 34 |
|