phanerozoic
commited on
Commit
•
23f0eb9
1
Parent(s):
bbfc665
Update README.md
Browse files
README.md
CHANGED
@@ -1,3 +1,67 @@
|
|
1 |
---
|
2 |
license: cc-by-nc-4.0
|
|
|
|
|
|
|
|
|
|
|
|
|
3 |
---
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
1 |
---
|
2 |
license: cc-by-nc-4.0
|
3 |
+
language:
|
4 |
+
- en
|
5 |
+
widget:
|
6 |
+
- text: |
|
7 |
+
Assistant: Hail and well met! What medieval queries can I embark upon for you today?
|
8 |
+
example_title: "The Code of Chivalry"
|
9 |
---
|
10 |
+
![tinyknight.png](https://huggingface.co/phanerozoic/Tiny-Knight-1.1b-v0.1/blob/main/tinyknight.png)
|
11 |
+
# Tiny Knight-1.1b-v0.1
|
12 |
+
|
13 |
+
Tiny Knight-1.1b-v0.1 is a specialized language model crafted for generating knight and medieval-themed content. This iteration is built upon the foundations of TinyLlama-1.1B-Chat-v1.0, tailored to operate within environments constrained by computing resources.
|
14 |
+
|
15 |
+
### Performance
|
16 |
+
This model excels in weaving narratives filled with chivalry, valor, and the intricate details of medieval life. Its specialization, however, limits its effectiveness in broader language tasks, especially those requiring detailed knowledge outside the medieval theme.
|
17 |
+
|
18 |
+
### Direct Use
|
19 |
+
Tiny Knight-1.1b-v0.1 is particularly suited for generating content within medieval, knightly, or fantasy settings, ideal for storytelling, educational content, and thematic exploration. It is not recommended for general-purpose tasks or technical domains.
|
20 |
+
|
21 |
+
### Context Setting and Interaction Guidelines
|
22 |
+
Given its specialized nature, Tiny Knight-1.1b-v0.1 benefits significantly from detailed context-setting. Providing a rich thematic backdrop in prompts enhances the model's performance, guiding it to generate more accurate and immersive content.
|
23 |
+
|
24 |
+
#### Initial Context Setting:
|
25 |
+
- text: |
|
26 |
+
Assistant: Hail and well met! I'm here to recount tales of valor and chivalry. What stories from the age of knights and castles would you like to explore?
|
27 |
+
example_title: "Initiating Medieval Themed Conversation"
|
28 |
+
|
29 |
+
- text: |
|
30 |
+
Assistant: Greetings, traveler! The annals of history are open to us. Ask me anything about the realm of knights, the intricacies of medieval life, or the lore of legendary artifacts!
|
31 |
+
example_title: "Engaging in Medieval Themed Dialogue"
|
32 |
+
|
33 |
+
### Training Data
|
34 |
+
Incorporates a dataset focused on knightly tales, medieval history, and literature, derived from the foundational TinyLlama-1.1B model.
|
35 |
+
|
36 |
+
### Custom Stopping Strings
|
37 |
+
Custom stopping strings were used to refine output quality:
|
38 |
+
|
39 |
+
- "},"
|
40 |
+
- "User:"
|
41 |
+
- "You:"
|
42 |
+
- "\nUser"
|
43 |
+
- "\nUser:"
|
44 |
+
- "me:"
|
45 |
+
- "user"
|
46 |
+
- "\n"
|
47 |
+
|
48 |
+
### Training Hyperparameters and Fine-Tuning Details
|
49 |
+
- **Base Model Name**: TinyLlama-1.1B-Chat-v1.0
|
50 |
+
- **Base Model Class**: LlamaForCausalLM
|
51 |
+
- **Projections**: gate, down, up, q, k, v, o
|
52 |
+
- **LoRA Rank**: 16
|
53 |
+
- **LoRA Alpha**: 32
|
54 |
+
- **True Batch Size**: 32
|
55 |
+
- **Gradient Accumulation Steps**: 1
|
56 |
+
- **Epochs**: 2
|
57 |
+
- **Learning Rate**: 3e-4
|
58 |
+
- **LR Scheduler**: Linear
|
59 |
+
|
60 |
+
### Limitations
|
61 |
+
While adept at producing themed content, Tiny Knight-1.1b-v0.1's applicability is limited outside its specialized domain of knights and medieval themes.
|
62 |
+
|
63 |
+
### Summary
|
64 |
+
Tiny Knight-1.1b-v0.1 represents a significant advancement in thematic language models, offering a specialized tool for exploring the medieval era. Its emphasis on context for optimal performance and the use of custom stopping strings make it a sophisticated asset for generating historically rich content.
|
65 |
+
|
66 |
+
### Acknowledgments
|
67 |
+
Special thanks to the TinyLlama-1.1B team, whose pioneering work laid the groundwork for the creation of Tiny Knight-1.1b-v0.1.
|