Download python/inference.py from kirameku26/OneBit-NOT: direct link, hf CLI and curl.
- Browser
- Download file 240 Bytes
-
https://huggingface.co/kirameku26/OneBit-NOT/resolve/main/python/inference.py
- Command line
-
hf download hf://kirameku26/OneBit-NOT/python/inference.py
-
curl -L -o inference.py https://huggingface.co/kirameku26/OneBit-NOT/resolve/main/python/inference.py
240 Bytes
| """Run the trained model on input 0 and input 1.""" | |
| from pathlib import Path | |
| from model import OneBitNOT | |
| model = OneBitNOT.load(Path(__file__).resolve().parent.parent / "model.bin") | |
| for x in (0, 1): | |
| print(f"{x} -> {model.predict(x)}") | |