Update README.md
Browse files
README.md
CHANGED
@@ -52,7 +52,7 @@ huggingface-cli download --resume-download zjunlp/OceanGPT-coder-0.6B --local-di
|
|
52 |
### Inference
|
53 |
|
54 |
```python
|
55 |
-
from
|
56 |
|
57 |
model_name = "zjunlp/OceanGPT-coder-0.6B"
|
58 |
device = "auto" # or your divice, e.g., "cuda:0" or "cpu".
|
|
|
52 |
### Inference
|
53 |
|
54 |
```python
|
55 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
56 |
|
57 |
model_name = "zjunlp/OceanGPT-coder-0.6B"
|
58 |
device = "auto" # or your divice, e.g., "cuda:0" or "cpu".
|