File size: 2,765 Bytes
26aaeda
 
23f0eb9
 
 
 
c083528
23f0eb9
26aaeda
36ec083
23f0eb9
 
 
 
 
189a437
23f0eb9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
fe14035
23f0eb9
 
fe14035
 
23f0eb9
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
---
license: cc-by-nc-4.0
language:
- en
widget:
  - text: |
      Hail and well met! Pray, what kind of food do ye enjoy supping upon?
    example_title: "The Code of Chivalry"
---
![tinyknight.png](https://huggingface.co/phanerozoic/Tiny-Knight-1.1b-v0.1/resolve/bbfc665ce3af9d4d73e199b89144b30d668f50aa/tinyknight.png)
# Tiny Knight-1.1b-v0.1

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.

### Performance
While this model excels in creating knight-themed narratives, its specialization, however, limits its effectiveness in broader language tasks, especially those requiring detailed knowledge outside the medieval theme.

### Direct Use
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.

### Context Setting and Interaction Guidelines
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.

### Training Data
Incorporates a dataset focused on knightly tales, medieval history, and literature, derived from the foundational TinyLlama-1.1B model.

### Custom Stopping Strings
Custom stopping strings were used to refine output quality:

- "},"
- "User:"
- "You:"
- "\nUser"
- "\nUser:"
- "me:"
- "user"
- "\n"

### Training Hyperparameters and Fine-Tuning Details
- **Base Model Name**: TinyLlama-1.1B-Chat-v1.0
- **Base Model Class**: LlamaForCausalLM
- **Projections**: gate, down, up, q, k, v, o
- **LoRA Rank**: 16
- **LoRA Alpha**: 32
- **True Batch Size**: 32
- **Gradient Accumulation Steps**: 1
- **Epochs**: 0.18
- **Learning Rate**: 3e-4
- **LR Scheduler**: Linear
- **Step**: 75
- **Loss**: 1.87

### Limitations
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.

### Summary
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.

### Acknowledgments
Special thanks to the TinyLlama-1.1B team, whose pioneering work laid the groundwork for the creation of Tiny Knight-1.1b-v0.1.