Commit
·
1146765
1
Parent(s):
c1e394d
Initial commit
Browse files- .gitattributes +2 -0
- README.md +81 -3
- adapter_config.json +34 -0
- adapter_model.safetensors +3 -0
- config.json +31 -0
- non_lora_trainables.bin +3 -0
.gitattributes
CHANGED
@@ -33,3 +33,5 @@ saved_model/**/* filter=lfs diff=lfs merge=lfs -text
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
|
|
|
|
|
33 |
*.zip filter=lfs diff=lfs merge=lfs -text
|
34 |
*.zst filter=lfs diff=lfs merge=lfs -text
|
35 |
*tfevents* filter=lfs diff=lfs merge=lfs -text
|
36 |
+
adapter_model.safetensors filter=lfs diff=lfs merge=lfs -text
|
37 |
+
non_lora_trainables.bin filter=lfs diff=lfs merge=lfs -text
|
README.md
CHANGED
@@ -1,3 +1,81 @@
|
|
1 |
-
---
|
2 |
-
|
3 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
---
|
2 |
+
base_model:
|
3 |
+
- mistralai/Mistral-7B-v0.1
|
4 |
+
- m-a-p/MERT-v1-95M
|
5 |
+
library_name: peft
|
6 |
+
license: apache-2.0
|
7 |
+
datasets:
|
8 |
+
- amaai-lab/MusicBench
|
9 |
+
language:
|
10 |
+
- en
|
11 |
+
metrics:
|
12 |
+
- bertscore
|
13 |
+
- bleu
|
14 |
+
pipeline_tag: audio-text-to-text
|
15 |
+
---
|
16 |
+
|
17 |
+
# Model Card for Model ID
|
18 |
+
|
19 |
+
SonicVerse is a model that performs music captioning. Trained with concrete music feature labels to guide the captioning process, it provides features such as key, vocals, vocals gender, instrument, mood/theme, genre, in the generated caption.
|
20 |
+
The model is trained for 10 second snippets of music for detailed captioning. The [Spaces demo](https://huggingface.co/spaces/annabeth97c/SonicVerse) allows chaining captions of multiple chunks of 10 seconds of music to generate a long detailed caption.
|
21 |
+
|
22 |
+
## Model Details
|
23 |
+
|
24 |
+
### Model Description
|
25 |
+
|
26 |
+
Trained with a multi-tasking projector that outputs aligned language tokens from music input. Additionally, feature extraction (eg. key classification, vocals classification) is trained and then projected to language tokens, guiding the captioning.
|
27 |
+
|
28 |
+
- **Developed by:** AMAAI Lab
|
29 |
+
- **Funded by [optional]:** [More Information Needed]
|
30 |
+
- **Shared by [optional]:** [More Information Needed]
|
31 |
+
- **Model type:** Multi-modal Audio Text to Text model
|
32 |
+
- **Language(s) (NLP):** English
|
33 |
+
- **License:** Apache-2.0
|
34 |
+
- **Finetuned from model :** mistralai/Mistral-7B-v0.1
|
35 |
+
|
36 |
+
### Model Sources
|
37 |
+
|
38 |
+
- **Repository:** https://github.com/annabeth97c/sonicverse
|
39 |
+
- **Paper [optional]:** [More Information Needed]
|
40 |
+
- **Demo :** https://annabeth97c.github.io/sonicverse/
|
41 |
+
|
42 |
+
## Uses
|
43 |
+
|
44 |
+
Model can be used for music-text paired dataset generation
|
45 |
+
|
46 |
+
## How to Get Started with the Model
|
47 |
+
|
48 |
+
Use the instructions provided on the [repository](https://github.com/annabeth97c/sonicverse) to run inference locally. Alternatively try out the model on the [spaces page](https://huggingface.co/spaces/annabeth97c/SonicVerse).
|
49 |
+
|
50 |
+
## Citation [optional]
|
51 |
+
|
52 |
+
<!-- If there is a paper or blog post introducing the model, the APA and Bibtex information for that should go in this section. -->
|
53 |
+
|
54 |
+
**BibTeX:**
|
55 |
+
|
56 |
+
[More Information Needed]
|
57 |
+
|
58 |
+
**APA:**
|
59 |
+
|
60 |
+
[More Information Needed]
|
61 |
+
|
62 |
+
## Glossary [optional]
|
63 |
+
|
64 |
+
<!-- If relevant, include terms and calculations in this section that can help readers understand the model or model card. -->
|
65 |
+
|
66 |
+
[More Information Needed]
|
67 |
+
|
68 |
+
## More Information [optional]
|
69 |
+
|
70 |
+
[More Information Needed]
|
71 |
+
|
72 |
+
## Model Card Authors [optional]
|
73 |
+
|
74 |
+
[More Information Needed]
|
75 |
+
|
76 |
+
## Model Card Contact
|
77 |
+
|
78 |
+
[More Information Needed]
|
79 |
+
### Framework versions
|
80 |
+
|
81 |
+
- PEFT 0.10.0
|
adapter_config.json
ADDED
@@ -0,0 +1,34 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"alpha_pattern": {},
|
3 |
+
"auto_mapping": null,
|
4 |
+
"base_model_name_or_path": "mistralai/Mistral-7B-Instruct-v0.1",
|
5 |
+
"bias": "none",
|
6 |
+
"fan_in_fan_out": false,
|
7 |
+
"inference_mode": true,
|
8 |
+
"init_lora_weights": true,
|
9 |
+
"layer_replication": null,
|
10 |
+
"layers_pattern": null,
|
11 |
+
"layers_to_transform": null,
|
12 |
+
"loftq_config": {},
|
13 |
+
"lora_alpha": 16,
|
14 |
+
"lora_dropout": 0.05,
|
15 |
+
"megatron_config": null,
|
16 |
+
"megatron_core": "megatron.core",
|
17 |
+
"modules_to_save": null,
|
18 |
+
"peft_type": "LORA",
|
19 |
+
"r": 64,
|
20 |
+
"rank_pattern": {},
|
21 |
+
"revision": null,
|
22 |
+
"target_modules": [
|
23 |
+
"q_proj",
|
24 |
+
"v_proj",
|
25 |
+
"gate_proj",
|
26 |
+
"o_proj",
|
27 |
+
"down_proj",
|
28 |
+
"k_proj",
|
29 |
+
"up_proj"
|
30 |
+
],
|
31 |
+
"task_type": "CAUSAL_LM",
|
32 |
+
"use_dora": false,
|
33 |
+
"use_rslora": false
|
34 |
+
}
|
adapter_model.safetensors
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:ce19c1b7c28e67eb9ee6d49970f55c9b7487ba7e70c336d38ec89e3a51edb2bd
|
3 |
+
size 335605144
|
config.json
ADDED
@@ -0,0 +1,31 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"_name_or_path": "mistralai/Mistral-7B-Instruct-v0.1",
|
3 |
+
"architectures": [
|
4 |
+
"MistralForCausalLM"
|
5 |
+
],
|
6 |
+
"attention_dropout": 0.0,
|
7 |
+
"bos_token_id": 1,
|
8 |
+
"eos_token_id": 2,
|
9 |
+
"hidden_act": "silu",
|
10 |
+
"hidden_size": 4096,
|
11 |
+
"initializer_range": 0.02,
|
12 |
+
"intermediate_size": 14336,
|
13 |
+
"max_position_embeddings": 32768,
|
14 |
+
"modalities": [
|
15 |
+
"audio_mert"
|
16 |
+
],
|
17 |
+
"modality_builder": "audio_mert",
|
18 |
+
"model_cls": "MistralLMMForCausalLM",
|
19 |
+
"model_type": "mistral-lmm",
|
20 |
+
"num_attention_heads": 32,
|
21 |
+
"num_hidden_layers": 32,
|
22 |
+
"num_key_value_heads": 8,
|
23 |
+
"rms_norm_eps": 1e-05,
|
24 |
+
"rope_theta": 10000.0,
|
25 |
+
"sliding_window": 4096,
|
26 |
+
"tie_word_embeddings": false,
|
27 |
+
"torch_dtype": "bfloat16",
|
28 |
+
"transformers_version": "4.40.1",
|
29 |
+
"use_cache": false,
|
30 |
+
"vocab_size": 32000
|
31 |
+
}
|
non_lora_trainables.bin
ADDED
@@ -0,0 +1,3 @@
|
|
|
|
|
|
|
|
|
1 |
+
version https://git-lfs.github.com/spec/v1
|
2 |
+
oid sha256:86c8e3d08b7ae6d6d331aab445f68da813c66494a18ba52a6b81331d48bc905a
|
3 |
+
size 2275096730
|