phanerozoic / threshold-divider

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

Introduction of threshold-divider

Model Details of threshold-divider

threshold-divider

4-bit unsigned integer divider as threshold circuit using restoring division algorithm.

Circuit
A[3:0] ──┐  (dividend, 0-15)
         ├──► Divider ──┬──► Q[3:0]  (quotient)
B[3:0] ──┘  (divisor, 1-15)  └──► R[3:0]  (remainder)

A = Q × B + R, where R < B
Algorithm (Restoring Division)
P = 0  (partial remainder)
for i = 3 downto 0:
    P = (P << 1) | A[i]     // shift in next dividend bit
    diff = P - B
    if diff >= 0:           // P >= B
        Q[i] = 1
        P = diff            // keep subtraction result
    else:
        Q[i] = 0            // restore P (don't subtract)
R = P  (final remainder)
Architecture

Each of 4 stages contains:

Component Function Neurons
4-bit Subtractor P - B 28
4× MUX Select P or diff 12

Total: 160 neurons, 496 parameters, 8 layers

Example
13 ÷ 3:
  Stage 3: P=0, shift in 1 → P=1, 1<3, Q[3]=0
  Stage 2: P=1, shift in 1 → P=3, 3≥3, Q[2]=1, P=0
  Stage 1: P=0, shift in 0 → P=0, 0<3, Q[1]=0
  Stage 0: P=0, shift in 1 → P=1, 1<3, Q[0]=0
  Result: Q=0100=4, R=0001=1
  Verify: 4×3+1=13 ✓
Usage
from safetensors.torch import load_file

w = load_file('model.safetensors')

# Division by zero returns Q=15, R=0
# All 240 test cases verified (16 × 15 non-zero divisors)
Files
threshold-divider/
├── model.safetensors
├── create_safetensors.py
├── config.json
└── README.md
License

MIT

Runs of phanerozoic threshold-divider on huggingface.co

12
Total runs
1
24-hour runs
1
3-day runs
-1
7-day runs
5
30-day runs

More Information About threshold-divider huggingface.co Model

More threshold-divider license Visit here:

https://choosealicense.com/licenses/mit

threshold-divider huggingface.co

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

threshold-divider huggingface.co Url

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

phanerozoic threshold-divider online free

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

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

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

threshold-divider install

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

threshold-divider install url in huggingface.co:

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

Url of threshold-divider

threshold-divider huggingface.co Url

Provider of threshold-divider huggingface.co

phanerozoic
ORGANIZATIONS

Other API from phanerozoic

huggingface.co

Total runs: 87
Run Growth: 31
Growth Rate: 37.80%
Updated:September 26 2026