jyhong836 commited on
Commit
de5dfac
1 Parent(s): b6a7ac7

Upload README.md with huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +3 -2
README.md CHANGED
@@ -10,13 +10,14 @@ License: [MIT License](https://opensource.org/license/mit/)
10
 
11
  Setup environment
12
  ```shell
13
- pip3 install torch torchvision torchaudio --index-url https://download.pytorch.org/whl/cu118
14
  pip install transformers==4.31.0
15
- pip install huggingface_hub accelerate
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'