Safetensors
llama
dx2102 commited on
Commit
48db3f3
·
1 Parent(s): 7806f85

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +31 -0
README.md ADDED
@@ -0,0 +1,31 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets:
3
+ - amaai-lab/MidiCaps
4
+ - projectlosangeles/Los-Angeles-MIDI-Dataset
5
+ base_model:
6
+ - meta-llama/Llama-3.2-1B-Instruct
7
+ ---
8
+
9
+
10
+ This model is finetuned from `Llama-3.2-1B`.
11
+
12
+ It learns to write MIDI music scores with a text representation.
13
+
14
+ You can simply take existing code and replace `meta-llama/Llama-3.2-1B` with `dx2102/llama-midi`.
15
+
16
+ ```python
17
+ import torch
18
+ from transformers import pipeline
19
+
20
+ pipe = pipeline(
21
+ "text-generation",
22
+ model="dx2102/llama-midi",
23
+ torch_dtype=torch.bfloat16,
24
+ device_map="auto"
25
+ )
26
+
27
+ print(pipe('''
28
+ Bach
29
+ pitch duration wait velocity instrument
30
+ '''.strip()))
31
+ ```