Fix layout
Browse files
README.md
CHANGED
@@ -94,7 +94,7 @@ python3 zipnn_decompress_path.py --path .
|
|
94 |
```
|
95 |
|
96 |
Now just run the local version of the model.
|
97 |
-
|
98 |
```python
|
99 |
from transformers import pipeline
|
100 |
|
@@ -105,7 +105,7 @@ pipe = pipeline("text-generation", model="PATH_TO_MODEL") # "." if in directory
|
|
105 |
pipe(messages)
|
106 |
```
|
107 |
|
108 |
-
|
109 |
```python
|
110 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
111 |
|
|
|
94 |
```
|
95 |
|
96 |
Now just run the local version of the model.
|
97 |
+
### Use a pipeline as a high-level helper
|
98 |
```python
|
99 |
from transformers import pipeline
|
100 |
|
|
|
105 |
pipe(messages)
|
106 |
```
|
107 |
|
108 |
+
### Load model directly
|
109 |
```python
|
110 |
from transformers import AutoTokenizer, AutoModelForCausalLM
|
111 |
|