phanerozoic / threshold-clz8

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

Introduction of threshold-clz8

Model Details of threshold-clz8

threshold-clz8

8-bit count leading zeros.

Function

clz8(a7, a6, a5, a4, a3, a2, a1, a0) = number of leading zeros from MSB (0-8)

Truth Table (selected rows)
Input First 1 CLZ Output
1xxxxxxx bit 7 0 0000
01xxxxxx bit 6 1 0001
001xxxxx bit 5 2 0010
0001xxxx bit 4 3 0011
00001xxx bit 3 4 0100
000001xx bit 2 5 0101
0000001x bit 1 6 0110
00000001 bit 0 7 0111
00000000 none 8 1000
Architecture
Layer 1: Priority detection from MSB (9 neurons)
  has7 = a7 (MSB is set, clz=0)
  has6_first = a6 AND NOT(a7) (clz=1)
  has5_first = a5 AND NOT(a6) AND NOT(a7) (clz=2)
  ...
  has0_first = a0 AND NOT(a1..a7) (clz=7)
  all_zero = NOT(any bit) (clz=8)

Layer 2: Binary encoding (4 neurons)
  y0 = has6_first OR has4_first OR has2_first OR has0_first
  y1 = has5_first OR has4_first OR has1_first OR has0_first
  y2 = has3_first OR has2_first OR has1_first OR has0_first
  y3 = all_zero
Parameters
Inputs 8
Outputs 4
Neurons 13
Layers 2
Parameters 117
Magnitude 69
Usage
from safetensors.torch import load_file
# See model.py for full implementation

# clz8(1,0,0,0,0,0,0,0) = [0,0,0,0] = 0 (MSB set)
# clz8(0,0,0,0,1,0,0,0) = [0,1,0,0] = 4 (four leading zeros)
# clz8(0,0,0,0,0,0,0,0) = [1,0,0,0] = 8 (all zeros)
License

MIT

Runs of phanerozoic threshold-clz8 on huggingface.co

13
Total runs
0
24-hour runs
2
3-day runs
1
7-day runs
8
30-day runs

More Information About threshold-clz8 huggingface.co Model

More threshold-clz8 license Visit here:

https://choosealicense.com/licenses/mit

threshold-clz8 huggingface.co

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

phanerozoic threshold-clz8 online free

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

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

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

threshold-clz8 install

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

threshold-clz8 install url in huggingface.co:

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

Url of threshold-clz8

threshold-clz8 huggingface.co Url

Provider of threshold-clz8 huggingface.co

phanerozoic
ORGANIZATIONS

Other API from phanerozoic

huggingface.co

Total runs: 86
Run Growth: 37
Growth Rate: 42.53%
Updated:September 26 2026