Spaces:
Runtime error
Runtime error
Field Notes link + doc factuality fixes (QC vs code truth)
Browse files- README: link the honest write-up (backs achievement:fieldnotes).
- prompts.py: docstring described the removed JSON-prefill trick; the code uses
response_format json_object grammar (since f92e318). Corrected to match llm.py.
- README: first-boot download is ~3.3 GB (1.9 GB model + 1.3 GB f16 mmproj),
not ~2.3 GB — the projector was uncounted.
- README + writeup: QuickWin keys on impact+effort, not readiness; 'short, ready'
-> 'short, high-impact' (QW = 1 + 0.6*(I/10)*exp(-E/1.5) in score.py).
- README: drop stale HTML comment claiming a nonexistent front-matter video.
Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Files changed (3)
33 unmodified lines34353637383940414243444546472 unmodified lines5051525354555626 unmodified lines8384858687888933 unmodified linesBuilt for the [Hugging Face Build Small hackathon](https://huggingface.co/build-small-hackathon)(Backyard AI track).## Demo[](https://huggingface.co/spaces/build-small-hackathon/whatfirst-small/resolve/main/demo/out/whatfirst-small-demo-loud.mp4)▶ **[Watch the demo video](https://huggingface.co/spaces/build-small-hackathon/whatfirst-small/resolve/main/demo/out/whatfirst-small-demo-loud.mp4)** · **[Try the live Space](https://huggingface.co/spaces/build-small-hackathon/whatfirst-small)**<!-- The block above renders as a clickable poster on GitHub (which strips <video>) and on Hugging Face.The Space's own front-matter video is preserved by the `---` header at the top of this file. -->## Why this exists2 unmodified linesanswer it with a black box. This one keeps the AI where it earns its keep (turningvague human language into structured fields) and makes the prioritization itself**legible**: two competing scores (do-it-now vs. de-risk-first), an urgency curvethat explodes as a deadline nears, a quick-win boost for short ready tasks, anddeadlines treated as a hard constraint rather than a number folded into a blob.The problem — and the prioritization approach — come from26 unmodified lines```bashdocker build -t whatfirst-small .docker run -p 7860:7860 whatfirst-small # first boot downloads ~2.3 GB of weights```Then open http://localhost:7860. On a CPU-only box, expect a few seconds per task33 unmodified lines34353637383940414243444546474849502 unmodified lines5354555657585926 unmodified lines8687888990919233 unmodified linesBuilt for the [Hugging Face Build Small hackathon](https://huggingface.co/build-small-hackathon)(Backyard AI track).📓 **Field notes:** [an honest write-up of what worked and what didn't](submission/whatfirst-small-writeup.md) —the small-model story, including where a 3B model wobbles and how the design absorbs it.## Demo[](https://huggingface.co/spaces/build-small-hackathon/whatfirst-small/resolve/main/demo/out/whatfirst-small-demo-loud.mp4)▶ **[Watch the demo video](https://huggingface.co/spaces/build-small-hackathon/whatfirst-small/resolve/main/demo/out/whatfirst-small-demo-loud.mp4)** · **[Try the live Space](https://huggingface.co/spaces/build-small-hackathon/whatfirst-small)**<!-- Rendered as a clickable poster + links so the demo works on GitHub (which strips raw <video>)and on Hugging Face alike. -->## Why this exists2 unmodified linesanswer it with a black box. This one keeps the AI where it earns its keep (turningvague human language into structured fields) and makes the prioritization itself**legible**: two competing scores (do-it-now vs. de-risk-first), an urgency curvethat explodes as a deadline nears, a quick-win boost for short, high-impact tasks, anddeadlines treated as a hard constraint rather than a number folded into a blob.The problem — and the prioritization approach — come from26 unmodified lines```bashdocker build -t whatfirst-small .docker run -p 7860:7860 whatfirst-small # first boot downloads ~3.3 GB (model + vision projector)```Then open http://localhost:7860. On a CPU-only box, expect a few seconds per task
6 unmodified lines7891011121314156 unmodified lines- EXTRACT : a photo of a list -> task items (titles only; scored after)- SCORE : one task -> impact / readiness / effort (slider re-suggest)Every call uses the JSON-prefill trick (prefill the assistant turn with "{") soa small model continues the object instead of wrapping it in prose. All modeloutput is untrusted and re-clamped in llm.py before it reaches the scorer."""# Shared definitions of the three scoring axes, kept identical across prompts so6 unmodified lines789101112131415166 unmodified lines- EXTRACT : a photo of a list -> task items (titles only; scored after)- SCORE : one task -> impact / readiness / effort (slider re-suggest)Every call is constrained to emit a single JSON object via llama.cpp's`response_format: json_object` grammar (see llm.py) — the model cannot wrap it inprose or markdown fences. All model output is still untrusted and re-clamped inllm.py before it reaches the scorer."""# Shared definitions of the three scoring axes, kept identical across prompts so
63 unmodified lines6465666768697063 unmodified lines- **do** = `(Impact · Urgency · Readiness_eff · QuickWin) / 10` — the case for doing it now.- **prep** = `(Impact · Urgency · (10 − Readiness)) / 10 · 0.7 · QuickWin` — the case for de-risking it first (wins only when a task is valuable but not ready).**Urgency** climbs as a deadline nears and _explodes_ once it's within a day, so a looming deadline can't be buried by a shiny far-off task. **QuickWin** rewards short, ready tasks. And deadlines act as a **constraint**, not just a term: anything overdue, or that genuinely won't finish in time given everything ahead of it, is lifted above the value pack.Disagree with a score? Drag a slider and the list **re-ranks live** — the model proposes, you decide.63 unmodified lines6465666768697063 unmodified lines- **do** = `(Impact · Urgency · Readiness_eff · QuickWin) / 10` — the case for doing it now.- **prep** = `(Impact · Urgency · (10 − Readiness)) / 10 · 0.7 · QuickWin` — the case for de-risking it first (wins only when a task is valuable but not ready).**Urgency** climbs as a deadline nears and _explodes_ once it's within a day, so a looming deadline can't be buried by a shiny far-off task. **QuickWin** rewards short, high-impact tasks. And deadlines act as a **constraint**, not just a term: anything overdue, or that genuinely won't finish in time given everything ahead of it, is lifted above the value pack.Disagree with a score? Drag a slider and the list **re-ranks live** — the model proposes, you decide.
README.md+7-4
prompts.py+4-3
submission/whatfirst-small-writeup.md+1-1