paph3285 commited on
Commit
9ba4137
·
verified ·
1 Parent(s): 76a0e3a

Add encoder–decoder checkpoint prefix_suffix_run_20251006_033115

Browse files
Files changed (4) hide show
  1. README.md +12 -0
  2. alphabet.json +32 -0
  3. config.json +13 -0
  4. model_fix.pt +3 -0
README.md ADDED
@@ -0,0 +1,12 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ # Encoder–Decoder (Prefix→Suffix) — Names
2
+
3
+ **Author:** @paph3285
4
+
5
+ This model is a small Transformer encoder–decoder trained to generate name suffixes conditioned on prefixes (character-level baby-name dataset). It demonstrates Google Drive + Hugging Face integrations.
6
+
7
+ Files:
8
+ - `model_fix.pt` — weights
9
+ - `config.json` — model hyperparameters + special tokens
10
+ - `alphabet.json` — base vocabulary
11
+
12
+ License: Apache-2.0
alphabet.json ADDED
@@ -0,0 +1,32 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "alphabet": [
3
+ " ",
4
+ "a",
5
+ "b",
6
+ "c",
7
+ "d",
8
+ "e",
9
+ "f",
10
+ "g",
11
+ "h",
12
+ "i",
13
+ "j",
14
+ "k",
15
+ "l",
16
+ "m",
17
+ "n",
18
+ "o",
19
+ "p",
20
+ "q",
21
+ "r",
22
+ "s",
23
+ "t",
24
+ "u",
25
+ "v",
26
+ "w",
27
+ "x",
28
+ "y",
29
+ "z",
30
+ "."
31
+ ]
32
+ }
config.json ADDED
@@ -0,0 +1,13 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "model_type": "ImprovedEncoderDecoder",
3
+ "n_embd": 128,
4
+ "n_head": 4,
5
+ "n_layer": 3,
6
+ "max_len": 128,
7
+ "vocab_size": 30,
8
+ "special_tokens": {
9
+ "PAD_ID": 28,
10
+ "BOS_ID": 29,
11
+ "EOS_ID": 27
12
+ }
13
+ }
model_fix.pt ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:0a11bc5d4654c99d7d34a39bfc062a6b38ffe9606eb67674c470f7d30a590223
3
+ size 18342027