Upload README.md with huggingface_hub
Browse files
README.md
CHANGED
@@ -10,13 +10,14 @@ License: [MIT License](https://opensource.org/license/mit/)
|
|
10 |
|
11 |
Setup environment
|
12 |
```shell
|
13 |
-
|
14 |
pip install transformers==4.31.0
|
15 |
-
pip install
|
16 |
```
|
17 |
|
18 |
How to use
|
19 |
```python
|
|
|
20 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
21 |
base_model = 'llama-2-7b'
|
22 |
comp_method = 'magnitude_unstructured'
|
|
|
10 |
|
11 |
Setup environment
|
12 |
```shell
|
13 |
+
pip install torch==2.0.0+cu117 torchvision==0.15.1+cu117 torchaudio==2.0.1 --index-url https://download.pytorch.org/whl/cu117
|
14 |
pip install transformers==4.31.0
|
15 |
+
pip install accelerate
|
16 |
```
|
17 |
|
18 |
How to use
|
19 |
```python
|
20 |
+
import torch
|
21 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
22 |
base_model = 'llama-2-7b'
|
23 |
comp_method = 'magnitude_unstructured'
|