phanerozoic / threshold-clz4

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

Introduction of threshold-clz4

Model Details of threshold-clz4

threshold-clz4

4-bit count leading zeros.

Function

clz4(a3, a2, a1, a0) = number of leading zeros from MSB

Truth Table (selected rows)
Input First 1 CLZ Output
1xxx bit 3 0 000
01xx bit 2 1 001
001x bit 1 2 010
0001 bit 0 3 011
0000 none 4 100
Architecture
Layer 1: Priority detection from MSB
  has3 = a3 (MSB is set, clz=0)
  has2_first = a2 AND NOT(a3) (clz=1)
  has1_first = a1 AND NOT(a2) AND NOT(a3) (clz=2)
  has0_first = a0 AND NOT(a1) AND NOT(a2) AND NOT(a3) (clz=3)
  all_zero = NOT(any bit) (clz=4)

Layer 2: Binary encoding
  y0 = has2_first OR has0_first (clz is 1 or 3)
  y1 = has1_first OR has0_first (clz is 2 or 3)
  y2 = all_zero (clz is 4)
Parameters
Inputs 4
Outputs 3
Neurons 8
Layers 2
Parameters 39
Magnitude 26
Usage
from safetensors.torch import load_file
# See model.py for full implementation

# clz4(1, 0, 0, 0) = [0, 0, 0] = 0 (MSB is set)
# clz4(0, 0, 1, 0) = [0, 1, 0] = 2 (two leading zeros)
# clz4(0, 0, 0, 0) = [1, 0, 0] = 4 (all zeros)
License

MIT

Runs of phanerozoic threshold-clz4 on huggingface.co

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

More Information About threshold-clz4 huggingface.co Model

More threshold-clz4 license Visit here:

https://choosealicense.com/licenses/mit

threshold-clz4 huggingface.co

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

phanerozoic threshold-clz4 online free

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

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

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

threshold-clz4 install

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

threshold-clz4 install url in huggingface.co:

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

Url of threshold-clz4

threshold-clz4 huggingface.co Url

Provider of threshold-clz4 huggingface.co

phanerozoic
ORGANIZATIONS

Other API from phanerozoic

huggingface.co

Total runs: 82
Run Growth: 46
Growth Rate: 56.10%
Updated:September 26 2026