Solshine commited on
Commit
3c8d932
1 Parent(s): e0da86e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +42 -5
README.md CHANGED
@@ -1,8 +1,8 @@
1
  ---
2
- base_model: Solshine/reflection-llama-3.1-8B-Solshine-trainround2-16bit
3
  language:
4
  - en
5
- license: apache-2.0
6
  tags:
7
  - text-generation-inference
8
  - transformers
@@ -10,14 +10,51 @@ tags:
10
  - llama
11
  - trl
12
  - sft
 
 
 
 
13
  ---
14
 
15
  # Uploaded model
16
 
17
- - **Developed by:** Solshine
18
- - **License:** apache-2.0
19
  - **Finetuned from model :** Solshine/reflection-llama-3.1-8B-Solshine-trainround2-16bit
20
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
21
  This llama model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.
22
 
23
- [<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)
 
1
  ---
2
+ base_model: Solshine/reflection-llama-3.1-8B-Solshine-trainround3-16bit
3
  language:
4
  - en
5
+ license: llama3.1
6
  tags:
7
  - text-generation-inference
8
  - transformers
 
10
  - llama
11
  - trl
12
  - sft
13
+ - reflection
14
+ datasets:
15
+ - mahiatlinux/Reflection-Dataset-v2
16
+ - Harshkmr/orca-math-word-reflection
17
  ---
18
 
19
  # Uploaded model
20
 
21
+ - **Developed by:** Solshine (Caleb DeLeeuw)
22
+ - **License:** LLama 3.1 License
23
  - **Finetuned from model :** Solshine/reflection-llama-3.1-8B-Solshine-trainround2-16bit
24
 
25
+ Inspired by and featuring the Reflection Tuning technique pioneered by Matt Shumer (possibly earlier innovated by the team at Anthropic.)
26
+
27
+ *To the authors' knowledge, this is V4 of the first "reflection tuned" Llama 3.1 8B LLM*
28
+
29
+
30
+ **As per the inspiring model "mattshumer/Reflection-Llama-3.1-70B" (this mode was not used in the training process nor as a foundational model, but only served as inspiration) :**
31
+
32
+ '''
33
+
34
+ During sampling, the model will start by outputting reasoning inside <thinking> and </thinking> tags, and then once it is satisfied with its reasoning, it will output the final answer inside <output> and </output> tags. Each of these tags are special tokens, trained into the model.
35
+
36
+ This enables the model to separate its internal thoughts and reasoning from its final answer, improving the experience for the user.
37
+
38
+ Inside the <thinking> section, the model may output one or more <reflection> tags, which signals the model has caught an error in its reasoning and will attempt to correct it before providing a final answer.
39
+
40
+ System Prompt:
41
+ The system prompt used for training this model is:
42
+
43
+ You are a world-class AI system, capable of complex reasoning and reflection. Reason through the query inside <thinking> tags, and then provide your final response inside <output> tags. If you detect that you made a mistake in your reasoning at any point, correct yourself inside <reflection> tags.
44
+
45
+ We recommend using this exact system prompt to get the best results from Reflection Llama-3.1 70B. You may also want to experiment combining this system prompt with your own custom instructions to customize the behavior of the model.
46
+
47
+ Chat Format:
48
+ As mentioned above, the model uses the standard Llama 3.1 chat format. Here’s an example:
49
+
50
+ <|begin_of_text|><|start_header_id|>system<|end_header_id|>
51
+
52
+ You are a world-class AI system, capable of complex reasoning and reflection. Reason through the query inside <thinking> tags, and then provide your final response inside <output> tags. If you detect that you made a mistake in your reasoning at any point, correct yourself inside <reflection> tags.<|eot_id|><|start_header_id|>user<|end_header_id|>
53
+
54
+ what is 2+2?<|eot_id|><|start_header_id|>assistant<|end_header_id|>
55
+
56
+ '''
57
+
58
  This llama model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.
59
 
60
+ [<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)