huggingface integration
#2
by
skytnt
- opened
- config.json +105 -0
- generation_config.json +4 -0
- model.ckpt → pytorch_model.bin +0 -0
config.json
ADDED
@@ -0,0 +1,105 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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": 24,
|
14 |
+
"num_key_value_heads": 16,
|
15 |
+
"pad_token_id": 0,
|
16 |
+
"use_cache": false,
|
17 |
+
"vocab_size": 3406
|
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": 6,
|
26 |
+
"num_key_value_heads": 4,
|
27 |
+
"pad_token_id": 0,
|
28 |
+
"use_cache": false,
|
29 |
+
"vocab_size": 3406
|
30 |
+
},
|
31 |
+
"tokenizer": {
|
32 |
+
"bos_id": 1,
|
33 |
+
"eos_id": 2,
|
34 |
+
"event_parameters": {
|
35 |
+
"bpm": 384,
|
36 |
+
"channel": 16,
|
37 |
+
"controller": 128,
|
38 |
+
"dd": 4,
|
39 |
+
"duration": 2048,
|
40 |
+
"mi": 2,
|
41 |
+
"nn": 16,
|
42 |
+
"patch": 128,
|
43 |
+
"pitch": 128,
|
44 |
+
"sf": 15,
|
45 |
+
"time1": 128,
|
46 |
+
"time2": 16,
|
47 |
+
"track": 128,
|
48 |
+
"value": 128,
|
49 |
+
"velocity": 128
|
50 |
+
},
|
51 |
+
"events": {
|
52 |
+
"control_change": [
|
53 |
+
"time1",
|
54 |
+
"time2",
|
55 |
+
"track",
|
56 |
+
"channel",
|
57 |
+
"controller",
|
58 |
+
"value"
|
59 |
+
],
|
60 |
+
"key_signature": [
|
61 |
+
"time1",
|
62 |
+
"time2",
|
63 |
+
"track",
|
64 |
+
"sf",
|
65 |
+
"mi"
|
66 |
+
],
|
67 |
+
"note": [
|
68 |
+
"time1",
|
69 |
+
"time2",
|
70 |
+
"track",
|
71 |
+
"channel",
|
72 |
+
"pitch",
|
73 |
+
"velocity",
|
74 |
+
"duration"
|
75 |
+
],
|
76 |
+
"patch_change": [
|
77 |
+
"time1",
|
78 |
+
"time2",
|
79 |
+
"track",
|
80 |
+
"channel",
|
81 |
+
"patch"
|
82 |
+
],
|
83 |
+
"set_tempo": [
|
84 |
+
"time1",
|
85 |
+
"time2",
|
86 |
+
"track",
|
87 |
+
"bpm"
|
88 |
+
],
|
89 |
+
"time_signature": [
|
90 |
+
"time1",
|
91 |
+
"time2",
|
92 |
+
"track",
|
93 |
+
"nn",
|
94 |
+
"dd"
|
95 |
+
]
|
96 |
+
},
|
97 |
+
"max_token_seq": 8,
|
98 |
+
"optimise_midi": true,
|
99 |
+
"pad_id": 0,
|
100 |
+
"version": "v2",
|
101 |
+
"vocab_size": 3406
|
102 |
+
},
|
103 |
+
"torch_dtype": "float32",
|
104 |
+
"transformers_version": "4.44.2"
|
105 |
+
}
|
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
|