GofAlpha commited on
Commit
cc8c5e8
·
verified ·
1 Parent(s): e8d06b0

Upload 11 files

Browse files
GoA_Chess_Small/config.json ADDED
@@ -0,0 +1,9 @@
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "goa_transformer_lm",
3
+ "dim": 512,
4
+ "depth": 8,
5
+ "heads": 8,
6
+ "vocab_size": 50257,
7
+ "max_seq_length": 1024,
8
+ "dropout": 0.1
9
+ }
GoA_Chess_Small/hf/README.md ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: other
3
+ tags:
4
+ - chess
5
+ - transformer
6
+ - goa
7
+ language:
8
+ - en
9
+ pipeline_tag: text-generation
10
+ ---
11
+
12
+ # EMAC Chess Transformer
13
+
14
+ A decoder-only transformer language model trained on Lichess chess games using
15
+ Entropy-Modulated Adaptive Control (EMAC).
16
+
17
+ ## Model Details
18
+
19
+ | Property | Value |
20
+ |----------|-------|
21
+ | Parameters | 51,475,968 |
22
+ | Hidden size | 512 |
23
+ | Layers | 8 |
24
+ | Attention heads | 8 |
25
+ | Context length | 1024 |
26
+ | Vocab size | 50,257 |
27
+ | Tokenizer | GPT-2 |
28
+ | Training data | Lichess standard chess games |
29
+
30
+ ## Usage
31
+
32
+ ```python
33
+ import torch
34
+ from transformers import GPT2TokenizerFast
35
+
36
+ # Load tokenizer
37
+ tokenizer = GPT2TokenizerFast.from_pretrained("./hf")
38
+
39
+ # Load model weights
40
+ state_dict = torch.load("./hf/pytorch_model.bin", map_location="cpu")
41
+ # (Requires EMAC model class to instantiate architecture)
42
+ ```
43
+
44
+ ## Training
45
+
46
+ Trained with GoA transformer
47
+
48
+ ## License
49
+
50
+ Copyright (c) G of Alpha LLC. All rights reserved.
GoA_Chess_Small/hf/config.json ADDED
@@ -0,0 +1,16 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "GoATransformerLM"
4
+ ],
5
+ "model_type": "goa_chess",
6
+ "hidden_size": 512,
7
+ "num_hidden_layers": 8,
8
+ "num_attention_heads": 8,
9
+ "intermediate_size": 2048,
10
+ "vocab_size": 50257,
11
+ "max_position_embeddings": 1024,
12
+ "hidden_dropout_prob": 0.1,
13
+ "total_parameters": 51475968,
14
+ "torch_dtype": "float32",
15
+ "transformers_version": "custom"
16
+ }
GoA_Chess_Small/hf/generation_config.json ADDED
@@ -0,0 +1,7 @@
 
 
 
 
 
 
 
 
1
+ {
2
+ "max_new_tokens": 768,
3
+ "temperature": 0.6,
4
+ "top_k": 10,
5
+ "top_p": 0.95,
6
+ "do_sample": true
7
+ }
GoA_Chess_Small/hf/merges.txt ADDED
The diff for this file is too large to render. See raw diff
 
GoA_Chess_Small/hf/model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:21808783d1440976efc10083103dc404b7f12cc0780daf1ee0ab265520712583
3
+ size 308846064
GoA_Chess_Small/hf/special_tokens_map.json ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ {
2
+ "bos_token": "<|endoftext|>",
3
+ "eos_token": "<|endoftext|>",
4
+ "pad_token": "<|endoftext|>",
5
+ "unk_token": "<|endoftext|>"
6
+ }
GoA_Chess_Small/hf/tokenizer.json ADDED
The diff for this file is too large to render. See raw diff
 
GoA_Chess_Small/hf/tokenizer_config.json ADDED
@@ -0,0 +1,20 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "add_prefix_space": false,
3
+ "added_tokens_decoder": {
4
+ "50256": {
5
+ "content": "<|endoftext|>",
6
+ "lstrip": false,
7
+ "normalized": true,
8
+ "rstrip": false,
9
+ "single_word": false,
10
+ "special": true
11
+ }
12
+ },
13
+ "bos_token": "<|endoftext|>",
14
+ "clean_up_tokenization_spaces": false,
15
+ "eos_token": "<|endoftext|>",
16
+ "model_max_length": 1024,
17
+ "pad_token": "<|endoftext|>",
18
+ "tokenizer_class": "GPT2Tokenizer",
19
+ "unk_token": "<|endoftext|>"
20
+ }
GoA_Chess_Small/hf/vocab.json ADDED
The diff for this file is too large to render. See raw diff
 
GoA_Chess_Small/model.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:c60b5303c22e010e4e1f6cc35fa98f29930df2f86211c536f0915a7b701f4dac
3
+ size 205950627