viknesh100 commited on
Commit
070e85d
·
verified ·
1 Parent(s): 5ba4d62

add safetensors export

Browse files
Files changed (3) hide show
  1. README.md +10 -0
  2. config.json +17 -1
  3. model.safetensors +3 -0
README.md ADDED
@@ -0,0 +1,10 @@
 
 
 
 
 
 
 
 
 
 
 
1
+ # Apollo
2
+
3
+ Decoder-only Transformer (RoPE, RMSNorm, SwiGLU, tied embeddings) that generates monophonic melodies as symbolic tokens (BAR / POS / PITCH / DUR) conditioned on a header (tempo, time signature, key, bars, density, register, ...).
4
+
5
+ - `model.safetensors`: fp16 weights. `lm_head` is tied to `emb.weight`, so `head.weight` is not stored; build the model, load with `strict=False`, and the tie fills it.
6
+ - `config.json`: architecture (`cfg`), context length, training step and validation loss.
7
+ - `vocab.json`: token list in id order.
8
+ - `best/` and `last/`: training checkpoints (`.pt`), used for resuming; load only from sources you trust.
9
+
10
+ Trained on melodies extracted from the Lakh MIDI dataset. Check the licensing of the source data before any commercial use.
config.json CHANGED
@@ -1 +1,17 @@
1
- {"cfg": {"vocab": 352, "max_len": 1024, "dropout": 0.1, "n_layer": 8, "d_model": 512, "n_head": 8, "d_ff": 1536}, "seq_len": 1024}
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "cfg": {
3
+ "vocab": 352,
4
+ "max_len": 1024,
5
+ "dropout": 0.1,
6
+ "n_layer": 8,
7
+ "d_model": 512,
8
+ "n_head": 8,
9
+ "d_ff": 1536
10
+ },
11
+ "seq_len": 1024,
12
+ "weights": "model.safetensors",
13
+ "dtype": "float16",
14
+ "tied_embeddings": true,
15
+ "step": 10000,
16
+ "val_loss": 0.923981524555829
17
+ }
model.safetensors ADDED
@@ -0,0 +1,3 @@
 
 
 
 
1
+ version https://git-lfs.github.com/spec/v1
2
+ oid sha256:1d9c05e1cdc348632f9c80cc5b042345336abb71606f0f0adf8154e3ff0de921
3
+ size 54908976