Fcabla commited on
Commit
ddefe12
·
verified ·
1 Parent(s): 516396e

Delete FIELD_NOTES.md

Browse files
Files changed (1) hide show
  1. FIELD_NOTES.md +0 -75
FIELD_NOTES.md DELETED
@@ -1,75 +0,0 @@
1
- # Your memory is the worst witness: building EYEWITNESS with a 1B model
2
-
3
- *Field notes from the Build Small Hackathon — [EYEWITNESS Space](https://huggingface.co/spaces/build-small-hackathon/eyewitness)*
4
-
5
- You saw the thief for 3 seconds. Describe him.
6
-
7
- Easy, right? You were *there*. You *saw* him. Then the sketch artist draws exactly what
8
- you said — and the face on the paper is a stranger. Welcome to fifty years of eyewitness
9
- psychology research, compressed into a game where the police lineup is built from your
10
- own mistakes.
11
-
12
- ## The design rule that made a 1B model enough
13
-
14
- The whole game runs on one principle: **author the ground truth, don't detect it.**
15
-
16
- The engine *composes* every face from a closed vocabulary of attributes (face shape,
17
- hair, brows, glasses, marks…). It never has to recognize anything — it always knows
18
- exactly what the culprit looks like, because it built him. That means:
19
-
20
- - difficulty is a dial we control, not a model accident,
21
- - scoring is objective (your words vs. the truth, attribute by attribute),
22
- - and the only job left for a neural network is *translation*: turning
23
- *"caterpillar eyebrows, looked like he hadn't slept, one of those wool hats"* into
24
- `{"brows": "bushy", "eyes": "droopy", "hat": "beanie"}`.
25
-
26
- That translation job is exactly what a small model is great at. **MiniCPM5-1B** does it
27
- as strict JSON slot-filling over the closed vocabulary, validated with a deterministic
28
- synonym-matcher as backstop — the game literally cannot break on a bad generation. It
29
- handles English and Spanish witnesses in the same breath.
30
-
31
- ## The signature mechanic: lineups built from your errors
32
-
33
- After your testimony, you face the lineup. It isn't random:
34
-
35
- - Attributes you got **wrong** get planted on distractors *exactly as you misremembered
36
- them* — your own sketch misleads you.
37
- - Attributes you **never mentioned** become the confusion axes between near-identical
38
- suspects.
39
- - Attributes you **nailed** prune the lineup — good memory is rewarded.
40
-
41
- We tuned that last rule with a 400-game simulation: in the first version, a witness who
42
- correctly remembered three attributes could uniquely identify the culprit only **2%** of
43
- the time (the lineup cloned everything you knew). One probability change later, the
44
- difficulty curve runs 37% (ROOKIE) → 8% (CHIEF) — winnable, never free. From INSPECTOR
45
- rank, the culprit also *changes one salient feature* between the crime and the lineup.
46
- He's been to a barber since. Of course he has.
47
-
48
- ## A Gradio 6 war story (so you don't lose the hour we lost)
49
-
50
- Switching screens by toggling `gr.Column(visible=...)` works in Gradio 6 — **until a
51
- `demo.load` handler also touches column visibility.** After that, later visibility
52
- updates silently desync client-side (we bisected it with three minimal repros: load-time
53
- updates break it, click-time-only works… once, then a second transition broke too).
54
-
55
- The fix that ended the whack-a-mole: rebuild the UI as a **state-driven `@gr.render`
56
- stage**. One `gr.State` dict holds the whole game; every button returns a new state; the
57
- render function draws the current screen. Zero visibility toggling, zero desync. Bonus
58
- gotchas: `gr.HTML` strips `<script>` (our 3-second glimpse timer is pure CSS
59
- `animation-delay`), and `gr.Gallery` treats data-URIs as file paths (rasterize to PIL).
60
-
61
- ## The Modal factory
62
-
63
- The heavy lifting that *can* be done ahead of time runs on Modal, never in the player's
64
- path: the crime case bank is batch-generated by **MiniCPM5-1B-GGUF through llama.cpp**, and
65
- the LoRA parser fine-tune is trained there too. At runtime the Space loads ~5.7B across four
66
- small models — MiniCPM5-1B (parser + the live verdict taunt about the crime), **Cohere
67
- Transcribe 2B** (spoken testimony), and **VoxCPM2** cloning the culprit's voice on the spot —
68
- all preloaded to CPU so ZeroGPU calls stay short and snappy on judging day.
69
-
70
- ## What playtesting taught us
71
-
72
- Humans average around 30% memory accuracy on ROOKIE. Everyone *swears* the hat was a cap.
73
- It was a fedora. The pigeons remember more.
74
-
75
- — Fernando (+ Claude Code doing the engineering)