Upload folder using huggingface_hub
Browse files- README.md +1 -0
- inference_config.json +16 -0
- library_config.json +10 -0
README.md
CHANGED
@@ -15,6 +15,7 @@ widget:
|
|
15 |
- text: "Artist: Beyonce\nLyrics:"
|
16 |
- text: "Artist: Drake\nLyrics:"
|
17 |
inference: true
|
|
|
18 |
---
|
19 |
|
20 |
# GPT-Neo 2.7B LoRA Fine-tuned for Lyrics Generation
|
|
|
15 |
- text: "Artist: Beyonce\nLyrics:"
|
16 |
- text: "Artist: Drake\nLyrics:"
|
17 |
inference: true
|
18 |
+
library_name: transformers
|
19 |
---
|
20 |
|
21 |
# GPT-Neo 2.7B LoRA Fine-tuned for Lyrics Generation
|
inference_config.json
ADDED
@@ -0,0 +1,16 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"base_model": "EleutherAI/gpt-neo-2.7B",
|
3 |
+
"task": "text-generation",
|
4 |
+
"default_params": {
|
5 |
+
"max_length": 200,
|
6 |
+
"temperature": 0.7,
|
7 |
+
"top_p": 0.9,
|
8 |
+
"top_k": 50,
|
9 |
+
"do_sample": true,
|
10 |
+
"return_full_text": false
|
11 |
+
},
|
12 |
+
"prompt_format": "Artist: {artist}\nLyrics:",
|
13 |
+
"example_inputs": {
|
14 |
+
"artist": ["Taylor Swift", "Beyonce", "Drake", "Ed Sheeran", "Adele"]
|
15 |
+
}
|
16 |
+
}
|
library_config.json
ADDED
@@ -0,0 +1,10 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
+
{
|
2 |
+
"architectures": ["GPTNeoForCausalLM"],
|
3 |
+
"model_type": "gpt_neo",
|
4 |
+
"library_name": "transformers",
|
5 |
+
"peft_type": "LORA",
|
6 |
+
"auto_map": {
|
7 |
+
"AutoModelForCausalLM": ["transformers", "GPTNeoForCausalLM"],
|
8 |
+
"AutoTokenizer": ["transformers", "GPT2Tokenizer"]
|
9 |
+
}
|
10 |
+
}
|