Upload folder using huggingface_hub
Browse files- README.md +9 -0
- config.json +63 -0
- pytorch_model.bin +3 -0
README.md
ADDED
|
@@ -0,0 +1,9 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
# HookedTransformer Model
|
| 2 |
+
|
| 3 |
+
This is a HookedTransformer model from the `transformer_lens` library.
|
| 4 |
+
To use this model, you'll need to install `transformer_lens` and load it as follows:
|
| 5 |
+
|
| 6 |
+
```python
|
| 7 |
+
from transformer_lens import HookedTransformer
|
| 8 |
+
model = HookedTransformer.from_pretrained('D0TheMath/saved_model')
|
| 9 |
+
```
|
config.json
ADDED
|
@@ -0,0 +1,63 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"n_layers": 2,
|
| 3 |
+
"d_model": 256,
|
| 4 |
+
"n_ctx": 1024,
|
| 5 |
+
"d_head": 32,
|
| 6 |
+
"model_name": "custom",
|
| 7 |
+
"n_heads": 8,
|
| 8 |
+
"d_mlp": null,
|
| 9 |
+
"act_fn": null,
|
| 10 |
+
"d_vocab": 5000,
|
| 11 |
+
"eps": 1e-05,
|
| 12 |
+
"use_attn_result": false,
|
| 13 |
+
"use_attn_scale": true,
|
| 14 |
+
"attn_scale": 5.656854249492381,
|
| 15 |
+
"use_split_qkv_input": false,
|
| 16 |
+
"use_hook_mlp_in": false,
|
| 17 |
+
"use_attn_in": false,
|
| 18 |
+
"use_local_attn": false,
|
| 19 |
+
"original_architecture": null,
|
| 20 |
+
"from_checkpoint": false,
|
| 21 |
+
"checkpoint_index": null,
|
| 22 |
+
"checkpoint_label_type": null,
|
| 23 |
+
"checkpoint_value": null,
|
| 24 |
+
"tokenizer_name": "georgeyw/TinyStories-tokenizer-5k",
|
| 25 |
+
"window_size": null,
|
| 26 |
+
"attn_types": null,
|
| 27 |
+
"init_mode": "gpt2",
|
| 28 |
+
"normalization_type": "LN",
|
| 29 |
+
"device": "cuda",
|
| 30 |
+
"n_devices": 1,
|
| 31 |
+
"attention_dir": "causal",
|
| 32 |
+
"attn_only": true,
|
| 33 |
+
"seed": 1,
|
| 34 |
+
"initializer_range": 0.05,
|
| 35 |
+
"init_weights": true,
|
| 36 |
+
"scale_attn_by_inverse_layer_idx": false,
|
| 37 |
+
"positional_embedding_type": "shortformer",
|
| 38 |
+
"final_rms": false,
|
| 39 |
+
"d_vocab_out": 5000,
|
| 40 |
+
"parallel_attn_mlp": false,
|
| 41 |
+
"rotary_dim": null,
|
| 42 |
+
"n_params": 524288,
|
| 43 |
+
"use_hook_tokens": false,
|
| 44 |
+
"gated_mlp": false,
|
| 45 |
+
"default_prepend_bos": true,
|
| 46 |
+
"dtype": "torch.float32",
|
| 47 |
+
"tokenizer_prepends_bos": false,
|
| 48 |
+
"n_key_value_heads": null,
|
| 49 |
+
"post_embedding_ln": false,
|
| 50 |
+
"rotary_base": 10000,
|
| 51 |
+
"trust_remote_code": false,
|
| 52 |
+
"rotary_adjacent_pairs": false,
|
| 53 |
+
"load_in_4bit": false,
|
| 54 |
+
"num_experts": null,
|
| 55 |
+
"experts_per_token": null,
|
| 56 |
+
"relative_attention_max_distance": null,
|
| 57 |
+
"relative_attention_num_buckets": null,
|
| 58 |
+
"decoder_start_token_id": null,
|
| 59 |
+
"tie_word_embeddings": false,
|
| 60 |
+
"use_normalization_before_and_after": false,
|
| 61 |
+
"attn_scores_soft_cap": -1.0,
|
| 62 |
+
"output_logits_soft_cap": -1.0
|
| 63 |
+
}
|
pytorch_model.bin
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:53093601bf47482bc3265d20651990b55eff290340bdc1c58ec319ab520fa0d7
|
| 3 |
+
size 15529160
|