edumunozsala commited on
Commit
be8807b
1 Parent(s): a2b4168

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +38 -11
README.md CHANGED
@@ -5,6 +5,8 @@ tags:
5
  - trl
6
  - sft
7
  - generated_from_trainer
 
 
8
  base_model: microsoft/Phi-3-mini-4k-instruct
9
  model-index:
10
  - name: phi-3-mini-LoRA
@@ -14,25 +16,50 @@ model-index:
14
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
15
  should probably proofread and complete it, then remove this comment. -->
16
 
17
- # phi-3-mini-LoRA
18
 
19
- This model is a fine-tuned version of [microsoft/Phi-3-mini-4k-instruct](https://huggingface.co/microsoft/Phi-3-mini-4k-instruct) on an unknown dataset.
20
- It achieves the following results on the evaluation set:
21
- - Loss: 0.5601
22
 
23
- ## Model description
24
 
25
- More information needed
26
 
27
- ## Intended uses & limitations
28
 
29
- More information needed
 
30
 
31
- ## Training and evaluation data
32
 
33
- More information needed
34
 
35
- ## Training procedure
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
36
 
37
  ### Training hyperparameters
38
 
 
5
  - trl
6
  - sft
7
  - generated_from_trainer
8
+ - code
9
+ - python
10
  base_model: microsoft/Phi-3-mini-4k-instruct
11
  model-index:
12
  - name: phi-3-mini-LoRA
 
16
  <!-- This model card has been generated automatically according to the information the Trainer had access to. You
17
  should probably proofread and complete it, then remove this comment. -->
18
 
19
+ # Phi-3-mini 3.8B Python Coder 👩‍💻
20
 
21
+ **Phi-3-mini 3.8B** fine-tuned on the **python_code_instructions_18k_alpaca Code instructions dataset** by using the method **LoRA** with [PEFT](https://github.com/huggingface/peft) library.
 
 
22
 
23
+ ## Pretrained description
24
 
25
+ [Llama-2](https://huggingface.co/meta-llama/Llama-2-7b)
26
 
27
+ The Phi-3-Mini-4K-Instruct is a 3.8B parameters, lightweight, state-of-the-art open model trained with the Phi-3 datasets that includes both synthetic data and the filtered publicly available websites data with a focus on high-quality and reasoning dense properties. The model belongs to the Phi-3 family with the Mini version in two variants 4K and 128K which is the context length (in tokens) that it can support.
28
 
29
+ ## Tokenizer
30
+ Phi-3 Mini-4K-Instruct supports a vocabulary size of up to 32064 tokens. The tokenizer files already provide placeholder tokens that can be used for downstream fine-tuning, but they can also be extended up to the model's vocabulary size.
31
 
32
+ ## Training data
33
 
34
+ [python_code_instructions_18k_alpaca](https://huggingface.co/datasets/iamtarun/python_code_instructions_18k_alpaca)
35
 
36
+ The dataset contains problem descriptions and code in python language. This dataset is taken from sahil2801/code_instructions_120k, which adds a prompt column in alpaca style.
37
+
38
+ ### Chat Format
39
+ Given the nature of the training data, the Phi-3 Mini-4K-Instruct model is best suited for prompts using the chat format as follows. You can provide the prompt as a question with a generic template as follow:
40
+
41
+ ```
42
+ <|user|>\nQuestion <|end|>\n<|assistant|>
43
+ ```
44
+
45
+ For example:
46
+
47
+ ```
48
+ <|user|>
49
+ How to explain Internet for a medieval knight?<|end|>
50
+ <|assistant|>
51
+ ```
52
+
53
+ where the model generates the text after <|assistant|> . In case of few-shots prompt, the prompt can be formatted as the following:
54
+ ```
55
+ <|user|>
56
+ I am going to Paris, what should I see?<|end|>
57
+ <|assistant|>
58
+ Paris, the capital of France, is known for its stunning architecture, art museums, historical landmarks, and romantic atmosphere. Here are some of the top attractions to see in Paris:\n\n1. The Eiffel Tower: The iconic Eiffel Tower is one of the most recognizable landmarks in the world and offers breathtaking views of the city.\n2. The Louvre Museum: The Louvre is one of the world's largest and most famous museums, housing an impressive collection of art and artifacts, including the Mona Lisa.\n3. Notre-Dame Cathedral: This beautiful cathedral is one of the most famous landmarks in Paris and is known for its Gothic architecture and stunning stained glass windows.\n\nThese are just a few of the many attractions that Paris has to offer. With so much to see and do, it's no wonder that Paris is one of the most popular tourist destinations in the world."<|end|>
59
+ <|user|>
60
+ What is so great about #1?<|end|>
61
+ <|assistant|>
62
+ ```
63
 
64
  ### Training hyperparameters
65