Download example.py from kye/Andromeda: direct link, hf CLI and curl.
- Browser
- Download file 171 Bytes
-
https://huggingface.co/kye/Andromeda/resolve/main/example.py
- Command line
-
hf download hf://kye/Andromeda/example.py
-
curl -L -o example.py https://huggingface.co/kye/Andromeda/resolve/main/example.py
171 Bytes
| import torch | |
| from Andromeda.configs import Andromeda1Billion | |
| model = Andromeda1Billion().cuda() | |
| x = torch.randint(0, 256, (1, 1024)).cuda() | |
| model(x) # (1, 1024, 20000) |