SebAustin/amd-routing-agent-demo
AMD Routing Agent — Live Demo
This Space runs the judge-facing dashboard (routing_agent.webapp) for the Hybrid Token-Efficient Routing Agent built for AMD Hackathon ACT II, Track 1. Submit a prompt and watch it get routed through the Tier 0 (deterministic solver, zero tokens) → Tier 1 (cheapest adequate model) → Tier 2 (escalation) cascade, with live token/cost/savings reporting.
Main repository (source of truth, full README, PLAN, SECURITY audit): https://github.com/SebAustin/amd-routing-agent
This file is packaging only. See /Users/sebastienhenry/Documents/Hackathons/AMD Dev Hackathon/DEPLOYMENT.md in the main repo for how this Space is assembled and deployed.
How the orchestrator assembles this Space repo
This spaces/README.md and Dockerfile.spaces live in the main GitHub repo but are not used as-is by Hugging Face — the Space is a separate git repo that the orchestrator assembles from selected files out of the main repo. This keeps one source of truth (GitHub) while producing a Spaces-compatible layout (HF requires README.md + Dockerfile at the Space repo root).
Assembly steps (performed by the orchestrator, not by this file):
- Create/clone the Space repo
SebAustin/amd-routing-agent-demo. - Copy
Dockerfile.spacesfrom the main repo root → Space repo root, renamed to `Dockerfile`. - Copy
spaces/README.md(this file) → Space repo root, renamed to `README.md` (the YAML front-matter above is what HF parses for the Space card — title/emoji/sdk/app_port). - Copy
src/(therouting_agentpackage) → Space reposrc/. - Copy
evals/policies/(routing policy YAML only — not the fullevals/evalset/corpus orevals/reports/, to keep the Space image lean) → Space repoevals/policies/. - Copy
pyproject.toml,uv.lock, and the main repo'sREADME.md(the package's own readme, required by hatchling at build time — seeDockerfile.spacescomments) → Space repo root. - Set Space secrets (see main repo
DEPLOYMENT.mdfor the exact gated command — this step is never performed by copying a file; it is ahfCLI / web UI action against the Space's own secret store). - Push the assembled Space repo to the Hugging Face remote.
The harness/scoring Dockerfile at the main repo root is untouched by any of this — it stays the default docker run entry point for the scoring harness (ENTRYPOINT ["python", "-m", "routing_agent.adapter"]). Dockerfile.spaces is only ever used for the Space variant described above.
