nguyenbh commited on
Commit
03c1c1c
1 Parent(s): 8b03b36

Update chat format

Browse files
Files changed (1) hide show
  1. README.md +11 -12
README.md CHANGED
@@ -55,15 +55,17 @@ The current `transformers` version can be verified with: `pip list | grep transf
55
 
56
  ### Chat Format:
57
 
58
- 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:
59
-
 
 
 
 
60
  ```markdown
61
  <|system|>
62
- You are a helpful AI assistant.
63
- <|end|>
64
  <|user|>
65
- How to explain Internet for a medieval knight?
66
- <|end|>
67
  <|assistant|>
68
  ```
69
 
@@ -71,14 +73,11 @@ where the model generates the text after `<|assistant|>` . In case of few-shots
71
 
72
  ```markdown
73
  <|system|>
74
- You are a helpful AI assistant.
75
- <|end|>
76
  <|user|>
77
- I am going to Paris, what should I see?
78
- <|end|>
79
  <|assistant|>
80
- 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."
81
- <|end|>
82
  <|user|>
83
  What is so great about #1?
84
  <|assistant|>
 
55
 
56
  ### Chat Format:
57
 
58
+ 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.
59
+ You can provide the prompt as a question with a generic template as follow:
60
+ ```markdown
61
+ <|user|>/nQuestion <|end|>/n <|assistant|>
62
+ ```
63
+ For example:
64
  ```markdown
65
  <|system|>
66
+ You are a helpful AI assistant.<|end|>
 
67
  <|user|>
68
+ How to explain Internet for a medieval knight?<|end|>
 
69
  <|assistant|>
70
  ```
71
 
 
73
 
74
  ```markdown
75
  <|system|>
76
+ You are a helpful AI assistant.<|end|>
 
77
  <|user|>
78
+ I am going to Paris, what should I see?<|end|>
 
79
  <|assistant|>
80
+ 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|>
 
81
  <|user|>
82
  What is so great about #1?
83
  <|assistant|>