skytnt commited on
Commit
e5f250d
1 Parent(s): e84c91b

hf integration

Browse files
config.json ADDED
@@ -0,0 +1,87 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ {
2
+ "architectures": [
3
+ "MIDIModel"
4
+ ],
5
+ "model_type": "midi_model",
6
+ "n_embd": 1024,
7
+ "net_config": {
8
+ "hidden_size": 1024,
9
+ "intermediate_size": 4096,
10
+ "max_position_embeddings": 4096,
11
+ "model_type": "llama",
12
+ "num_attention_heads": 16,
13
+ "num_hidden_layers": 12,
14
+ "num_key_value_heads": 16,
15
+ "pad_token_id": 0,
16
+ "use_cache": false,
17
+ "vocab_size": 3239
18
+ },
19
+ "net_token_config": {
20
+ "hidden_size": 1024,
21
+ "intermediate_size": 1024,
22
+ "max_position_embeddings": 4096,
23
+ "model_type": "llama",
24
+ "num_attention_heads": 4,
25
+ "num_hidden_layers": 3,
26
+ "num_key_value_heads": 4,
27
+ "pad_token_id": 0,
28
+ "use_cache": false,
29
+ "vocab_size": 3239
30
+ },
31
+ "tokenizer": {
32
+ "bos_id": 1,
33
+ "eos_id": 2,
34
+ "event_parameters": {
35
+ "bpm": 256,
36
+ "channel": 16,
37
+ "controller": 128,
38
+ "duration": 2048,
39
+ "patch": 128,
40
+ "pitch": 128,
41
+ "time1": 128,
42
+ "time2": 16,
43
+ "track": 128,
44
+ "value": 128,
45
+ "velocity": 128
46
+ },
47
+ "events": {
48
+ "control_change": [
49
+ "time1",
50
+ "time2",
51
+ "track",
52
+ "channel",
53
+ "controller",
54
+ "value"
55
+ ],
56
+ "note": [
57
+ "time1",
58
+ "time2",
59
+ "track",
60
+ "duration",
61
+ "channel",
62
+ "pitch",
63
+ "velocity"
64
+ ],
65
+ "patch_change": [
66
+ "time1",
67
+ "time2",
68
+ "track",
69
+ "channel",
70
+ "patch"
71
+ ],
72
+ "set_tempo": [
73
+ "time1",
74
+ "time2",
75
+ "track",
76
+ "bpm"
77
+ ]
78
+ },
79
+ "max_token_seq": 8,
80
+ "optimise_midi": false,
81
+ "pad_id": 0,
82
+ "version": "v1",
83
+ "vocab_size": 3239
84
+ },
85
+ "torch_dtype": "float32",
86
+ "transformers_version": "4.44.2"
87
+ }
generation_config.json ADDED
@@ -0,0 +1,4 @@
 
 
 
 
 
1
+ {
2
+ "_from_model_config": true,
3
+ "transformers_version": "4.44.2"
4
+ }
model.ckpt → pytorch_model.bin RENAMED
File without changes