RootYuan commited on
Commit
f9db62a
1 Parent(s): 790226e

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +173 -3
README.md CHANGED
@@ -2,8 +2,6 @@
2
  license: apache-2.0
3
  ---
4
 
5
- RedLing-7B was finrtuned based on RedPajama-7B.
6
-
7
  ````
8
  from transformers import AutoTokenizer, AutoModelForCausalLM, TextIteratorStreamer, StoppingCriteria, StoppingCriteriaList
9
 
@@ -20,7 +18,7 @@ class StopOnTokens(StoppingCriteria):
20
  ````
21
  PROMPT_TEMPLATE = "USER:{user}<EOT>ASSISTANT:"
22
 
23
- user = "Put your prompts here."
24
  prompts = PROMPT_TEMPLATE.format(user=user)
25
  inputs = tokenizer(prompts, return_tensors="pt")
26
 
@@ -35,3 +33,175 @@ ans = tokenizer.decode(outputs[0])[[len(prompts):]]
35
 
36
  ````
37
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
2
  license: apache-2.0
3
  ---
4
 
 
 
5
  ````
6
  from transformers import AutoTokenizer, AutoModelForCausalLM, TextIteratorStreamer, StoppingCriteria, StoppingCriteriaList
7
 
 
18
  ````
19
  PROMPT_TEMPLATE = "USER:{user}<EOT>ASSISTANT:"
20
 
21
+ user = "Create a daily itinerary based on the given information. Our family is looking for a 9-day Morocco trip that has light to moderate activity levels."
22
  prompts = PROMPT_TEMPLATE.format(user=user)
23
  inputs = tokenizer(prompts, return_tensors="pt")
24
 
 
33
 
34
  ````
35
 
36
+ RedLing-7B was finrtuned based on RedPajama-7B. Here are some amazing results.
37
+
38
+ 1.
39
+ USER:
40
+ Design a syllabus for the given course. Students should be given a list of the chapters with brief explanations of each chapter's purpose.
41
+ Programming for Everybody (Getting Started with Python)
42
+
43
+ ASSISTANT:
44
+ Welcome to Programming for Everybody (Getting Started with Python)! In this course, we will cover the basics of programming in Python. We will start with the basics of Python syntax and data types, and then move on to more advanced topics such as control structures, functions, and object-oriented programming. By the end of the course, you will have a solid understanding of programming in Python and be ready to start creating your own programs.
45
+
46
+ Chapter 1: Introduction to Programming
47
+ - Introduction to programming
48
+ - Installing Python
49
+ - Setting up a development environment
50
+ - Hello, World!
51
+
52
+ Chapter 2: Control Structures
53
+ - Control structures
54
+ - Loops
55
+ - If-else statements
56
+ - For loops
57
+ - While loops
58
+ - Break and continue statements
59
+
60
+ Chapter 3: Functions
61
+ - Functions
62
+ - Creating a function
63
+ - Calling a function
64
+ - Returning from a function
65
+ - Passing functions as arguments
66
+
67
+ Chapter 4: Objects and Classes
68
+ - Objects and classes
69
+ - Creating objects
70
+ - Inheritance and polymorphism
71
+ - Accessing object attributes and methods
72
+
73
+ Chapter 5: Data Types
74
+ - Data types
75
+ - Integers
76
+ - Floating-point numbers
77
+ - Strings
78
+ - Lists
79
+ - Tuples
80
+ - Dictionaries
81
+
82
+ Chapter 6: Control Structures Part 2
83
+ - Control structures part 2
84
+ - Advanced loops
85
+ - Advanced control structures
86
+
87
+ Chapter 7: File I/O
88
+ - File I/O
89
+ - Reading and writing files
90
+ - Opening files
91
+ - Closing files
92
+
93
+ Chapter 8: Web Development
94
+ - Web development
95
+ - HTML
96
+ - CSS
97
+ - JavaScript
98
+ - Web APIs
99
+
100
+ Chapter 9: Testing
101
+ - Testing
102
+ - Unit testing
103
+ - Integration testing
104
+ - System testing
105
+
106
+ Chapter 10: Advanced Topics
107
+ - Advanced topics
108
+ - Object-oriented programming
109
+ - Functional programming
110
+ - Concurrency and parallelism
111
+ - Data visualization
112
+
113
+ Congratulations on completing Programming for Everybody (Getting Started with Python)!
114
+
115
+
116
+ 2.
117
+ USER:
118
+ List the personality traits that are required to be successful in the given job.
119
+ Social Media Marketer
120
+
121
+ ASSISTANT:
122
+ The personality traits required to be successful in the job of a social media marketer include creativity, adaptability, attention to detail, excellent communication skills, and the ability to work well under pressure
123
+
124
+
125
+ 3.
126
+ USER:
127
+ Please list the courses that someone interested in the first course might like.
128
+ Bitcoin and Cryptocurrency Technologies
129
+
130
+ ASSISTANT:
131
+ If someone is interested in the first course, they might also be interested in the following courses:
132
+ - Introduction to Blockchain
133
+ - Cryptography and Network Security
134
+ - Digital Currencies and Their Impact on the Financial System
135
+
136
+
137
+ 4.
138
+ USER:
139
+ Come up with the courses that one is supposed to take in order to be an expert in a given field.
140
+ Graphic Design
141
+
142
+ ASSISTANT:
143
+ To be an expert in graphic design, one should take courses in typography, layout, color theory, and design history. Additionally, one should have experience working with various design software such as Adobe Photoshop, Illustrator, and InDesign.
144
+
145
+ ASSISTANT2:
146
+ To become an expert in graphic design, one should take courses in typography, layout design, color theory, and visual communication. Additionally, one should gain practical experience through internships or freelance work.
147
+
148
+ ChatGPT:
149
+ Both response1 and response2 provide valuable information on the courses one should take to become an expert in graphic design. However, if we were to compare the two, response2 provides slightly more comprehensive information by mentioning visual communication as an important aspect of graphic design. It also emphasizes the importance of gaining practical experience through internships or freelance work, which is an essential component of becoming an expert in any field. Therefore, response2 can be considered slightly better in terms of providing a more well-rounded perspective on the necessary courses and experiences for becoming an expert in graphic design.
150
+
151
+
152
+ 5.
153
+ USER:
154
+ Create a daily itinerary based on the given information.
155
+ Our family is looking for a 9-day Morocco trip that has light to moderate activity levels.
156
+
157
+ ASSISTANT:
158
+ Morocco is a great choice for a family trip. Here's a 9-day itinerary that includes light to moderate activity levels:
159
+
160
+ Day 1: Arrival in Marrakech and visit the Bahia Palace and the Saadian Tombs.
161
+ Day 2: Visit the Majorelle Gardens and the Menara Gardens.
162
+ Day 3: Take a camel ride in the Sahara Desert.
163
+ Day 4: Visit the Ait Ben Haddou Kasbah and the Ouzoud Waterfalls.
164
+ Day 5: Visit the Djemaa el Fna square and the Ben Youssef Medersa.
165
+ Day 6: Take a cooking class and learn how to make traditional Moroccan dishes.
166
+ Day 7: Visit the Kasbah of the Udayas and the Hassan II Mosque.
167
+ Day 8: Visit the Dakhla Oasis and the Todra Gorge.
168
+ Day 9: Departure from Marrakech.
169
+
170
+ This itinerary includes a mix of city exploration, outdoor activities, and cultural experiences. It's a great way to see the highlights of Morocco while staying active and engaged.
171
+
172
+
173
+ 6.
174
+ instruction:
175
+ Give students tips on how to keep their nerves under control during class presentations.
176
+
177
+ response1:
178
+ 1. Practice, practice, practice: The more you practice, the more comfortable you will become with the material and the delivery.
179
+
180
+ 2. Use visual aids: Visual aids such as slides or props can help keep your audience engaged and prevent you from feeling nervous.
181
+
182
+ 3. Use vocal variety: Vary your tone, pitch, and volume to keep your audience interested.
183
+
184
+ 4. Focus on breathing: Take deep breaths before and during your presentation to calm your nerves.
185
+
186
+ 5. Use positive self-talk: Tell yourself that you are capable and prepared for the task at hand.
187
+
188
+ 6. Seek support: Reach out to friends, family, or a professional mentor for support and encouragement.
189
+
190
+ 7. Be confident: Believe in yourself and your ability to deliver a successful presentation.
191
+
192
+ 8. Visualize success: Imagine yourself delivering a successful presentation and receiving positive feedback from your audience.
193
+
194
+ 9. Eliminate distractions: Try to eliminate any potential distractions before your presentation, such as turning off your phone or finding a quiet place to take notes.
195
+
196
+ 10. Take a break: If you feel overwhelmed or stressed during your presentation, take a break and come back with fresh energy and focus.
197
+
198
+ response2:
199
+ Here are some tips to help students keep their nerves under control during class presentations:
200
+ 1. Practice your presentation beforehand to feel more confident.
201
+ 2. Take deep breaths to calm yourself down.
202
+ 3. Visualize a successful presentation to boost your confidence.
203
+ 4. Use positive self-talk to motivate yourself.
204
+ 5. Focus on the content of your presentation rather than the audience.
205
+ 6. Engage with the audience by making eye contact and asking questions.
206
+ 7. Be aware of your body language and posture to project confidence.
207
+ 8. Take a break if you feel overwhelmed.