phanerozoic / threshold-majority

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

Introduction of threshold-majority

Model Details of threshold-majority

threshold-majority

Strict majority detector for 8 inputs. Fires when more than half are active.

Circuit
  x₀ x₁ x₂ x₃ x₄ x₅ x₆ x₇
   │  │  │  │  │  │  │  │
   └──┴──┴──┴──┼──┴──┴──┴──┘
               ▼
          ┌─────────┐
          │ w: all 1│
          │ b:  -5  │
          └─────────┘
               │
               ▼
           HW ≥ 5?
Mechanism
  • Sum = (number of 1s) - 5
  • Fires when Hamming weight ≥ 5 (more 1s than 0s)

A tie (4-4) doesn't count as majority. You need strictly more than half.

Functionally identical to threshold-5outof8.

Duality with Minority
Circuit Weights Bias Fires when
Majority all +1 -5 HW ≥ 5
Minority all -1 +3 HW ≤ 3

Majority: "enough votes to pass" Minority: "not enough votes to block"

These are not complements (they don't sum to 1). The gap at HW=4 belongs to neither.

Parameters
Weights [1, 1, 1, 1, 1, 1, 1, 1]
Bias -5
Total 9 parameters
Usage
from safetensors.torch import load_file
import torch

w = load_file('model.safetensors')

def majority(bits):
    inputs = torch.tensor([float(b) for b in bits])
    return int((inputs * w['weight']).sum() + w['bias'] >= 0)
Files
threshold-majority/
├── model.safetensors
├── model.py
├── config.json
└── README.md
License

MIT

Runs of phanerozoic threshold-majority on huggingface.co

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

More Information About threshold-majority huggingface.co Model

More threshold-majority license Visit here:

https://choosealicense.com/licenses/mit

threshold-majority huggingface.co

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

threshold-majority huggingface.co Url

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

phanerozoic threshold-majority online free

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

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

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

threshold-majority install

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

threshold-majority install url in huggingface.co:

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

Url of threshold-majority

threshold-majority huggingface.co Url

Provider of threshold-majority huggingface.co

phanerozoic
ORGANIZATIONS

Other API from phanerozoic

huggingface.co

Total runs: 1.2K
Run Growth: 1.2K
Growth Rate: 100.00%
Updated:April 28 2026