Repository navigation
Small-LLM × novel-DSL benchmark: Qwen2.5-1.5B goes 0% → 85% - #4
Merged
Merged
Conversation
Five-row ablation ladder (baseline / +grammar / +few-shot / +retry / +rerank) over 20 creative-coding tasks distinct from the few-shot bank, every output evaluated by the same CreativeCodingValidator. Frozen run on Qwen2.5-1.5B-Instruct (Ollama, RTX 2060 Mobile): baseline 0/20 ( 0%) 1.0 attempts 492 ms grammar-only 1/20 ( 5%) 1.0 attempts 645 ms +few-shot 11/20 (55%) 1.0 attempts 443 ms +retry 15/20 (75%) 1.8 attempts 727 ms +rerank 17/20 (85%) 4.7 attempts 1539 ms Files: - examples/creative-coding-p5js/bench/tasks.ts: 20 novel tasks across the grammar surface (static / repeat / tick / mouse / time). - examples/creative-coding-p5js/bench/run.ts: configurable runner — endpoint, model, API key via env vars; prints per-cell ✓/✗ trace and a summary table; writes results-<model>.json. - examples/creative-coding-p5js/bench/results-qwen2.5_1.5b.json: the frozen run, checked in so the README numbers are reproducible. - examples/creative-coding-p5js/bench/README.md: methodology, full table, and per-row commentary (where each component buys what). - README.md (root): headline table — "1.5B on-device model goes from 0% to 85% valid without fine-tuning." Background: completes step 2 from the post-PR-#3 plan (small-LLM × novel-DSL public bench). The +rerank row is the GrammarAwareRanker shipped in PR #3 doing its intended job. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Completes step 2 from the post-PR-#3 plan: a public ablation bench that shows what noroshi buys on a 1B-class on-device model.
Headline
20 novel creative-coding tasks (distinct from the few-shot bank), driven through 5 ablation cells with Qwen2.5-1.5B-Instruct via local Ollama on an RTX 2060 Mobile:
GrammarAwareRankerA 1.5B model on a 4-year-old laptop GPU clears 85% of novel DSL tasks without any fine-tuning.
What each row buys
GrammarAwareRanker(PR Add GrammarAwareRanker for best-of-N self-consistency #3) clears 2 more cases where retry's correction didn't generalise.Latency tradeoff:
+reranktriples wall time for +10 pt. Right when the human-noticing threshold matters less than success rate (one-shot prompts), wrong for keystroke-level interactivity. Documented in the bench README.Files
examples/creative-coding-p5js/bench/tasks.ts— 20 tasks across static / repeat / tick / mouse / time.examples/creative-coding-p5js/bench/run.ts— env-configurable (endpoint, model, API key), prints per-cell trace and a summary table, writesresults-<model>.json.examples/creative-coding-p5js/bench/results-qwen2.5_1.5b.json— frozen run, checked in so the README numbers are reproducible.examples/creative-coding-p5js/bench/README.md— methodology, full table, per-row commentary, caveats.README.md(root) — headline table mirrored, with a link to the full bench dir.How to reproduce
Other models / endpoints via env vars (
NOROSHI_BENCH_MODEL,NOROSHI_BENCH_ENDPOINT,NOROSHI_BENCH_API_KEY).Not in scope (follow-ups)
llama3.2:1b,gemma-2-2b-it) so we can factor model-vs-pipeline.