PhilipQuirke commited on
Commit
1a4d0fc
·
verified ·
1 Parent(s): 7be74a9

Add updated model card (README)

Browse files
Files changed (1) hide show
  1. README.md +35 -0
README.md ADDED
@@ -0,0 +1,35 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # QuantaMaths: `sub_d10_l2_h3_t75K_gf_s173289`
2
+
3
+ ### Model-specific metadata for `sub_d10_l2_h3_t75K_gf_s173289`
4
+
5
+ - **Operation type**: sub
6
+ - **Max digits**: d10
7
+ - **Layers**: l2
8
+ - **Attention Heads**: h3
9
+ - **Training steps**: t75K
10
+
11
+ This repository contains a transformer model that can predict addition questions, subtraction questions, or both.
12
+
13
+ **Folder name details**:
14
+ - "add", "sub", or "mix": The types of questions the model can predict.
15
+ - "d5" to "d20": How many digits the model handles (e.g. a d5 sub model can predict the answer in 123450-345670=-0123230).
16
+ - "l1", "l2", or "l3": The number of layers in the model.
17
+ - "h3" or "h4": The number of attention heads in the model.
18
+ - "t15K" to "t85K", etc.: The number of batches the model was trained on.
19
+ - "s372001", etc.: The random seed used in model training.
20
+
21
+ Some folder names also contain:
22
+ - "ins1": Before training, the model was initialized with a smaller, accurate addition model.
23
+ - "ins2": Same as ins1, but the inserted attention heads were not allowed to change.
24
+ - "ins3": Same as ins2, but the inserted MLP layers were also not allowed to change.
25
+
26
+ **Contents**:
27
+ - `model.pth`: The trained transformer model.
28
+ - `training_loss.json`: Data gathered during model training (used to plot "loss over training batches").
29
+ - `behaviors.json`: Facts gathered about the model by direct inspection (attention pattern data, PCA data, digit impact data, etc.).
30
+ - `features.json`: Facts gathered about hypothesized algorithm features via experimentation, e.g. node P12L0H1 implements the feature A3.ST.
31
+
32
+ **Provenance**:
33
+ - `model.pth` and `training_loss.json` were created by [QuantaMathsTrain.ipynb](https://github.com/PhilipQuirke/quanta_maths/blob/main/notebooks/QuantaMathsTrain.ipynb).
34
+ - `behaviors.json` and `features.json` were created by [QuantaMathsAnalyse.ipynb](https://github.com/PhilipQuirke/quanta_maths/blob/main/notebooks/QuantaMathsAnalyse.ipynb).
35
+ - The JSON files are used by [QuantaMathsAlgorithm.ipynb](https://github.com/PhilipQuirke/quanta_maths/blob/main/notebooks/QuantaMathsAlgorithm.ipynb).