File size: 1,020 Bytes
fd9a21c ef4033f |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 |
## 🛠️ Requirements and Installation
```text
# clone ICE
git clone https://github.com/Yofuria/ICE.git
cd ICE
# create conda env
conda create -n ICE python=3.10
conda activate ICE
# install package
pip install -r requirements.txt
```
In **lines 32 and 33** of **` examples/run_knowedit_llama2.py`**, you need to download the **` punkt `** package.
- If your Internet **speed is fast** enough, you can **run the code directly** from the command line.
```text
if __name__ == "__main__":
# If you have a slow Internet connection and can't download nltk quickly, comment these two lines and use the second method of Requirements and Installation in README.md
import nltk
nltk.download('punkt')
```
- If your Internet **speed is slow**, **comment lines 32 and 33** and download punkt manually. And place it in the ICE environment directory you created, create a **nltk_data/tokenizers** folder, and **unpack punkt** into this directory.
<div align="center"> <img src="punkt.png" width="650px"> </div> |