phanerozoic / threshold-atmost2outof8

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

Introduction of threshold-atmost2outof8

Model Details of threshold-atmost2outof8

threshold-atmost2outof8

At-most-2-out-of-8 detector. Fires when two or fewer inputs are active. The error-tolerance bound.

Circuit
  x₀ x₁ x₂ x₃ x₄ x₅ x₆ x₇
   │  │  │  │  │  │  │  │
   └──┴──┴──┴──┼──┴──┴──┴──┘
               ▼
          ┌─────────┐
          │ w: -1×8 │
          │ b:  +2  │
          └─────────┘
               │
               ▼
           HW ≤ 2?
The Double-Error Budget

This circuit allows:

  • Zero active inputs (silence)
  • One active input (single event)
  • Two active inputs (pair/double event)

Three or more is considered "too many."

Mechanism
sum = -HW + 2
HW Sum Output
0 +2 1
1 +1 1
2 0 1
3 -1 0
4+ < -1 0

The bias of +2 grants a budget of two active inputs.

Error Detection Context

In coding theory:

  • A code with minimum distance d can detect d-1 errors
  • AtMost2 accepts patterns with ≤2 bit flips from all-zeros
  • Useful for validating that corruption is within correctable limits
Scenario This circuit
No errors Pass
Single-bit error Pass
Double-bit error Pass
Triple+ error Fail
Dual of AtLeast6
Circuit Condition Sparse/Dense
AtLeast6 HW ≥ 6 Dense
AtMost2 HW ≤ 2 Sparse

Bitwise NOT maps AtMost2 inputs to AtLeast6 inputs.

Coverage
HW C(8,k) AtMost2?
0 1 Yes
1 8 Yes
2 28 Yes
3-8 219 No

Fires on 1 + 8 + 28 = 37 of 256 inputs (14.5%).

Parameters
Component Value
Weights all -1
Bias +2
Total 9 parameters
Usage
from safetensors.torch import load_file
import torch

w = load_file('model.safetensors')

def atmost2(bits):
    inp = torch.tensor([float(b) for b in bits])
    return int((inp * w['weight']).sum() + w['bias'] >= 0)

# Double event: allowed
print(atmost2([1,0,0,0,1,0,0,0]))  # 1

# Triple event: rejected
print(atmost2([1,0,0,1,1,0,0,0]))  # 0
Files
threshold-atmost2outof8/
├── model.safetensors
├── model.py
├── config.json
└── README.md
License

MIT

Runs of phanerozoic threshold-atmost2outof8 on huggingface.co

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

More Information About threshold-atmost2outof8 huggingface.co Model

More threshold-atmost2outof8 license Visit here:

https://choosealicense.com/licenses/mit

threshold-atmost2outof8 huggingface.co

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

threshold-atmost2outof8 huggingface.co Url

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

phanerozoic threshold-atmost2outof8 online free

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

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

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

threshold-atmost2outof8 install

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

threshold-atmost2outof8 install url in huggingface.co:

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

Url of threshold-atmost2outof8

threshold-atmost2outof8 huggingface.co Url

Provider of threshold-atmost2outof8 huggingface.co

phanerozoic
ORGANIZATIONS

Other API from phanerozoic

huggingface.co

Total runs: 36
Run Growth: -11
Growth Rate: -30.56%
Updated:April 28 2026