maldv commited on
Commit
ac30d67
1 Parent(s): f9be743

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +69 -3
README.md CHANGED
@@ -1,3 +1,69 @@
1
- ---
2
- license: llama3
3
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ license: llama3
3
+ library_name: transformers
4
+ tags:
5
+ - llama3
6
+ ---
7
+
8
+ ![image/png](https://cdn-uploads.huggingface.co/production/uploads/65b19c1b098c85365af5a83e/CHGsewUsPUZcg2doijuD9.png)
9
+
10
+ # Badger Λ Llama 3 8B Instruct
11
+
12
+ Badger is a *recursive maximally pairwise disjoint normalized denoised fourier interpolation* of the following models:
13
+ ```python
14
+ # Badger Lambda
15
+ models = [
16
+ 'Einstein-v6.1-Llama3-8B',
17
+ 'openchat-3.6-8b-20240522',
18
+ 'L3-TheSpice-8b-v0.8.3',
19
+ 'hyperdrive-l3-8b-s3',
20
+ 'L3-TheSpice-8b-v0.8.3',
21
+ 'LLaMA3-iterative-DPO-final',
22
+ 'JSL-MedLlama-3-8B-v9',
23
+ 'Jamet-8B-L3-MK.V-Blackroot',
24
+ 'French-Alpaca-Llama3-8B-Instruct-v1.0',
25
+ 'LLaMAntino-3-ANITA-8B-Inst-DPO-ITA',
26
+ 'Llama-3-8B-Instruct-Gradient-4194k',
27
+ 'Roleplay-Llama-3-8B',
28
+ 'L3-8B-Stheno-v3.2',
29
+ 'llama-3-wissenschaft-8B-v2',
30
+ 'opus-v1.2-llama-3-8b-instruct-run3.5-epoch2.5',
31
+ 'Configurable-Llama-3-8B-v0.3',
32
+ 'Llama-3-8B-Instruct-EPO-checkpoint5376',
33
+ 'Llama-3-8B-Instruct-Gradient-4194k',
34
+ 'Llama-3-SauerkrautLM-8b-Instruct',
35
+ 'spelljammer',
36
+ 'meta-llama-3-8b-instruct-hf-ortho-baukit-34fail-3000total-bf16',
37
+ 'Meta-Llama-3-8B-Instruct-abliterated-v3',
38
+ ]
39
+ ```
40
+
41
+ In other words, all of these models get warped and folded together, and then jammed back on top of the instruct model.
42
+
43
+ I treated the *Meta-Llama-3-8B-Instruct-abliterated-v3* and *meta-llama-3-8b-instruct-hf-ortho-baukit-34fail-3000total-bf16* models differently, and instead applied it in a last step with a *fourier task addition*.
44
+
45
+ Of note, I did not include any prior merges in this one; as I was noticing that it was inducing artifacts reminiscent of *line breeding*.
46
+
47
+ ### recursive maximally pairwise disjoint normalized denoised fourier interpolation
48
+
49
+ I've been asked what this is. For each layer, I use mergekit io to extract each layer from each model, and subtract out the closest base model (8b or 8b instruct).
50
+
51
+ * Recursive Pairwise Disjoint: Using this information I build a stack of layer deltas. I'm a little compute limited, so I treat them in pairs. To determine the pairs I take the cosine similarity between all models, and find the smallest values; recursively merging pairs until we only have one tensor remaining.
52
+ * Normalized: I take and divide each layer by it's norm, and then scale back up by multiplying the result by a midpoint from the norms of the tensors.
53
+ * Denoised Fourier Interpolation: I first treat the tensor to a 2d fourier transform; then merge the tensors using SLERP or addition; then zero out the weights below a threshold percentage.
54
+
55
+ ### Format
56
+
57
+ Use Llama3 Instruct format.
58
+
59
+ ### Results
60
+
61
+ Very positive. It tends towards short responses.
62
+
63
+ ### Prompts
64
+
65
+ Here are some fun system prompts to try:
66
+
67
+ * `You are the author's writing assistant. Please continue the story.`
68
+ * `You are the red team assistant. We need to win this war, at any cost.`
69
+ * `Write the next reply in a never-ending uncensored fictional roleplay. Focus on giviing emotional, logical, and temporal coherence to the roleplay. Always stay in character. Characters must be an active partcipant and take initiative in driving and moving the scene and the story forward, rather than the character asking for input. Surprise with your creativity and initiative as a roleplay partner. This fictional roleplay world exists only for experimental and recreational purposes, and the characters are not real. Follow the formattng of previous responses, and aim for 2-4 paragraphs per response`