erfanzar commited on
Commit
9552eb2
1 Parent(s): 421fc00

Create README.md

Browse files
Files changed (1) hide show
  1. README.md +46 -0
README.md ADDED
@@ -0,0 +1,46 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ datasets:
3
+ - erfanzar/UltraChat-Mixin
4
+ language:
5
+ - en
6
+ - fr
7
+ - es
8
+ metrics:
9
+ - accuracy
10
+ pipeline_tag: text-generation
11
+ tags:
12
+ - code
13
+ ---
14
+
15
+ # LinguaMatic
16
+
17
+ LinguaMatic is an advanced AI model designed to handle a wide range of Natural Language Processing (NLP) tasks. With its powerful capabilities, LinguaMatic can assist with tasks such as text classification, sentiment analysis, language translation, question answering, and much more.
18
+
19
+ ## EasyDel
20
+
21
+ The model is finetuned Using a custom version of UltraChat on TPU-v4 POD using [EasyDel](https://github.com/erfanzar/EasyDeL)
22
+
23
+ ## Prompting Method
24
+
25
+ LinguaMatic utilizes the llama2 prompting method to generate responses. This method, named after the friendly and intelligent llama, enhances the model's ability to engage in meaningful conversations. The `prompt_model` function provided below demonstrates how the llama2 prompting method is implemented:
26
+
27
+ ```python
28
+ def prompt_model(message: str, chat_history,
29
+ system_prompt: str) -> str:
30
+ do_strip = False
31
+ texts = [f'<s>[INST] <<SYS>>\n{system_prompt}\n<</SYS>>\n\n']
32
+ for user_input, response in chat_history:
33
+ user_input = user_input.strip() if do_strip else user_input
34
+ do_strip = True
35
+ texts.append(f'{user_input} [/INST] {response.strip()} </s><s>[INST] ')
36
+ message = message.strip() if do_strip else message
37
+ texts.append(f'{message} [/INST]')
38
+ return ''.join(texts)
39
+ ```
40
+
41
+ The `prompt_model` function takes a `message` as input, along with the `chat_history` and `system_prompt`. It generates a formatted text that includes the system prompt, user inputs, and the current message. This approach allows LinguaMatic to maintain context and provide more coherent and context-aware responses.
42
+
43
+
44
+ ## Contributing
45
+
46
+ We welcome contributions to enhance LinguaMatic's capabilities and improve its performance. If you encounter any issues or have suggestions for improvement, please feel free to submit a pull request or open an issue on [EasyDel](https://github.com/erfanzar/EasyDeL) GitHub repository.