Update README.md
Browse files
README.md
CHANGED
@@ -40,17 +40,11 @@ This repository supports usage with the `transformers` library. Below is a strai
|
|
40 |
pip install --upgrade transformers
|
41 |
```
|
42 |
|
43 |
-
- **ModelScope Library:** Ensure you have `modelscope` installed. You can install it using:
|
44 |
-
|
45 |
-
```bash
|
46 |
-
pip install modelscope
|
47 |
-
```
|
48 |
-
|
49 |
### ⚙️ Example: Deploying with Transformers
|
50 |
|
51 |
```python
|
52 |
import torch
|
53 |
-
from
|
54 |
|
55 |
# Load the tokenizer and model
|
56 |
model_name = "shellwork/ChatParts-qwen2.5-14b"
|
|
|
40 |
pip install --upgrade transformers
|
41 |
```
|
42 |
|
|
|
|
|
|
|
|
|
|
|
|
|
43 |
### ⚙️ Example: Deploying with Transformers
|
44 |
|
45 |
```python
|
46 |
import torch
|
47 |
+
from transformers import AutoModelForCausalLM, AutoTokenizer
|
48 |
|
49 |
# Load the tokenizer and model
|
50 |
model_name = "shellwork/ChatParts-qwen2.5-14b"
|