Download example.py from caithmac/GRASP-A3: direct link, hf CLI and curl.
- Browser
- Download file 265 Bytes
-
https://huggingface.co/caithmac/GRASP-A3/resolve/main/example.py
- Command line
-
hf download hf://caithmac/GRASP-A3/example.py
-
curl -L -o example.py https://huggingface.co/caithmac/GRASP-A3/resolve/main/example.py
265 Bytes
| """Install the bundled wheel, then load the public A3 encoder.""" | |
| from grasp import GRASPEncoder | |
| encoder=GRASPEncoder.from_pretrained("caithmac/GRASP-A3") | |
| vectors=encoder.encode(["CCO","N[C@@H](C)C(=O)O"]) | |
| assert vectors.shape==(2,768) | |
| print(vectors.shape) | |