mac-1 / manifest.json
jacano1969's picture
only cpu and documentation update.
0428862 verified
Raw History Blame Contribute Delete
1.13 kB
{
"entry_class": "model.MyModel",
"output_base": 2,
"framework": "pytorch",
"model_description": "Recurrent model that computes (a*b) mod p exactly. Two trained MLP cells (a full-adder and a full-subtractor in radix-2^k form (k=6); input 2k+1, hidden 32, output k+1, ReLU activations; ~a few thousand parameters each) are composed by a fixed recurrence into modular addition, and modular addition into modular multiplication (Horner reduction of b, then double-and-add over the bits of a). Inputs a, b, p are taken as bit vectors; the answer is emitted as base-2 digits, MSB-first. Every value-carrying operation is a forward pass of a trained cell; the recurrence depth scales with operand width, analogous to an RNN unrolled over the input bits.",
"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, verified exhaustively over the full input space. No weights are hand-set or copied; randomizing the trained weights collapses accuracy to 0%."
}