File size: 598 Bytes
587bc38 |
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 |
---
license: apache-2.0
---
# Checkpoint for illmac (https://github.com/deeplearningplus/iLLMAC)
# 1. Use transformers
```python
#pip install transformers
#pip install torch
#pip install tiktoken
#pip install sentencepiece
## Install any other packages you need.
import torch
import transformers
model = transformers.AutoModelForCausalLM.from_pretrained("liu121/illmac")
tokenizer = transformers.AutoTokenizer.from_pretrained("liu121/illmac")
```
# 2. Save to local dir
```shell
huggingface-cli download --resume-download liu121/illmac --local-dir illmac --local-dir-use-symlinks False
``` |