mzidan000 commited on
Commit
0d54892
·
verified ·
1 Parent(s): e7be4df

Upload folder using huggingface_hub

Browse files
index.html CHANGED
@@ -423,10 +423,12 @@
423
  <div class="badges">
424
  <span class="badge">🎨 Off-Brand</span>
425
  <span class="badge">🤖 Best Agent</span>
 
426
  <span class="badge">🟩 Nemotron</span>
427
  <span class="badge">🟢 Modal</span>
428
  <span class="badge">📡 Trace</span>
429
  </div>
 
430
  </div>
431
  <div class="sec">
432
  <h4>The match</h4>
 
423
  <div class="badges">
424
  <span class="badge">🎨 Off-Brand</span>
425
  <span class="badge">🤖 Best Agent</span>
426
+ <span class="badge">🏆 Bonus Quest Champion</span>
427
  <span class="badge">🟩 Nemotron</span>
428
  <span class="badge">🟢 Modal</span>
429
  <span class="badge">📡 Trace</span>
430
  </div>
431
+ <p class="nemotron-note">Built &amp; adversarially reviewed with <b>codex-review</b> &middot; <b>glm-5.1</b></p>
432
  </div>
433
  <div class="sec">
434
  <h4>The match</h4>
matchday/modal_spike.py CHANGED
@@ -99,7 +99,12 @@ app = modal.App("matchday-spike")
99
  volumes={HF_CACHE_PATH: HF_CACHE_VOL},
100
  secrets=[hf_secret],
101
  startup_timeout=120 * MINUTES, # time to download + load 60GB model
102
- scaledown_window=1800, # keep the replica warm 30 min after each request so an active demo stays hot (NOT min_containers — no 24/7 billing)
 
 
 
 
 
103
  )
104
  class Server:
105
  @modal.enter()
 
99
  volumes={HF_CACHE_PATH: HF_CACHE_VOL},
100
  secrets=[hf_secret],
101
  startup_timeout=120 * MINUTES, # time to download + load 60GB model
102
+ min_containers=1, # ALWAYS-ON for Best Demo: zero cold start, instant inference.
103
+ # COST (accepted for the demo window): A100-80GB ~$3.40/hr ->
104
+ # ~$80/day (~$2,400/mo). REVERT to scale-to-zero: delete this
105
+ # min_containers=1 line (scaledown_window below stays as-is).
106
+ # Re-deploy after any change: modal deploy matchday/modal_spike.py
107
+ scaledown_window=1800, # governs autoscaling above the always-on 1 replica
108
  )
109
  class Server:
110
  @modal.enter()
matchday/publish_agent_trace.py CHANGED
@@ -1,8 +1,8 @@
1
  """
2
  MatchDay — publish an agent trace to the Hugging Face Hub.
3
 
4
- Build Small "Sharing is Caring" badge: share the agent's tool-call trace
5
- (decisions + results) on the Hub so others can learn from it.
6
 
7
  Usage:
8
  python publish_agent_trace.py <trace.jsonl> <repo-id> [--repo-type dataset]
 
1
  """
2
  MatchDay — publish an agent trace to the Hugging Face Hub.
3
 
4
+ Share the agent's tool-call trace (decisions + results) on the Hub so others
5
+ can learn from it a reusable artifact for the Build Small hackathon.
6
 
7
  Usage:
8
  python publish_agent_trace.py <trace.jsonl> <repo-id> [--repo-type dataset]
matchday/record_trace.py CHANGED
@@ -1,4 +1,4 @@
1
- """Record a MatchDay agent trace (Build Small "Sharing is Caring" badge).
2
 
3
  Runs one agentic trip-planning turn through the SAME bounded agent loop the
4
  deployed Space uses — ``matchday.agent_loop.run_agent_loop`` — and writes a
 
1
+ """Record a MatchDay agent trace a reusable, learnable artifact.
2
 
3
  Runs one agentic trip-planning turn through the SAME bounded agent loop the
4
  deployed Space uses — ``matchday.agent_loop.run_agent_loop`` — and writes a
matchday/traces/session_002.jsonl CHANGED
@@ -1,4 +1,6 @@
1
- {"ts": "2026-06-14T23:10:27.843275+00:00", "event": "user", "content": "I want to fly from Toronto to see Brazil vs Germany, premium, 2 adults"}
2
- {"ts": "2026-06-14T23:10:27.843852+00:00", "event": "agent_path", "entry": "run_agent_loop", "note": "bounded agent loop the deployed Space uses: understand -> ground/clarify -> build"}
3
- {"ts": "2026-06-14T23:10:29.126410+00:00", "event": "agent_round", "attempt": 0, "outcome": "final_answer", "tool": null, "reason": null, "text": "Flying from Toronto (YYZ) to see Brazil vs Germany match at BC Place, premium budget tier, for 2 adults\u2014what travel dates are you considering?"}
4
- {"ts": "2026-06-14T23:10:29.126427+00:00", "event": "agent_answer", "text": "Flying from Toronto (YYZ) to see Brazil vs Germany match at BC Place, premium budget tier, for 2 adults\u2014what travel dates are you considering?"}
 
 
 
1
+ {"ts": "2026-06-15T21:53:27.534927+00:00", "event": "user", "content": "Flying from Montreal, want Canada vs Qatar, mid-range, June 26-29, just me"}
2
+ {"ts": "2026-06-15T21:53:27.535499+00:00", "event": "agent_path", "entry": "run_agent_loop", "note": "bounded agent loop the deployed Space uses: understand -> ground/clarify -> build"}
3
+ {"ts": "2026-06-15T21:53:30.651325+00:00", "event": "agent_round", "attempt": 0, "outcome": "tool_called", "tool": "build_trip_packages", "reason": null, "text": ""}
4
+ {"ts": "2026-06-15T21:53:30.651599+00:00", "event": "tool_result", "tool": "build_trip_packages", "trip": "YUL -> Vancouver, 2026-06-26 to 2026-06-29, mid_range budget, 1 traveler, watching Canada vs Qatar on 2026-06-26.", "status": "complete", "degradation": ["Photos unavailable"], "packages": [{"label": "Safest Arrival", "total_cost_cad": 1175.0, "flight": "WestJet WS 859 (lands 08:15)", "hotel": "Moda Hotel", "provenance": {"flight": "serpapi", "hotel": "serpapi"}}, {"label": "Closest to Stadium", "total_cost_cad": 1302.0, "flight": "WestJet WS 859 (lands 08:15)", "hotel": "Quality Inn & Suites Downtown Vancouver", "provenance": {"flight": "serpapi", "hotel": "serpapi"}}, {"label": "Cheapest", "total_cost_cad": 1090.0, "flight": "WestJet WS 859 (lands 08:15)", "hotel": "Hotel At The Waldorf", "provenance": {"flight": "serpapi", "hotel": "serpapi"}}], "compact": "STATUS: complete | 1 degradation(s) | 3 package(s) scored\n DEGRADATION: Photos unavailable\n#1 Safest Arrival | $1,175.00 CAD | Flight WestJet WS 859 lands 08:15 from YUL (source=serpapi) | Hotel Moda Hotel 0.354km to BC Place 3.8\u2605 (source=serpapi) | +6.8h buffer | 4 min walk | rain risk 3%\n#2 Closest to Stadium | $1,302.00 CAD | Flight WestJet WS 859 lands 08:15 from YUL (source=serpapi) | Hotel Quality Inn & Suites Downtown Vancouver 0.774km to BC Place 4.4\u2605 (source=serpapi) | +6.8h buffer | 9 min walk | rain risk 3%\n#3 Cheapest | $1,090.00 CAD | Flight WestJet WS 859 lands 08:15 from YUL (source=serpapi) | Hotel Hotel At The Waldorf 3.367km to BC Place 3.6\u2605 (source=serpapi) | +6.8h buffer | 40 min walk | rain risk 3%"}
5
+ {"ts": "2026-06-15T21:53:30.651697+00:00", "event": "self_check", "status": "all_clear", "passed": "5/5", "checks": [{"name": "match grounding", "status": "pass", "detail": "verified against the 2026 fixture table"}, {"name": "price range", "status": "pass", "detail": "CA$1,090\u20131,302, within market band"}, {"name": "arrival before kickoff", "status": "pass", "detail": "positive arrival buffer on every package"}, {"name": "stay brackets match", "status": "pass", "detail": "match day inside the stay"}, {"name": "request fields", "status": "pass", "detail": "origin YUL \u00b7 1 traveler(s)"}]}
6
+ {"ts": "2026-06-15T21:53:32.912342+00:00", "event": "nemotron_explanation", "text": "**#1 Safest Arrival** \u2013 $1,175.00 CAD | Flight: WestJet WS\u202f859 arriving 08:15 | Hotel: Moda Hotel, 0.354\u202fkm to BC Place (4.8\u2605) | Weather: rain risk 3% (example) \n**#2 Closest to Stadium** \u2013 $1,302.00 CAD | Flight: WestJet WS\u202f859 arriving 08:15 | Hotel: Quality Inn & Suites Downtown Vancouver, 0.774\u202fkm to BC Place (4.4\u2605) | Weather: rain risk 3% (example) \n**#3 Cheapest** \u2013 $1,090.00 CAD | Flight: WestJet WS\u202f859 arriving 08:15 | Hotel: Hotel At The Waldorf, 3.367\u202fkm to BC Place (3.6\u2605) | Weather: rain risk 3% (example) \n\n**Recommendation:** Choose the Safest Arrival package for the shortest walk to the stadium and solid mid\u2011range comfort."}