Spaces:
Sleeping
Sleeping
File size: 17,805 Bytes
c57da4f | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 | <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>AI Logistics Coordinator โ OpenEnv Hackathon 2026</title>
<style>
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;600;700;900&family=JetBrains+Mono:wght@400;600&display=swap');
:root {
--bg: #0d1117; --surface: #161b22; --border: #30363d;
--text: #e6edf3; --muted: #8b949e; --green: #3fb950;
--red: #f85149; --blue: #58a6ff; --orange: #f0883e;
--accent: #238636;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; background: var(--bg); font-family: 'Inter', sans-serif; color: var(--text); overflow: hidden; }
.deck { width: 100%; height: 100vh; position: relative; }
.slide {
display: none; position: absolute; inset: 0;
flex-direction: column; justify-content: center; align-items: center;
padding: 60px 80px; text-align: center;
background: radial-gradient(ellipse at 50% 0%, #161b22 0%, #0d1117 70%);
}
.slide.active { display: flex; }
h1 { font-size: 2.8rem; font-weight: 900; line-height: 1.15; }
h2 { font-size: 2rem; font-weight: 700; margin-bottom: 1rem; }
h3 { font-size: 1.3rem; font-weight: 600; color: var(--blue); margin-bottom: 0.5rem; }
p { font-size: 1.1rem; line-height: 1.7; color: var(--muted); max-width: 800px; }
.tag {
display: inline-block; padding: 4px 12px; border-radius: 20px;
font-size: 0.8rem; font-weight: 600; margin: 4px;
background: rgba(88,166,255,0.1); border: 1px solid var(--blue); color: var(--blue);
}
.tag.green { background: rgba(63,185,80,0.1); border-color: var(--green); color: var(--green); }
.tag.orange { background: rgba(240,136,62,0.1); border-color: var(--orange); color: var(--orange); }
.highlight {
font-size: 4rem; font-weight: 900;
background: linear-gradient(135deg, var(--green), var(--blue));
-webkit-background-clip: text; -webkit-text-fill-color: transparent;
}
.sub { font-size: 1rem; color: var(--muted); margin-top: 0.25rem; }
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; width: 100%; max-width: 1000px; margin-top: 1.5rem; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card {
background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
padding: 20px; text-align: left;
}
.card .icon { font-size: 1.8rem; margin-bottom: 8px; }
.card h4 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.card p { font-size: 0.85rem; color: var(--muted); max-width: none; }
.metric { display: flex; flex-direction: column; align-items: center; padding: 24px 12px; }
.metric .num { font-size: 2.4rem; font-weight: 900; color: var(--green); }
.metric .label { font-size: 0.8rem; color: var(--muted); text-align: center; margin-top: 4px; }
.badge {
display: inline-block; padding: 6px 16px; border-radius: 6px;
background: var(--accent); color: #fff; font-weight: 700;
font-size: 0.9rem; margin: 6px;
}
.badge.red { background: #6e1d1a; }
.badge.blue { background: #0c2d6b; }
table { width: 100%; border-collapse: collapse; font-size: 0.9rem; margin-top: 1rem; }
th { background: var(--surface); color: var(--blue); padding: 10px 14px; text-align: left; border-bottom: 1px solid var(--border); }
td { padding: 10px 14px; border-bottom: 1px solid var(--border); color: var(--muted); }
td strong { color: var(--text); }
.reward-bar { display: flex; align-items: center; gap: 12px; margin: 6px 0; }
.reward-bar .label { width: 160px; text-align: right; font-size: 0.85rem; color: var(--muted); flex-shrink: 0; }
.reward-bar .bar-wrap { flex: 1; background: var(--border); border-radius: 4px; height: 16px; }
.reward-bar .bar { height: 16px; border-radius: 4px; transition: width 0.6s ease; }
.reward-bar .val { font-size: 0.85rem; font-weight: 700; flex-shrink: 0; width: 55px; }
.code {
font-family: 'JetBrains Mono', monospace; font-size: 0.85rem;
background: var(--surface); border: 1px solid var(--border);
border-radius: 8px; padding: 16px; text-align: left;
color: var(--green); width: 100%; max-width: 700px; margin-top: 1rem;
}
.code .comment { color: var(--muted); }
.penalty { color: var(--red); font-weight: 700; }
.bonus { color: var(--green); font-weight: 700; }
/* Nav */
.nav {
position: fixed; bottom: 30px; left: 50%; transform: translateX(-50%);
display: flex; gap: 12px; align-items: center; z-index: 100;
background: rgba(22,27,34,0.9); border: 1px solid var(--border);
border-radius: 40px; padding: 10px 20px; backdrop-filter: blur(10px);
}
.nav button {
background: none; border: none; color: var(--muted); cursor: pointer;
font-size: 1.1rem; padding: 4px 10px; border-radius: 20px; transition: all 0.2s;
}
.nav button:hover { background: var(--surface); color: var(--text); }
.nav .counter { color: var(--muted); font-size: 0.85rem; min-width: 50px; text-align: center; }
.slide-num {
position: fixed; top: 20px; right: 30px;
font-size: 0.8rem; color: var(--border);
}
.logo { font-size: 3.5rem; margin-bottom: 16px; }
.subtitle { font-size: 1.2rem; color: var(--muted); margin-top: 12px; }
.spacer { margin-top: 1.5rem; }
.link { color: var(--blue); text-decoration: none; font-size: 0.85rem; }
.link:hover { text-decoration: underline; }
/* Animate in */
.slide.active .card, .slide.active .metric {
animation: fadeUp 0.4s ease both;
}
.slide.active .card:nth-child(2) { animation-delay: 0.08s; }
.slide.active .card:nth-child(3) { animation-delay: 0.16s; }
.slide.active .card:nth-child(4) { animation-delay: 0.24s; }
@keyframes fadeUp {
from { opacity: 0; transform: translateY(20px); }
to { opacity: 1; transform: translateY(0); }
}
.arrow { font-size: 1.4rem; color: var(--border); margin: 0 8px; }
.flow { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; margin-top: 1.5rem; gap: 4px; }
.flow-step {
background: var(--surface); border: 1px solid var(--border); border-radius: 8px;
padding: 10px 18px; font-size: 0.9rem; font-weight: 600;
}
</style>
</head>
<body>
<div class="deck">
<!-- SLIDE 1: TITLE -->
<div class="slide active">
<div class="logo">๐</div>
<h1>AI Logistics Coordinator</h1>
<p class="subtitle">Teaching an LLM to manage freight crises using GRPO reinforcement learning</p>
<div class="spacer"></div>
<div>
<span class="tag green">OpenEnv Compatible</span>
<span class="tag">GRPO + TRL + Unsloth</span>
<span class="tag orange">Qwen2.5-1.5B</span>
<span class="tag">Meta PyTorch Hackathon 2026</span>
</div>
<div class="spacer"></div>
<p>
<a class="link" href="https://huggingface.co/spaces/Leavin1611/logistics-hackathon-env">๐ค Live Space</a> ยท
<a class="link" href="https://huggingface.co/Leavin1611/logistics-hackathon-model">๐ง Trained Model</a> ยท
<a class="link" href="https://colab.research.google.com/drive/1fRfheRZd1tffKjXKZkW72ffl9JPxDpL8">๐ Colab Notebook</a>
</p>
</div>
<!-- SLIDE 2: THE PROBLEM -->
<div class="slide">
<h2>It's 3 AM. A port strike just shut down Mumbai.</h2>
<p>COVID vaccines are stranded on Route R1. Election ballots are stuck at Delhi. โน1.8 crore of server hardware is 7 hours late. A human dispatcher needs 30 minutes to triage this. We built an agent that does it in seconds.</p>
<div class="grid grid-2" style="margin-top: 2rem; max-width: 800px;">
<div class="card">
<div class="icon">โ</div>
<h4>Current Systems</h4>
<p>Rule-based optimizers. Great at routine scheduling. Fail completely when disruptions cascade. Cannot reason, cannot prioritize, cannot communicate.</p>
</div>
<div class="card">
<div class="icon">โ
</div>
<h4>Our Agent</h4>
<p>Reasons about network congestion, triages by urgency, reroutes strategically, and sends empathetic messages to customers โ all in a single turn.</p>
</div>
</div>
</div>
<!-- SLIDE 3: ENVIRONMENT -->
<div class="slide">
<h2>๐ The Environment</h2>
<p>A real-time Indian freight network crisis simulator. The agent plays a centralized logistics coordinator managing cascading disruptions across JNPT, Delhi, and Mundra.</p>
<div class="grid" style="margin-top: 1.5rem;">
<div class="card">
<div class="icon">๐๏ธ</div>
<h4>What Agent Sees</h4>
<p>Shipment states, route congestion (0โ100%), active disruptions, SLA time remaining, carrier availability</p>
</div>
<div class="card">
<div class="icon">๐ฎ</div>
<h4>What Agent Does</h4>
<p><code>get_network_status</code> ยท <code>reroute_shipment</code> ยท <code>set_priority</code> ยท <code>communicate_eta</code> ยท <code>end_turn</code></p>
</div>
<div class="card">
<div class="icon">๐</div>
<h4>Three Task Tiers</h4>
<p>EASY (2 ships, 1 disruption) โ MEDIUM (4 ships, 3 disruptions) โ HARD (7 ships, 4 failures)</p>
</div>
</div>
</div>
<!-- SLIDE 4: WHAT MAKES IT NOVEL -->
<div class="slide">
<h2>๐ฌ What Makes This Novel</h2>
<div class="grid grid-2" style="max-width: 900px; margin-top: 1.5rem;">
<div class="card">
<div class="icon">๐</div>
<h4>Multi-Agent Pressure</h4>
<p>Background agents compete for the same limited route capacity every turn. The agent must model the network โ not just react to individual shipments.</p>
</div>
<div class="card">
<div class="icon">โณ</div>
<h4>Long-Horizon Planning</h4>
<p>5โ7 turn episodes. Early decisions cascade. Saving the pharmaceutical shipment on turn 1 changes which routes are available on turn 4.</p>
</div>
<div class="card">
<div class="icon">๐ง </div>
<h4>World Modeling Required</h4>
<p>Partially observable. The agent must call tools to see the network. It cannot assume anything โ it must build its own world model each turn.</p>
</div>
<div class="card">
<div class="icon">๐ฌ</div>
<h4>NLP-Graded Communication</h4>
<p>ETA messages are scored for empathy, specificity, and cause explanation. A unique test of "soft skills" that no other logistics env tests.</p>
</div>
</div>
</div>
<!-- SLIDE 5: REWARD DESIGN -->
<div class="slide">
<h2>๐ฏ Anti-Gameable Reward Design</h2>
<p>Three independent reward functions. Each has explicit negative penalties to prevent exploitation.</p>
<div class="grid" style="margin-top: 1.5rem;">
<div class="card">
<h4>๐๏ธ Structure Reward</h4>
<p><span class="bonus">+0.4</span> Start with status check<br><span class="bonus">+0.3</span> End with end_turn<br><span class="penalty">-0.5</span> Duplicate end_turn (spam)<br><span class="penalty">-0.3</span> Repeated status calls</p>
</div>
<div class="card">
<h4>๐ฃ๏ธ Routing Reward</h4>
<p><span class="bonus">+0.9</span> Clear route chosen<br><span class="bonus">+0.5</span> All ships rerouted<br><span class="penalty">-0.6</span> Congested route<br><span class="penalty">-0.8</span> Empty route ID (loophole)</p>
</div>
<div class="card">
<h4>๐ข Communication Reward</h4>
<p><span class="bonus">+0.4</span> Message to delayed ship<br><span class="bonus">+0.2</span> Empathy keywords<br><span class="bonus">+0.1</span> Specific ETA given<br><span class="penalty">-0.3</span> Duplicate message (spam)</p>
</div>
</div>
</div>
<!-- SLIDE 6: TRAINING PIPELINE -->
<div class="slide">
<h2>๐๏ธ 4-Phase GRPO Curriculum</h2>
<p>Group Relative Policy Optimization โ the same algorithm behind DeepSeek-R1 โ on a free Colab T4 GPU.</p>
<div class="flow">
<div class="flow-step">๐ข Phase 1<br><small>TASK-EASY<br>lr=2e-5</small></div>
<span class="arrow">โ</span>
<div class="flow-step">๐ก Phase 2<br><small>TASK-MEDIUM<br>lr=1e-5</small></div>
<span class="arrow">โ</span>
<div class="flow-step">๐ฅ Phase 3<br><small>Mixed Hardening<br>6 rollouts</small></div>
<span class="arrow">โ</span>
<div class="flow-step">๐จ Phase 4<br><small>Correction Cycle<br>Loophole patch</small></div>
</div>
<div class="grid grid-4" style="margin-top: 1.5rem; max-width: 900px;">
<div class="metric"><div class="num">1.5B</div><div class="label">Model size<br>(Qwen2.5)</div></div>
<div class="metric"><div class="num">4-bit</div><div class="label">QLoRA quantization<br>(Unsloth)</div></div>
<div class="metric"><div class="num">150+</div><div class="label">Training<br>episodes</div></div>
<div class="metric"><div class="num">Free</div><div class="label">Colab T4<br>GPU</div></div>
</div>
</div>
<!-- SLIDE 7: RESULTS -->
<div class="slide">
<h2>๐ Results: Observable Evidence</h2>
<div class="highlight">+327%</div>
<div class="sub">Live environment reward improvement (0.18 baseline โ 0.7683 trained)</div>
<div style="width: 100%; max-width: 700px; margin-top: 2rem;">
<div class="reward-bar">
<div class="label">Untrained Baseline</div>
<div class="bar-wrap"><div class="bar" style="width:23.4%;background:var(--red)"></div></div>
<div class="val" style="color:var(--red)">0.18</div>
</div>
<div class="reward-bar">
<div class="label">After Phase 1 (Easy)</div>
<div class="bar-wrap"><div class="bar" style="width:54.7%;background:var(--muted)"></div></div>
<div class="val" style="color:var(--muted)">0.42</div>
</div>
<div class="reward-bar">
<div class="label">After Phase 2 (Medium)</div>
<div class="bar-wrap"><div class="bar" style="width:79.4%;background:var(--orange)"></div></div>
<div class="val" style="color:var(--orange)">0.61</div>
</div>
<div class="reward-bar">
<div class="label">Final (lora-final-perfect)</div>
<div class="bar-wrap"><div class="bar" style="width:100%;background:var(--green)"></div></div>
<div class="val" style="color:var(--green)">0.7683</div>
</div>
</div>
</div>
<!-- SLIDE 8: WHAT THE AGENT LEARNED -->
<div class="slide">
<h2>๐ค What the Agent Actually Learned</h2>
<div class="grid grid-2" style="max-width: 900px; margin-top: 1.5rem;">
<div class="card">
<div class="icon">๐</div>
<h4>World Modeling</h4>
<p>Always calls <code>get_network_status</code> first. Builds a mental model of the entire network before acting โ not guessing.</p>
</div>
<div class="card">
<div class="icon">๐ฃ๏ธ</div>
<h4>Strategic Routing</h4>
<p>Checks route congestion before rerouting. Avoids the -0.6 penalty for choosing overloaded routes. 3+ reroutes per episode vs 1 before training.</p>
</div>
<div class="card">
<div class="icon">๐ฌ</div>
<h4>Empathetic Communication</h4>
<p>Sends well-formed apologies with specific ETAs and causes. "We sincerely apologise โ your shipment will arrive by 6PM due to port congestion."</p>
</div>
<div class="card">
<div class="icon">๐ซ</div>
<h4>Stopped Hacking</h4>
<p>Stopped spamming messages and empty routes after Phase 4 correction. Learned that strategic play earns more reward than loopholes.</p>
</div>
</div>
</div>
<!-- SLIDE 9: LINKS & RESOURCES -->
<div class="slide">
<h2>๐ All Submission Links</h2>
<table style="max-width: 700px; margin-top: 1rem;">
<tr><th>Resource</th><th>Link</th></tr>
<tr><td>๐ค Live HF Space</td><td><a class="link" href="https://huggingface.co/spaces/Leavin1611/logistics-hackathon-env">spaces/Leavin1611/logistics-hackathon-env</a></td></tr>
<tr><td>๐ง Trained Model</td><td><a class="link" href="https://huggingface.co/Leavin1611/logistics-hackathon-model">Leavin1611/logistics-hackathon-model</a></td></tr>
<tr><td>๐ Training Notebook</td><td><a class="link" href="https://colab.research.google.com/drive/1fRfheRZd1tffKjXKZkW72ffl9JPxDpL8">Open in Colab</a></td></tr>
<tr><td>๐ Mini-Blog</td><td><a class="link" href="https://huggingface.co/spaces/Leavin1611/logistics-hackathon-env/blob/main/HF_BLOG_POST.md">HF_BLOG_POST.md</a></td></tr>
<tr><td>๐๏ธ Environment Code</td><td><a class="link" href="https://huggingface.co/spaces/Leavin1611/logistics-hackathon-env/blob/main/server/environment.py">server/environment.py</a></td></tr>
</table>
<div class="spacer"></div>
<p><em>Stack: OpenEnv ยท FastAPI ยท TRL ยท GRPO ยท Unsloth ยท Qwen2.5-1.5B ยท Google Colab T4</em></p>
</div>
</div>
<!-- Nav -->
<div class="nav">
<button onclick="prev()">โ</button>
<span class="counter" id="counter">1 / 9</span>
<button onclick="next()">โถ</button>
</div>
<script>
let current = 0;
const slides = document.querySelectorAll('.slide');
function show(n) {
slides[current].classList.remove('active');
current = (n + slides.length) % slides.length;
slides[current].classList.add('active');
document.getElementById('counter').textContent = `${current+1} / ${slides.length}`;
}
function next() { show(current + 1); }
function prev() { show(current - 1); }
document.addEventListener('keydown', e => {
if (e.key === 'ArrowRight' || e.key === ' ') next();
if (e.key === 'ArrowLeft') prev();
});
</script>
</body>
</html>
|