Run this model with HF Jobs

Run SamJoshua/stacy on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/SamJoshua/stacy. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/SamJoshua/stacy on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/SamJoshua/stacy. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/SamJoshua/stacy. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
stacy / agentbench.md
SamJoshua's picture
release qwen2.5-coder-1.5b-coding-agent
2832cad verified
|
Raw History Blame Contribute Delete
2.92 kB

AgentBench — frozen coding-agent evaluation

AgentBench measures multi-step tool use (read/write files, run tests in a sandbox, structured JSON actions) on tasks with hidden graders. It complements single-shot HumanEval+/MBPP+ in scripts/enterprise/eval.py.

Full audit and experiment plan: docs/enterprise_coding_agent.md.

Suites

Suite File Tasks Use
dev scripts/enterprise/agentbench/suites/dev_v1.json 46 Development, ablations, fast iteration
test scripts/enterprise/agentbench/suites/test_v1.json 94 Held-out — do not train on these families

Validate integrity before any run:

cd scripts/enterprise
PYTHONPATH=. python -m agentbench.selftest

Variants (same tasks, same model)

Variant Meaning
notools Full files in prompt, single completion — no execution
old Legacy AgentHarness
new CodingHarness (repomap, autoverify, verify gate on final(done))

Tune flags on new, e.g. new:gate=0,repomap=0.

Run benchmark

From scripts/enterprise with vLLM available:

cd scripts/enterprise
source ../../.venv/bin/activate
pytest ../../tests/enterprise/test_sandbox.py ../../tests/enterprise/test_agent_security.py

PYTHONPATH=. python -m agentbench.runner \
  --model /models/ckpts/grpo_instruct/final \
  --name baseline_instruct \
  --suite test \
  --variants notools,old,new \
  --concurrency 2 --gpu-mem 0.28 --verbose

Outputs: /models/runs/agentbench/<name>__<variant>__<suite>.json with per-task rows and summary metrics (success, false_completion, hidden_pass, tool_call_validity, security_violations, …).

Recommended checkpoints

Checkpoint Role
/models/ckpts/grpo_instruct/final Best single-shot coding; agent baseline
/models/ckpts/agent_A/final Agent trajectory SFT on oracle data

Hub ids (private): see ecosystem/models.manifest.json.

Oracle data & agent SFT

cd scripts/enterprise
PYTHONPATH=. python -m agentbench.gen_data oracle --n 700 --seed 1 --out /models/agent_data/v1
PYTHONPATH=. python -m agentbench.build_sft \
  --inputs accepted_oracle.jsonl \
  --components core,blocked,recovery \
  --out /models/agent_data/v1/sft_B
cd ../..
python scripts/enterprise/sft.py --config configs/agentbench/sft_agent.json

Security

  • Model code runs under rewards/sandbox.py (bwrap, no network, seccomp).
  • Regression: tests/enterprise/test_agent_security.py, tests/enterprise/test_sandbox.py.

Publishing results

Include agentbench JSON summaries in your model card or link to /models/runs/agentbench/ paths in REPORT.md. The packaging step (package_and_publish.py) already ships HumanEval+/MBPP+ and security eval JSON; extend the card manually when agent numbers stabilize on test_v1.