Downloads · 30 days
9
22% of all-time downloads
phanerozoic/threshold-xor3
threshold-xor3 is a machine learning model from phanerozoic. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as mit.
3-input XOR gate. Cascade of two standard XOR circuits (OR + NAND + AND).
Downloads · 30 days
9
22% of all-time downloads
All-time downloads
41
Public
Parameters
18
984 B on disk
Likes
0
Public
Click a slice to open those files.
.pyc16 KB · 70%
From the Hugging Face model README
3-input XOR gate. Cascade of two standard XOR circuits (OR + NAND + AND).
a b c
│ │ │
└──┴──┐ │
▼ │
┌─────┐ │
│ XOR │ │
└──┬──┘ │
│ │
└────┬───┘
▼
┌─────┐
│ XOR │
└──┬──┘
▼
XOR3(a,b,c)
Each XOR uses the standard OR + NAND + AND structure:
| Neurons | 6 |
| Layers | 4 |
| Parameters | 18 |
| Magnitude | 20 |
See threshold-xor3-mag14 for a 30% magnitude reduction using optimized XOR blocks.
from safetensors.torch import load_file
w = load_file('model.safetensors')
# See model.py for implementation
MIT