Solshine commited on
Commit
0bfeb71
1 Parent(s): 9217c42

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +44 -4
README.md CHANGED
@@ -2,7 +2,7 @@
2
  base_model: Solshine/reflection-llama-3.1-8B-Solshine-trainround4-16bit
3
  language:
4
  - en
5
- license: apache-2.0
6
  tags:
7
  - text-generation-inference
8
  - transformers
@@ -10,14 +10,54 @@ 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-trainround4-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)
 
2
  base_model: Solshine/reflection-llama-3.1-8B-Solshine-trainround4-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
+ - reflection-tuning
15
+ datasets:
16
+ - mahiatlinux/Reflection-Dataset-v2
17
+ - Harshkmr/orca-math-word-reflection
18
  ---
19
 
20
+ **This model is TrainRound5, following Solshine/reflection-llama-3.1-8B-Solshine-trainround4-16bit in an iterative fine-tuning process**
21
+
22
  # Uploaded model
23
 
24
+ - **Developed by:** Solshine (Caleb DeLeeuw)
25
+ - **License:** llama 3.1
26
  - **Finetuned from model :** Solshine/reflection-llama-3.1-8B-Solshine-trainround4-16bit
27
 
28
+ Inspired by and featuring the Reflection Tuning technique pioneered by Matt Shumer (possibly earlier innovated by the team at Anthropic.)
29
+
30
+ *To the authors' knowledge, this is V4 of the first "reflection tuned" Llama 3.1 8B LLM*
31
+
32
+
33
+ **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) :**
34
+
35
+ '''
36
+
37
+ 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.
38
+
39
+ This enables the model to separate its internal thoughts and reasoning from its final answer, improving the experience for the user.
40
+
41
+ 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.
42
+
43
+ System Prompt:
44
+ The system prompt used for training this model is:
45
+
46
+ 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.
47
+
48
+ 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.
49
+
50
+ Chat Format:
51
+ As mentioned above, the model uses the standard Llama 3.1 chat format. Here’s an example:
52
+
53
+ <|begin_of_text|><|start_header_id|>system<|end_header_id|>
54
+
55
+ 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|>
56
+
57
+ what is 2+2?<|eot_id|><|start_header_id|>assistant<|end_header_id|>
58
+
59
+ '''
60
+
61
  This llama model was trained 2x faster with [Unsloth](https://github.com/unslothai/unsloth) and Huggingface's TRL library.
62
 
63
+ [<img src="https://raw.githubusercontent.com/unslothai/unsloth/main/images/unsloth%20made%20with%20love.png" width="200"/>](https://github.com/unslothai/unsloth)