Spaces:
Running
Running
Update README.md
Browse files
README.md
CHANGED
@@ -24,13 +24,14 @@ License: [MIT License](https://opensource.org/license/mit/)
|
|
24 |
|
25 |
Setup environment
|
26 |
```shell
|
27 |
-
|
28 |
pip install transformers==4.31.0
|
29 |
-
pip install
|
30 |
```
|
31 |
|
32 |
How to use
|
33 |
```python
|
|
|
34 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
35 |
base_model = 'llama-2-7b'
|
36 |
comp_method = 'magnitude_unstructured'
|
|
|
24 |
|
25 |
Setup environment
|
26 |
```shell
|
27 |
+
pip install torch==2.0.0+cu117 torchvision==0.15.1+cu117 torchaudio==2.0.1 --index-url https://download.pytorch.org/whl/cu117
|
28 |
pip install transformers==4.31.0
|
29 |
+
pip install accelerate
|
30 |
```
|
31 |
|
32 |
How to use
|
33 |
```python
|
34 |
+
import torch
|
35 |
from transformers import AutoModelForCausalLM, AutoTokenizer
|
36 |
base_model = 'llama-2-7b'
|
37 |
comp_method = 'magnitude_unstructured'
|