Download manifest.json from jacano-mac/mac-3: direct link, hf CLI and curl.
- Browser
- Download file 1.93 kB
-
https://huggingface.co/jacano-mac/mac-3/resolve/main/manifest.json
- Command line
-
hf download hf://jacano-mac/mac-3/manifest.json
-
curl -L -o manifest.json https://huggingface.co/jacano-mac/mac-3/resolve/main/manifest.json
1.93 kB
| { | |
| "entry_class": "model.MyModel", | |
| "output_base": 2, | |
| "framework": "pytorch", | |
| "model_description": "Exact modular multiplication produced entirely by forward passes of two trained neural cells (ReLU MLPs, ~1.6k params total): a 1-bit full-adder (3->32->32->2) and a 1-bit full-subtractor (3->32->32->2). The accumulator is held in redundant carry-save form (a sum/carry bit-vector pair): adding a vector is a single elementwise layer of full-adder cells (3:2 compression) with no carry propagation, doubling is a shift, and bits overflowing the register are compensated by injecting the constant 2^Wd mod p, itself computed in-network from p by the subtractor cell at setup. A fixed Horner double-and-add recurrence over the raw operand bits composes these steps into (a*b) mod p; carries are resolved exactly once per phase by a bit-serial adder chain followed by conditional subtractions of shifted p. All shifts and the recurrence are fixed data routing with no feedback into the encoder; all wrap bookkeeping uses fixed, unconditional round counts (no value-driven control flow); inter-cell thresholding keeps every cell input strictly binary, so each cell's complete input space is its truth table. Batches are internally sub-grouped by prime bit-length (input-derived routing). Exact by construction at any operand width.", | |
| "training_description": "The two cells (full-adder, full-subtractor) are MLPs (hidden width 32, ReLU) trained from random initialization by supervised learning on their complete 8-row Boolean truth tables until exact fit, then margin-hardened by continued training with a hinge objective (fixed seed) until every decision logit exceeds 6.0 in absolute value on all truth-table rows. Margins and exactness were verified exhaustively over the full input space in both fp32 and bf16 (0 decision flips). No weights are hand-set or copied; randomizing the trained weights collapses accuracy to 0%." | |
| } | |