phanerozoic / threshold-iszero4

huggingface.co
Total runs: 7
24-hour runs: 0
7-day runs: -1
30-day runs: 1
Model's Last Updated: January 24 2026

Introduction of threshold-iszero4

Model Details of threshold-iszero4

threshold-iszero4

4-bit zero detector. Outputs 1 if all 4 input bits are zero.

Function

iszero4(a, b, c, d) = 1 if (a + b + c + d) == 0, else 0

Equivalent to 4-input NOR gate.

Architecture

Single neuron: weights [-1, -1, -1, -1], bias 0

Fires when: -a - b - c - d + 0 >= 0, i.e., all inputs are 0.

Parameters
Inputs 4
Outputs 1
Neurons 1
Layers 1
Parameters 5
Magnitude 4
Usage
from safetensors.torch import load_file
import torch

w = load_file('model.safetensors')

def iszero4(a, b, c, d):
    inp = torch.tensor([float(a), float(b), float(c), float(d)])
    return int((inp @ w['neuron.weight'].T + w['neuron.bias'] >= 0).item())

print(iszero4(0, 0, 0, 0))  # 1 (is zero)
print(iszero4(0, 0, 0, 1))  # 0 (not zero)
License

MIT

Runs of phanerozoic threshold-iszero4 on huggingface.co

7
Total runs
0
24-hour runs
0
3-day runs
-1
7-day runs
1
30-day runs

More Information About threshold-iszero4 huggingface.co Model

More threshold-iszero4 license Visit here:

https://choosealicense.com/licenses/mit

threshold-iszero4 huggingface.co

threshold-iszero4 huggingface.co is an AI model on huggingface.co that provides threshold-iszero4's model effect (), which can be used instantly with this phanerozoic threshold-iszero4 model. huggingface.co supports a free trial of the threshold-iszero4 model, and also provides paid use of the threshold-iszero4. Support call threshold-iszero4 model through api, including Node.js, Python, http.

threshold-iszero4 huggingface.co Url

https://huggingface.co/phanerozoic/threshold-iszero4

phanerozoic threshold-iszero4 online free

threshold-iszero4 huggingface.co is an online trial and call api platform, which integrates threshold-iszero4's modeling effects, including api services, and provides a free online trial of threshold-iszero4, you can try threshold-iszero4 online for free by clicking the link below.

phanerozoic threshold-iszero4 online free url in huggingface.co:

https://huggingface.co/phanerozoic/threshold-iszero4

threshold-iszero4 install

threshold-iszero4 is an open source model from GitHub that offers a free installation service, and any user can find threshold-iszero4 on GitHub to install. At the same time, huggingface.co provides the effect of threshold-iszero4 install, users can directly use threshold-iszero4 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

threshold-iszero4 install url in huggingface.co:

https://huggingface.co/phanerozoic/threshold-iszero4

Url of threshold-iszero4

threshold-iszero4 huggingface.co Url

Provider of threshold-iszero4 huggingface.co

phanerozoic
ORGANIZATIONS

Other API from phanerozoic

huggingface.co

Total runs: 82
Run Growth: -14
Growth Rate: -37.84%
Updated:September 26 2026