phanerozoic / threshold-equals2

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

Introduction of threshold-equals2

Model Details of threshold-equals2

threshold-equals2

2-bit equality comparator. Outputs 1 if 2-bit A equals 2-bit B.

Function

equals2(a1, a0, b1, b0) = 1 if (a1,a0) == (b1,b0), else 0

Architecture

Checks if each bit pair matches using XNOR, then ANDs the results.

XNOR(x, y) = (x AND y) OR (NOT x AND NOT y)

Layer 1: (4 neurons on raw inputs)

  • and1: a1 AND b1
  • nor1: NOR(a1, b1)
  • and0: a0 AND b0
  • nor0: NOR(a0, b0)

Layer 2: (2 neurons)

  • xnor1: OR(and1, nor1) - bit 1 matches
  • xnor0: OR(and0, nor0) - bit 0 matches

Layer 3: (1 neuron)

  • eq: AND(xnor1, xnor0) - both bits match
Parameters
Inputs 4 (a1, a0, b1, b0)
Outputs 1
Neurons 7
Layers 3
Parameters 31
Magnitude 18
Usage
from safetensors.torch import load_file
import torch

w = load_file('model.safetensors')

# Check if 2 == 2 (binary 10 == 10)
# a1=1, a0=0, b1=1, b0=0
# Result: 1 (equal)
License

MIT

Runs of phanerozoic threshold-equals2 on huggingface.co

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

More Information About threshold-equals2 huggingface.co Model

More threshold-equals2 license Visit here:

https://choosealicense.com/licenses/mit

threshold-equals2 huggingface.co

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

threshold-equals2 huggingface.co Url

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

phanerozoic threshold-equals2 online free

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

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

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

threshold-equals2 install

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

threshold-equals2 install url in huggingface.co:

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

Url of threshold-equals2

threshold-equals2 huggingface.co Url

Provider of threshold-equals2 huggingface.co

phanerozoic
ORGANIZATIONS

Other API from phanerozoic

huggingface.co

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