Skip to content

Instantly share code, notes, and snippets.

View burtenshaw's full-sized avatar

burtenshaw

View GitHub Profile
@burtenshaw
burtenshaw / openenv-examples-automation.md
Created July 2, 2026 08:36
OpenEnv examples automation prompt

Automation: OpenEnv Examples Automation ID: openenv-examples Automation memory: $CODEX_HOME/automations/openenv-examples/memory.md

Run and expand on the examples to test and improve them.

Take the most recent three examples from the examples directory that have not been run based on memory and run them on a real-world workload.

TASK:

  • Select three tasks, a mixture of training and inference, that you haven't run recently.
@burtenshaw
burtenshaw / post-training-agent-experiments.md
Last active June 30, 2026 13:40
Post-training agent experiments automation prompt

Automation: Post-training agent experiments Automation ID: post-training-agent-experiments Automation memory: $CODEX_HOME/automations/post-training-agent-experiments/memory.md Last run: 2026-06-23T05:01:48.919Z (1782190908919)

Run the Training Agents Terminal-Bench loop.

GOAL Train an approximately 2B parameter open model to exceed 40 on Terminal-Bench. If full Terminal-Bench scoring is blocked, use the strongest available proxy gate, such as TB Lite, Harbor, Inspect, or an OpenEnv tbench2-style held-out subset, but label it as a proxy and do not claim a full benchmark win.

@burtenshaw
burtenshaw / book_flight_lfm25_hf_sandbox.py
Last active June 29, 2026 16:46
LFM2.5-230M BrowserGym BookFlight reward improvement via HF Sandbox
#!/usr/bin/env python3
# /// script
# requires-python = ">=3.10,<3.13"
# dependencies = [
# "openenv @ git+https://github.com/burtenshaw/OpenEnv.git@ben/hf-sandbox-provider",
# "openenv-browsergym-env @ git+https://huggingface.co/spaces/openenv/browsergym_env",
# "huggingface_hub @ git+https://github.com/huggingface/huggingface_hub.git@ben/sandbox-pool-serve",
# "torch",
# "transformers>=5.0.0",
# "peft",
@burtenshaw
burtenshaw / train_sdpo_pi_mono_minimal.py
Last active June 6, 2026 19:50
SDPO self-distillation examples for badlogicgames/pi-mono: full HF Jobs + Trackio script and minimal educational script
# /// script
# dependencies = [
# "datasets>=3.0.0",
# "peft>=0.13.0",
# "torch",
# "transformers",
# "trl>=1.5.0",
# ]
# ///
@burtenshaw
burtenshaw / nano_harness.py
Created February 20, 2026 14:36
Nano Harness: Agent Harness in 223 lines
import json
import os
import re
import shlex
import subprocess
import sys
import time
import traceback
import urllib.error
import urllib.request
@burtenshaw
burtenshaw / test_concurrency.py
Created December 8, 2025 10:09
test concurrency on openenv
#!/usr/bin/env python3
"""
Test script for benchmark environment concurrency.
Run the server first:
cd benchmark && uvicorn server.app:app --reload --port 8000
Then run this script:
python test_concurrency.py --requests 10 --wait 1.0
"""
# /// script
# requires-python = ">=3.13"
# dependencies = [
# "huggingface-hub>=1.1.4",
# "python-dotenv>=1.2.1",
# "pyyaml>=6.0.3",
# "requests>=2.32.5",
# ]
# ///
@burtenshaw
burtenshaw / openenv_browsergym_grpo.py
Last active November 13, 2025 20:49
OpenEnv + TRL on BrowserGym
#!/usr/bin/env python3
"""
GRPO training for BrowserGym tasks using TRL's `GRPOTrainer` and the OpenEnv HTTP
environment interface.
"""
from __future__ import annotations
from datetime import datetime
import sys
#!/usr/bin/env python3
#
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "git+https://github.com/huggingface/trl.git#egg=trl[vllm]",
# "trackio==0.8.1",
# ///
"""
#!/usr/bin/env python3
#
# /// script
# requires-python = ">=3.12"
# dependencies = [
# "git+https://github.com/huggingface/trl.git#egg=trl[vllm]",
# "trackio==0.8.1",
# ///
"""