amkhrjee commited on
Commit
49978a4
·
verified ·
1 Parent(s): 65e8669

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +63 -0
README.md ADDED
@@ -0,0 +1,63 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ base_model: unsloth/llama-3.2-1b-instruct-bnb-4bit
3
+ library_name: peft
4
+ pipeline_tag: text-generation
5
+ license: llama3.2
6
+ language:
7
+ - en
8
+ datasets:
9
+ - amkhrjee/blackadder-conversation
10
+ tags:
11
+ - base_model:adapter:unsloth/llama-3.2-1b-instruct-bnb-4bit
12
+ - lora
13
+ - sft
14
+ - trl
15
+ - unsloth
16
+ - peft
17
+ - roleplay
18
+ - character
19
+ - blackadder
20
+ ---
21
+
22
+ # Blackadder-1B
23
+
24
+ <img src="https://i.pinimg.com/736x/f9/1e/49/f91e497cff77c206c5ab68f25b092467.jpg" alt="Blackadder" width="300">
25
+
26
+ A LoRA adapter that turns **Llama-3.2-1B-Instruct** into **Edmund Blackadder** from the BBC series *Blackadder*.
27
+
28
+ > **You:** Do you have a plan?
29
+
30
+ > **Blackadder:** Yes, I do. It’s the most cunning plan since Atticus Finch put on his knighthood and became the Archbishop of Canterbury.
31
+
32
+ ## Model Details
33
+
34
+ - **Developed by:** [amkhrjee](https://huggingface.co/amkhrjee)
35
+ - **Model type:** Causal LM (LoRA adapter for instruction-tuned chat)
36
+ - **Base model:** [`unsloth/llama-3.2-1b-instruct-bnb-4bit`](https://huggingface.co/unsloth/llama-3.2-1b-instruct-bnb-4bit) (Llama 3.2 1B Instruct)
37
+ - **Language:** English
38
+ - **License:** [Llama 3.2 Community License](https://github.com/meta-llama/llama-models/blob/main/models/llama3_2/LICENSE)
39
+ - **Finetuned with:** [Unsloth](https://github.com/unslothai/unsloth) + [TRL](https://github.com/huggingface/trl) (PEFT/LoRA)
40
+
41
+ ## Training Details
42
+
43
+ ### Data
44
+
45
+ Fine-tuned on [`amkhrjee/blackadder-conversation`](https://huggingface.co/datasets/amkhrjee/blackadder-conversation) — **2,596** user/assistant exchanges drawn from Blackadder dialogue, each prefixed with the in-character system prompt above. Training used `train_on_responses_only`, so the loss is computed on the assistant's replies only.
46
+
47
+ ### Hyperparameters
48
+
49
+ | | |
50
+ |---|---|
51
+ | Method | LoRA (rsLoRA) |
52
+ | Rank (`r`) | 128 |
53
+ | `lora_alpha` | 64 |
54
+ | `lora_dropout` | 0 |
55
+ | Target modules | all linear layers |
56
+ | Epochs | 3 |
57
+ | Effective batch size | 32 (4 × 8 grad accum) |
58
+ | Optimizer | `adamw_8bit` |
59
+ | Learning rate | 2e-4 (linear, 5 warmup steps) |
60
+ | Weight decay | 0.001 |
61
+ | Precision | bf16 |
62
+ | Seed | 42 |
63
+ | Trainable params | 90.2M / 1.33B (6.8%) |