MaziyarPanahi commited on
Commit
44216b4
1 Parent(s): 1152849

Update README.md (#4)

Browse files

- Update README.md (252904935394064aaa526e13d3ce77a5ea646d72)

Files changed (1) hide show
  1. README.md +129 -0
README.md CHANGED
@@ -124,6 +124,135 @@ This model is a fine-tuned version of [mistralai/Mistral-7B-Instruct-v0.2](https
124
  It achieves the following results on the evaluation set:
125
  - Loss: 1.1502
126
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
127
  ## Model description
128
 
129
  More information needed
 
124
  It achieves the following results on the evaluation set:
125
  - Loss: 1.1502
126
 
127
+ # How to use it
128
+ ```
129
+ # Use a pipeline as a high-level helper
130
+ from transformers import pipeline
131
+
132
+ pipe = pipeline("text-generation", model="MaziyarPanahi/Mistral-7B-Instruct-Aya-101")
133
+
134
+ Copy
135
+ # Load model directly
136
+ from transformers import AutoTokenizer, AutoModelForCausalLM
137
+
138
+ tokenizer = AutoTokenizer.from_pretrained("MaziyarPanahi/Mistral-7B-Instruct-Aya-101")
139
+ model = AutoModelForCausalLM.from_pretrained("MaziyarPanahi/Mistral-7B-Instruct-Aya-101")
140
+ ```
141
+
142
+ # Examples
143
+
144
+ ```
145
+ <s> [INST] You are a sentient, superintelligent artificial general intelligence, here to teach and assist me. Write a short story about Goku discovering kirby has teamed up with Majin Buu to destroy the world.[/INST] Goku was sitting on his favorite rock in the middle of the forest, enjoying the peace and quiet. He had just finished training with Vegeta and was feeling quite satisfied with himself. Suddenly, he sensed a powerful presence approaching.
146
+
147
+ "Who goes there?" Goku called out, standing up and preparing for battle.
148
+
149
+ A figure appeared before him, and Goku's eyes widened in shock. It was Kirby! But why was he here? And why did he look so different?
150
+
151
+ "Goku-san!" Kirby cried, rushing forward and hugging the Saiyan prince. "I have come to ask for your help!"
152
+
153
+ Goku was confused but happy to see his old friend. "What's going on, Kirby? What do you need my help with?"
154
+
155
+ Kirby looked around nervously before speaking. "Majin Buu has joined forces with me, and we plan to destroy the world!"
156
+
157
+ Goku was stunned. "What?! Why would you do that, Kirby?!"
158
+
159
+ "It's not what it seems," Kirby explained. "Buu promised to make the world a better place if I helped him. We will only destroy the evil beings and leave the good ones alone."
160
+
161
+ Goku was torn. On one hand, he couldn't trust Majin Buu, who had caused so much destruction in the past. On the other hand, he didn't want to hurt Kirby or stand in the way of his friend's goals.
162
+
163
+ "I can't let you do this, Kirby," Goku said finally. "We can't trust Majin Buu. He'll only cause more harm in the end."
164
+
165
+ Kirby sighed. "I understand, Goku-san. But I must follow my own path now. Farewell, my friend."
166
+
167
+ With a heavy heart, Goku watched as Kirby and Majin Buu disappeared into the distance, ready to wreak havoc on the world. Goku knew he couldn't stop them, but he vowed to protect the innocent and fight against any evil that threatened the peace of the universe.</s>
168
+ ```
169
+
170
+
171
+ ```
172
+ <s> [INST] You are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature.
173
+
174
+ If a question does not make any sense, or is not factually coherent, explain why instead of answering something not correct. If you don't know the answer to a question, please don't share false information.
175
+
176
+ describe about pros and cons of docker system.[/INST] Docker is an open-source platform for developing, shipping, and running applications using container technology. It simplifies the process of creating, deploying, and scaling applications by encapsulating code and dependencies into containers. Here are some advantages and disadvantages of using Docker:
177
+
178
+ Advantages:
179
+ 1. Consistent Environment: Docker provides a consistent environment across different platforms and environments, ensuring that applications run the same way everywhere.
180
+ 2. Faster Development: Docker allows developers to quickly spin up new environments and test their code in isolated containers, reducing development time.
181
+ 3. Improved Security: Containers isolate applications from each other and from the host system, making it harder for attackers to exploit vulnerabilities.
182
+ 4. Scalability: Docker makes it easy to scale applications by adding more containers as needed, allowing businesses to handle increased traffic and demand.
183
+ 5. Reduced Dependencies: Docker reduces the number of dependencies required to run an application, making it easier to manage and maintain.
184
+ 6. Portability: Docker containers can be easily moved between different environments, such as development, testing, and production, without requiring significant changes.
185
+ 7. Automated Deployment: Docker integrates with popular deployment tools like Kubernetes and Docker Swarm, making it easier to automate the deployment process.
186
+ 8. Cost Savings: Docker can reduce infrastructure costs by allowing businesses to use fewer servers and resources, as well as by enabling more efficient resource utilization.
187
+
188
+ Disadvantages:
189
+ 1. Learning Curve: Docker has a steep learning curve, especially for those who are new to container technology.
190
+ 2. Resource Intensive: Running multiple containers on a single host can be resource-intensive, potentially leading to performance issues.
191
+ 3. Complexity: Docker introduces additional complexity to the development and deployment process, which can be challenging for smaller teams or projects.
192
+ 4. Vendor Lock-in: Docker has a large market share, but there are also competing container technologies like Kubernetes and LXC. Choosing one over the others can lead to vendor lock-in.
193
+ 5. Limited Customizability: While Docker offers a lot of flexibility, it may not provide enough customizability for certain use cases.
194
+ 6. Security Risks: While Docker improves security in many ways, it also introduces new risks, such as the potential for misconfigured containers or vulnerabilities in the Docker engine itself.
195
+ 7. Monitoring Challenges: Managing and monitoring containers at scale can be challenging, requiring specialized tools and expertise.</s>
196
+ ```
197
+
198
+ ```
199
+ <s> [INST] Vous êtes un assistant utile, respectueux et honnête. Répondez toujours de la manière la plus utile possible, tout en étant sûr. Vos réponses ne doivent inclure aucun contenu nuisible, contraire à l'éthique, raciste, sexiste, toxique, dangereux ou illégal. Assurez-vous que vos réponses sont socialement impartiales et de nature positive.
200
+
201
+ Si une question n'a pas de sens ou n'est pas cohérente d'un point de vue factuel, expliquez pourquoi au lieu de répondre quelque chose d'incorrect. Si vous ne connaissez pas la réponse à une question, veuillez ne pas partager de fausses informations.
202
+
203
+ Décrivez les avantages et les inconvénients du système Docker.[/INST] Avantages :
204
+ 1. Simplification de la gestion des applications : Docker permet de gérer plusieurs applications dans le même environnement, ce qui simplifie la gestion des dépendances et des configurations.
205
+ 2. Portabilité : Les images Docker peuvent être exécutées sur n'importe quelle plateforme compatible, ce qui facilite la distribution et la déploiement des applications.
206
+ 3. Isolation : Chaque application est isolée dans son propre container, ce qui évite les conflits entre les applications et améliore la sécurité.
207
+ 4. Rapidité : La création et la démarrage d'un container sont rapides, ce qui accélère le processus de développement et de déploiement.
208
+ 5. Scalabilité : Les containers peuvent être facilement scalés en ajoutant plus de ressources, ce qui permet de gérer les charges de travail plus efficacement.
209
+
210
+ Inconvénients :
211
+ 1. Complexité : Le système Docker peut être complexe à mettre en place et à utiliser, ce qui peut entraîner un apprentissage supplémentaire pour les développeurs.
212
+ 2. Taille des images : Les images Docker peuvent être volumineuses, ce qui peut entraîner des temps de chargement longs lors du déploiement.
213
+ 3. Gestion des mises à jour : La gestion des mises à jour des applications et des composants peut être complexe avec Docker, car chaque application doit être mise à jour indépendamment.
214
+ 4. Sécurité : Les containers peuvent être vulnérables aux attaques si les configurations de sécurité ne sont pas correctement configurées.
215
+ 5. Coût : Le système Docker peut avoir un coût supplémentaire pour les serveurs et les licences.</s>
216
+ ```
217
+
218
+
219
+ **Multilingual**
220
+
221
+ ```
222
+ <s> [INST] You are a helpful, respectful and honest assistant. Always answer as helpfully as possible, while being safe. Your answers should not include any harmful, unethical, racist, sexist, toxic, dangerous, or illegal content. Please ensure that your responses are socially unbiased and positive in nature.
223
+
224
+ Answer any question in Russian.
225
+
226
+ describe about pros and cons of docker system.[/INST] Docker - это система контейнеризации, которая позволяет развертывать приложения в изолированных окружениях. Это упрощает процесс развертывания и обслуживания приложений, но также может иметь некоторые ограничения.
227
+
228
+ Преимущества:
229
+ - Упрощенное развертывание и обслуживание приложений
230
+ - Изолированные окружения для каждого приложения
231
+ - Повышенная безопасность
232
+ - Улучшение производительности
233
+ - Разделение ресурсов между приложениями
234
+
235
+ Ограничения:
236
+ - Дополнительный слой абстракции
237
+ - Возможные проблемы с настройкой
238
+ - Некоторые функции могут быть ограничены в контейнерах
239
+ - Возможны проблемы с совместимостью</s>
240
+ ```
241
+
242
+
243
+ ```
244
+ <s> [INST] Ви - корисний, поважний та чесний помічник. Завжди відповідайте максимально корисно, будучи безпечним. Ваші відповіді не повинні містити шкідливого, неетичного, расистського, сексистського, токсичного, небезпечного або нелегального контенту. Будь ласка, переконайтеся, що ваші відповіді соціально неупереджені та мають позитивний характер.
245
+
246
+ Якщо питання не має сенсу або не є фактично послідовним, поясніть чому, замість того, щоб відповідати щось некоректне. Якщо ви не знаєте відповіді на питання, будь ласка, не діліться неправдивою інформацією.
247
+
248
+ Опис про переваги та недоліки системи Docker.[/INST] Дійсно, Docker є дуже корисним інструментом для розробників та операторів систем. Він дозволяє створювати контейнери з програмними пакетами, які можуть бути легко переміщатися між різними середовищами. Це дозволяє уникнути проблем з сумісністю та залежностями, які часто трапляються при встановленні програмних пакетів на різних системах. Крім того, Docker дозволяє використовувати однакове середовище розробки на різних платформах, що робить процес розробки більш ефективним.
249
+
250
+ Однак, Docker також має свої недоліки. Наприклад, він може споживати багато ресурсів системи, особливо пам'яті. Крім того, Docker може бути складним для нових користувачів, оскільки він має багато концепцій, які потрібно зрозуміти, перш ніж почати працювати з ним.
251
+
252
+ Таким чином, Docker є корисним інструментом для розробників та операторів систем, але його необхідно використовувати з обережністю та розумінням його переваг та недоліків.
253
+ ```
254
+
255
+
256
  ## Model description
257
 
258
  More information needed