Tomionkkas commited on
Commit
27580e9
·
verified ·
1 Parent(s): 2855e6a

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +72 -0
README.md ADDED
@@ -0,0 +1,72 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: mit
3
+ tags:
4
+ - marvel
5
+ - retrieval-augmented-generation
6
+ - gpt
7
+ - trained-from-scratch
8
+ pipeline_tag: text-generation
9
+ library_name: pytorch
10
+ ---
11
+
12
+ # EDITH 250M
13
+
14
+ **This model is not useful on its own.** It is the generative half of a
15
+ retrieval-grounded system: a 250M-parameter GPT trained from scratch, whose job
16
+ is to write the answers a retrieved Marvel record cannot compose by itself.
17
+ Most of EDITH's replies never reach these weights at all - they are rendered
18
+ directly from the record. Loaded alone, this is a small base model with
19
+ patchy Marvel knowledge, by design: 250M parameters cannot memorise a 296 MB
20
+ corpus, so the system was built not to try.
21
+
22
+ Run it: **https://github.com/Tomionkkas/edith**
23
+
24
+ ## Architecture
25
+
26
+ 16 layers, 16 heads, d=1024, vocab 50,257, block 1,024, tied embeddings.
27
+ Tokenizer: `marvel_bpe_50257` (SentencePiece BPE, trained on the corpus).
28
+
29
+ ## Files
30
+
31
+ | file | what |
32
+ |---|---|
33
+ | `model.safetensors` | stage 3, instruction-tuned. The shipped model, fp16 (508 MB). |
34
+ | `config.json` | the architecture above. The loader reads it. |
35
+ | `stage2/model.safetensors` | stage 2, Marvel continued-pretrain, before instruction tuning |
36
+ | `tokenizer/marvel_bpe_50257.model` | the tokenizer |
37
+
38
+ `lm_head.weight` is tied to `wte.weight` and is **dropped from the file**;
39
+ re-tie it after loading.
40
+
41
+ ## Why fp16, not fp32
42
+
43
+ Measured against fp32 on 20 real questions with greedy decoding: 20/20
44
+ byte-identical answers. fp16 ships at 508 MB against fp32's 1016 MB, for no
45
+ measured difference in output. Full comparison in the repository's
46
+ `MEASUREMENTS.md`.
47
+
48
+ ## Why stage 2 is here, and why it is not the one that ships
49
+
50
+ Stage 2 has the better perplexity on both validation sets (32.71 general /
51
+ 12.24 Marvel, re-measured, against stage 3's 38.21 / 18.58). It is also a
52
+ continued-pretrain model: it CONTINUES text, it does not answer questions.
53
+ Stage 3 trades perplexity for instruction-following, which is the thing a user
54
+ actually wants. Both numbers are in the repo's `MEASUREMENTS.md`.
55
+
56
+ ## Training data
57
+
58
+ A 296 MB corpus of 202,171 records derived from Marvel Database
59
+ (marvel.fandom.com) and English Wikipedia, plus FineWeb-Edu as general-English
60
+ replay. Published as a dataset: `Tomionkkas/edith-marvel-corpus`. Maths,
61
+ science and non-Marvel history were deliberately left out; weakness there is
62
+ intentional.
63
+
64
+ ## Limitations
65
+
66
+ Listed honestly and at length in the repository's README under *What it gets
67
+ wrong*, with the measurements behind each.
68
+
69
+ ## Disclaimer
70
+
71
+ EDITH is an independent project and is not affiliated with, endorsed by, or
72
+ sponsored by Marvel Entertainment, LLC or The Walt Disney Company.