Update README.md
Browse files
README.md
CHANGED
|
@@ -1,3 +1,95 @@
|
|
| 1 |
-
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
-
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
---
|
| 2 |
+
license: apache-2.0
|
| 3 |
+
---
|
| 4 |
+
|
| 5 |
+
|
| 6 |
+
### **Llama-Song-Stream-3B-Instruct-GGUF Model Card**
|
| 7 |
+
|
| 8 |
+
The **Llama-Song-Stream-3B-Instruct-GGUF** is a fine-tuned language model specializing in generating music-related text, such as song lyrics, compositions, and musical thoughts. Built upon the **meta-llama/Llama-3.2-3B-Instruct** base, it has been trained with a custom dataset focused on song lyrics and music compositions to produce context-aware, creative, and stylized music output.
|
| 9 |
+
|
| 10 |
+
| **File Name** | **Size** | **Description** | **Upload Status** |
|
| 11 |
+
|--------------------------------------------------|--------------------|--------------------------------------------------|-------------------|
|
| 12 |
+
| `.gitattributes` | 1.83 kB | LFS tracking configuration. | Uploaded |
|
| 13 |
+
| `Llama-Song-Stream-3B-Instruct.F16.gguf` | 6.43 GB | Main model weights file. | Uploaded (LFS) |
|
| 14 |
+
| `Llama-Song-Stream-3B-Instruct.Q4_K_M.gguf` | 2.02 GB | Model weights variation 1. | Uploaded (LFS) |
|
| 15 |
+
| `Llama-Song-Stream-3B-Instruct.Q5_K_M.gguf` | 2.32 GB | Model weights variation 2. | Uploaded (LFS) |
|
| 16 |
+
| `Llama-Song-Stream-3B-Instruct.Q8_0.gguf` | 3.42 GB | Model weights variation 3. | Uploaded (LFS) |
|
| 17 |
+
| `Modelfile` | 2.04 kB | Custom configuration for this model. | Uploaded |
|
| 18 |
+
| `README.md` | 31 Bytes | Initial commit with minimal documentation. | Uploaded |
|
| 19 |
+
| `config.json` | 31 Bytes | Configuration settings for model initialization. | Uploaded |
|
| 20 |
+
|
| 21 |
+
### **Key Features**
|
| 22 |
+
|
| 23 |
+
1. **Song Generation:**
|
| 24 |
+
- Generates full song lyrics based on user input, maintaining rhyme, meter, and thematic consistency.
|
| 25 |
+
|
| 26 |
+
2. **Music Context Understanding:**
|
| 27 |
+
- Trained on lyrics and song patterns to mimic and generate song-like content.
|
| 28 |
+
|
| 29 |
+
3. **Fine-tuned Creativity:**
|
| 30 |
+
- Fine-tuned using *Song-Catalogue-Long-Thought* for coherent lyric generation over extended prompts.
|
| 31 |
+
|
| 32 |
+
4. **Interactive Text Generation:**
|
| 33 |
+
- Designed for use cases like generating lyrical ideas, creating drafts for songwriters, or exploring themes musically.
|
| 34 |
+
|
| 35 |
+
---
|
| 36 |
+
### **Training Details**
|
| 37 |
+
|
| 38 |
+
- **Base Model:** [meta-llama/Llama-3.2-3B-Instruct](#)
|
| 39 |
+
- **Finetuning Dataset:** [prithivMLmods/Song-Catalogue-Long-Thought](#)
|
| 40 |
+
- This dataset comprises 57.7k examples of lyrical patterns, song fragments, and themes.
|
| 41 |
+
|
| 42 |
+
---
|
| 43 |
+
### **Applications**
|
| 44 |
+
|
| 45 |
+
1. **Songwriting AI Tools:**
|
| 46 |
+
- Generate lyrics for genres like pop, rock, rap, classical, and others.
|
| 47 |
+
|
| 48 |
+
2. **Creative Writing Assistance:**
|
| 49 |
+
- Assist songwriters by suggesting lyric variations and song drafts.
|
| 50 |
+
|
| 51 |
+
3. **Storytelling via Music:**
|
| 52 |
+
- Create song narratives using custom themes and moods.
|
| 53 |
+
|
| 54 |
+
4. **Entertainment AI Integration:**
|
| 55 |
+
- Build virtual musicians or interactive lyric-based content generators.
|
| 56 |
+
|
| 57 |
+
---
|
| 58 |
+
|
| 59 |
+
### **Example Usage**
|
| 60 |
+
|
| 61 |
+
#### **Setup**
|
| 62 |
+
First, load the Llama-Song-Stream model:
|
| 63 |
+
```python
|
| 64 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
| 65 |
+
|
| 66 |
+
model_name = "prithivMLmods/Llama-Song-Stream-3B-Instruct"
|
| 67 |
+
tokenizer = AutoTokenizer.from_pretrained(model_name)
|
| 68 |
+
model = AutoModelForCausalLM.from_pretrained(model_name)
|
| 69 |
+
```
|
| 70 |
+
|
| 71 |
+
---
|
| 72 |
+
|
| 73 |
+
#### **Generate Lyrics Example**
|
| 74 |
+
```python
|
| 75 |
+
prompt = "Write a song about freedom and the open sky"
|
| 76 |
+
inputs = tokenizer(prompt, return_tensors="pt")
|
| 77 |
+
outputs = model.generate(**inputs, max_length=100, temperature=0.7, num_return_sequences=1)
|
| 78 |
+
|
| 79 |
+
generated_lyrics = tokenizer.decode(outputs[0], skip_special_tokens=True)
|
| 80 |
+
print(generated_lyrics)
|
| 81 |
+
```
|
| 82 |
+
|
| 83 |
+
---
|
| 84 |
+
|
| 85 |
+
### **Deployment Notes**
|
| 86 |
+
|
| 87 |
+
1. **Serverless vs. Dedicated Endpoints:**
|
| 88 |
+
The model currently does not have enough usage for a serverless endpoint. Options include:
|
| 89 |
+
- **Dedicated inference endpoints** for faster responses.
|
| 90 |
+
- **Custom integrations via Hugging Face inference tools.**
|
| 91 |
+
|
| 92 |
+
2. **Resource Requirements:**
|
| 93 |
+
Ensure sufficient GPU memory and compute for large PyTorch model weights.
|
| 94 |
+
|
| 95 |
+
---
|