r/learnmachinelearning • u/T_Hansda • 24d ago
Project My Pi 4 kept 48 of 300 image positions. Then I asked it to count.
I built a d1-2B vision runtime with Codex and used autoresearch to test it on a 4 GB Pi 4. For multiple choice I sum the attention each image position gets from question tokens in the first global layer. The top 48 positions keep updating. The rest can still supply attention keys and values.
On one image this shortcut counted six cars when there were eight. Keeping all 300 positions active for direct counts matched all 16 reference outputs. Both engines got 8 of 16 counts exactly right. Multiple choice scored 56 of 64 vs 54 of 64.