aisamdasu commited on
Commit
ddfe382
·
verified ·
1 Parent(s): 761ff36

Add dense architecture docs

Browse files
Files changed (2) hide show
  1. dense/README.md +28 -0
  2. dense/TRAINING_PLAN.md +19 -0
dense/README.md ADDED
@@ -0,0 +1,28 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Dense Architecture
2
+
3
+ The Dense model is the control baseline for this dataset. It should use the
4
+ same tokenizer, data order, validation split, context length, and optimizer
5
+ family as MoE so architecture changes can be compared cleanly.
6
+
7
+ ## Recommended Structure
8
+
9
+ - Decoder-only Transformer.
10
+ - RMSNorm.
11
+ - RoPE positional encoding.
12
+ - Grouped-query attention for lower KV-cache cost.
13
+ - SwiGLU feed-forward blocks.
14
+ - Tied embedding/head only after validation.
15
+ - Native support for FIM tokens.
16
+
17
+ ## Evaluation
18
+
19
+ Track:
20
+
21
+ - Next-token validation loss.
22
+ - FIM middle exact match.
23
+ - FIM edit distance.
24
+ - Syntax parse rate for languages where parsers are available.
25
+ - Completion latency and tokens/sec.
26
+
27
+ If Dense does not learn a checkpoint cleanly, inspect data schema, tokenizer,
28
+ and objective mix before scaling MoE.
dense/TRAINING_PLAN.md ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Dense Training Plan
2
+
3
+ ## Setup
4
+
5
+ Use the same JSONL checkpoint bundle as MoE. Keep random seed, batch token
6
+ target, learning-rate schedule, and validation split aligned.
7
+
8
+ ## Curriculum
9
+
10
+ 1. Start with short and medium records.
11
+ 2. Add long FIM examples.
12
+ 3. Add continuation/code generation records.
13
+ 4. Evaluate FIM and next-token loss separately.
14
+
15
+ ## Stop Conditions
16
+
17
+ - Validation loss diverges twice after LR reduction.
18
+ - FIM metrics regress while train loss improves.
19
+ - Tokenizer round-trip or special-token audit fails.