phanerozoic / threshold-equal

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

Introduction of threshold-equal

Model Details of threshold-equal

threshold-equal

8-bit equality comparator. Returns 1 if a = b, 0 otherwise.

Circuit
a0 b0   a1 b1   a2 b2   a3 b3   a4 b4   a5 b5   a6 b6   a7 b7
 │  │    │  │    │  │    │  │    │  │    │  │    │  │    │  │
 └┬─┘    └┬─┘    └┬─┘    └┬─┘    └┬─┘    └┬─┘    └┬─┘    └┬─┘
  ▼       ▼       ▼       ▼       ▼       ▼       ▼       ▼
┌───┐   ┌───┐   ┌───┐   ┌───┐   ┌───┐   ┌───┐   ┌───┐   ┌───┐
│XOR│   │XOR│   │XOR│   │XOR│   │XOR│   │XOR│   │XOR│   │XOR│  L1-2
└───┘   └───┘   └───┘   └───┘   └───┘   └───┘   └───┘   └───┘
  │       │       │       │       │       │       │       │
  └───────┴───────┴───────┴───┬───┴───────┴───────┴───────┘
                              ▼
                         ┌─────────┐
                         │   NOR   │                        L3
                         │ w: -1×8 │
                         │ b:  0   │
                         └─────────┘
                              │
                              ▼
                           (a = b)
Mechanism
  1. XOR each bit pair : XOR(a_i, b_i) = 1 if bits differ, 0 if same
  2. NOR all XORs : Fires only when all XORs are 0 (all bits match)

The NOR gate acts as a "zero detector" - it fires when all its inputs are silent.

XOR Structure (each)
    a   b
    │   │
    ├─┬─┤
    │ │ │
    ▼ │ ▼
┌────┐│┌────┐
│ OR │││NAND│
└────┘│└────┘
    │ │ │
    └─┼─┘
      ▼
  ┌──────┐
  │ AND  │
  └──────┘
      │
      ▼
   XOR out
Truth Table (sample)
a b a = b
0 0 1
0 1 0
127 127 1
127 128 0
255 255 1
255 0 0
100 100 1
Architecture
Component Neurons Parameters
XOR × 8 24 72
NOR 1 9
Total 25 81

Layers: 3 (XOR: 2, NOR: 1)

Comparison Family
Circuit Condition Implementation
LessThan a < b borrow_out of (a - b)
Equal a = b NOR of all XOR bits
GreaterThan a > b LessThan(b, a)
Usage
from safetensors.torch import load_file

w = load_file('model.safetensors')

def equal(a, b):
    """a, b: 8-bit lists [a0..a7] (LSB first)
    Returns: 1 if a == b, 0 otherwise"""
    # See model.py for full implementation
    pass

# Example: 127 == 127?
a = [(127 >> i) & 1 for i in range(8)]
b = [(127 >> i) & 1 for i in range(8)]
result = equal(a, b)  # Returns 1
Files
threshold-equal/
├── model.safetensors
├── model.py
├── config.json
└── README.md
License

MIT

Runs of phanerozoic threshold-equal on huggingface.co

7
Total runs
1
24-hour runs
4
3-day runs
4
7-day runs
2
30-day runs

More Information About threshold-equal huggingface.co Model

More threshold-equal license Visit here:

https://choosealicense.com/licenses/mit

threshold-equal huggingface.co

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

phanerozoic threshold-equal online free

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

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

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

threshold-equal install

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

threshold-equal install url in huggingface.co:

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

Url of threshold-equal

threshold-equal huggingface.co Url

Provider of threshold-equal huggingface.co

phanerozoic
ORGANIZATIONS

Other API from phanerozoic

huggingface.co

Total runs: 37
Run Growth: -8
Growth Rate: -21.62%
Updated:April 28 2026