Update README.md
Browse files
README.md
CHANGED
|
@@ -18,12 +18,10 @@ You can download the model to generate responses or use the [**online demo**](ht
|
|
| 18 |
We wil provide several examples soon and you can modify the input according to your needs.
|
| 19 |
|
| 20 |
```python
|
| 21 |
-
# Use a pipeline as a high-level helper
|
| 22 |
>>> from transformers import pipeline
|
| 23 |
|
| 24 |
>>> pipe = pipeline("text-generation", model="zjunlp/OceanGPT-7b")
|
| 25 |
|
| 26 |
-
# Load model directly
|
| 27 |
>>> from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 28 |
|
| 29 |
>>> tokenizer = AutoTokenizer.from_pretrained("zjunlp/OceanGPT-7b")
|
|
|
|
| 18 |
We wil provide several examples soon and you can modify the input according to your needs.
|
| 19 |
|
| 20 |
```python
|
|
|
|
| 21 |
>>> from transformers import pipeline
|
| 22 |
|
| 23 |
>>> pipe = pipeline("text-generation", model="zjunlp/OceanGPT-7b")
|
| 24 |
|
|
|
|
| 25 |
>>> from transformers import AutoTokenizer, AutoModelForCausalLM
|
| 26 |
|
| 27 |
>>> tokenizer = AutoTokenizer.from_pretrained("zjunlp/OceanGPT-7b")
|