Butanium commited on
Commit
ca63a14
·
verified ·
1 Parent(s): 66d2c52

Upload ZeroLayerTransformer

Browse files
Files changed (3) hide show
  1. README.md +3 -0
  2. config.json +29 -0
  3. model.safetensors +2 -2
README.md CHANGED
@@ -1,3 +1,6 @@
 
 
 
1
  0-layer transformer described in [A Mathematical Framework for Transformer Circuits](https://transformer-circuits.pub/2021/framework/index.html).Load with ```python
2
  class ZeroLayerTransformer(nn.Module, PyTorchModelHubMixin):
3
  def __init__(self, config):
 
1
+ ---
2
+ {}
3
+ ---
4
  0-layer transformer described in [A Mathematical Framework for Transformer Circuits](https://transformer-circuits.pub/2021/framework/index.html).Load with ```python
5
  class ZeroLayerTransformer(nn.Module, PyTorchModelHubMixin):
6
  def __init__(self, config):
config.json ADDED
@@ -0,0 +1,29 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "ZeroLayerTransformer"
4
+ ],
5
+ "attention_bias": false,
6
+ "attention_dropout": 0.0,
7
+ "bos_token_id": 1,
8
+ "eos_token_id": 2,
9
+ "head_dim": 32,
10
+ "hidden_act": "silu",
11
+ "hidden_size": 128,
12
+ "initializer_range": 0.02,
13
+ "intermediate_size": 512,
14
+ "max_position_embeddings": 512,
15
+ "mlp_bias": false,
16
+ "model_type": "llama",
17
+ "num_attention_heads": 4,
18
+ "num_hidden_layers": 0,
19
+ "num_key_value_heads": 4,
20
+ "pretraining_tp": 1,
21
+ "rms_norm_eps": 1e-06,
22
+ "rope_scaling": null,
23
+ "rope_theta": 10000.0,
24
+ "tie_word_embeddings": false,
25
+ "torch_dtype": "float32",
26
+ "transformers_version": "4.54.1",
27
+ "use_cache": false,
28
+ "vocab_size": 4096
29
+ }
model.safetensors CHANGED
@@ -1,3 +1,3 @@
1
  version https://git-lfs.github.com/spec/v1
2
- oid sha256:8d9be0e96ae59dcdece03c723514f25726d4ba7996327ac91b74e160cf2c7e91
3
- size 4194488
 
1
  version https://git-lfs.github.com/spec/v1
2
+ oid sha256:9d5bc074b89fca80f75499f17ae2176e058625550802fe325fabf3bc2c7c2d24
3
+ size 4194520