singhpratech commited on
Commit
113e5b7
·
verified ·
1 Parent(s): dfd3afb

Add README.md

Browse files
Files changed (1) hide show
  1. README.md +24 -0
README.md ADDED
@@ -0,0 +1,24 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ tags:
4
+ - e=mc2
5
+ - structured-output
6
+ - constrained-decoding
7
+ - json
8
+ - tiny-transformer
9
+ - pankhllm
10
+ ---
11
+
12
+ # e=mc² Lesson 08: pankh-decider-v1
13
+
14
+ pankh-decider-v0 (Lesson 07), warm-started and trained to write the operation AND its parameters as compact JSON, e.g. `{"op":"kpi_rank","params":{"metric":"calls","level":"territories","n":17,"direction":"top","period":"2025-07"}}`. Codes, months and numbers are written as pointers (`<code0>`) and copied back from the question. A prefix-validity grammar built from pankhllm's `router.yaml` constrains decoding.
15
+
16
+ Lesson: https://theaivibe.org/emc2/structured-output-small-model-json-constrained-decoding
17
+
18
+ | Held-out templates (2,000) | Valid | Exact match | Wrong but valid |
19
+ |---|---|---|---|
20
+ | Free decoding | 91.1% | 47.9% | 43.2% |
21
+ | Catalog stencil | 100.0% | 51.1% | 48.9% |
22
+ | Grounded stencil | 100.0% | 74.7% | 25.3% |
23
+
24
+ Files: `lesson_08.ipynb` (unexecuted), `RESULTS.md`, `pankh-decider-v1/` (`model.pt`, `config.json`, `vocab.json`). Author: Prateek Singh. MIT.