Update README.md
Browse files
README.md
CHANGED
@@ -21,7 +21,7 @@ M-LChat-7b is a merge of the following models using:
|
|
21 |
|
22 |
Apache 2.0 but you cannot use this Model to compete with OpenAI.
|
23 |
|
24 |
-
##
|
25 |
|
26 |
```yaml
|
27 |
slices:
|
@@ -42,7 +42,7 @@ parameters:
|
|
42 |
dtype: bfloat16
|
43 |
```
|
44 |
|
45 |
-
##
|
46 |
|
47 |
```python
|
48 |
!pip install -qU transformers accelerate
|
@@ -52,7 +52,7 @@ import transformers
|
|
52 |
import torch
|
53 |
|
54 |
model = "Artples/M-LChat-7b"
|
55 |
-
messages = [{GPT4 Correct User: What can i do if a lama is in my porch?<|end_of_turn|>GPT4 Correct Assistant:
|
56 |
|
57 |
tokenizer = AutoTokenizer.from_pretrained(model)
|
58 |
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|
|
|
21 |
|
22 |
Apache 2.0 but you cannot use this Model to compete with OpenAI.
|
23 |
|
24 |
+
## Configuration
|
25 |
|
26 |
```yaml
|
27 |
slices:
|
|
|
42 |
dtype: bfloat16
|
43 |
```
|
44 |
|
45 |
+
## Usage
|
46 |
|
47 |
```python
|
48 |
!pip install -qU transformers accelerate
|
|
|
52 |
import torch
|
53 |
|
54 |
model = "Artples/M-LChat-7b"
|
55 |
+
messages = [{GPT4 Correct User: What can i do if a lama is in my porch?<|end_of_turn|>GPT4 Correct Assistant:}]
|
56 |
|
57 |
tokenizer = AutoTokenizer.from_pretrained(model)
|
58 |
prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
|