oopere commited on
Commit
7c2d0de
1 Parent(s): d7d01f4

Update readme.md

Browse files
Files changed (1) hide show
  1. README.md +30 -1
README.md CHANGED
@@ -7,4 +7,33 @@ pipeline_tag: text-generation
7
  tags:
8
  - dpo
9
  - phi-3
10
- ---
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
7
  tags:
8
  - dpo
9
  - phi-3
10
+ ---
11
+
12
+ This model has been created as a support for the book "Large Language Models Projects" by Apress, written by Pere Martra.
13
+
14
+ To create it, we started with the Phi-3-Mini-4K-Instruct model and applied DPO alignment using the distilabel-capybara-dpo-7k-binarized dataset.
15
+
16
+ Phi-3 is a state-of-the-art model with 3.8 billion parameters that has outperformed other models with 7 billion parameters. The DPO alignment process has produced good results, modifying the model's responses and making them more similar to those in the capybara dataset.
17
+
18
+ **Row in the Dataset:**
19
+
20
+ *{'prompt': '<|user|>\nAssist me in calculating 9319357631 plus 595. Numbers and symbols only, please.<|end|>\n<|assistant|>\n',
21
+ 'chosen': 'The sum of 9319357631 and 595 is 9319358226.<|end|>\n',
22
+ 'rejected': 'The result of adding 9319357631 and 595 is 9319363626.<|end|>\n'}*
23
+
24
+ **Prompt:**
25
+ *3713841893836/4?
26
+ Limit your response to mathematical expressions and symbols.*
27
+
28
+ **Response from the Base model:**
29
+
30
+ *To find the result of the division, we can simply divide the given number by 4:
31
+ $$
32
+ \frac{3713841893836}{4} = 928460473459*
33
+
34
+ **Response from the fine-tuned model:**
35
+
36
+ *3713841893836 ÷ 4 = 928460473459*
37
+
38
+
39
+ If you want to see how the model was created, you can check out the [repository](https://github.com/peremartra/Large-Language-Model-Notebooks-Course) where the book's notebooks are kept up-to-date.