Skip to content

A 2.78-trillion-parameter Kimi K3 running inference on a single CPU in 8.24 GB of RAM. Portable C99: no BLAS, no framework, no GPU.

1.9 KB
Raw Blame
{
 "beta": 4.0,
 "linear_beta": 25.0,
 "magnitudes": [
  0.1,
  1.0,
  4.0,
  25.0,
  100.0,
  1000.0
 ],
 "in": {
  "shape": [
   6,
   16
  ],
  "data": [
   0.1,
   0.1,
   0.1,
   0.1,
   0.1,
   0.1,
   0.1,
   0.1,
   -0.1,
   -0.1,
   -0.1,
   -0.1,
   -0.1,
   -0.1,
   -0.1,
   -0.1,
   1.0,
   1.0,
   1.0,
   1.0,
   1.0,
   1.0,
   1.0,
   1.0,
   -1.0,
   -1.0,
   -1.0,
   -1.0,
   -1.0,
   -1.0,
   -1.0,
   -1.0,
   4.0,
   4.0,
   4.0,
   4.0,
   4.0,
   4.0,
   4.0,
   4.0,
   -4.0,
   -4.0,
   -4.0,
   -4.0,
   -4.0,
   -4.0,
   -4.0,
   -4.0,
   25.0,
   25.0,
   25.0,
   25.0,
   25.0,
   25.0,
   25.0,
   25.0,
   -25.0,
   -25.0,
   -25.0,
   -25.0,
   -25.0,
   -25.0,
   -25.0,
   -25.0,
   100.0,
   100.0,
   100.0,
   100.0,
   100.0,
   100.0,
   100.0,
   100.0,
   -100.0,
   -100.0,
   -100.0,
   -100.0,
   -100.0,
   -100.0,
   -100.0,
   -100.0,
   1000.0,
   1000.0,
   1000.0,
   1000.0,
   1000.0,
   1000.0,
   1000.0,
   1000.0,
   -1000.0,
   -1000.0,
   -1000.0,
   -1000.0,
   -1000.0,
   -1000.0,
   -1000.0,
   -1000.0
  ]
 },
 "out": {
  "shape": [
   6,
   8
  ],
  "data": [
   -0.0052487,
   -0.0052487,
   -0.0052487,
   -0.0052487,
   -0.0052487,
   -0.0052487,
   -0.0052487,
   -0.0052487,
   -0.7158178,
   -0.7158178,
   -0.7158178,
   -0.7158178,
   -0.7158178,
   -0.7158178,
   -0.7158178,
   -0.7158178,
   -11.8652582,
   -11.8652582,
   -11.8652582,
   -11.8652582,
   -11.8652582,
   -11.8652582,
   -11.8652582,
   -11.8652582,
   -76.1588516,
   -76.1588516,
   -76.1588516,
   -76.1588516,
   -76.1588516,
   -76.1588516,
   -76.1588516,
   -76.1588516,
   -99.93293,
   -99.93293,
   -99.93293,
   -99.93293,
   -99.93293,
   -99.93293,
   -99.93293,
   -99.93293,
   -100.0,
   -100.0,
   -100.0,
   -100.0,
   -100.0,
   -100.0,
   -100.0,
   -100.0
  ],
  "note": "sigmoid takes the UNCAPPED gate. bound is beta*linear_beta = 100, asserted here"
 },
 "max_abs": 100.0
}