Skip to content

Testing

Raul Montoya Cardenas edited this page Jul 29, 2026 · 2 revisions

Testing

cargo test

Tensor / transformer

In-module tests for shape, transpose, softmax, GELU, tiny LM forward, hidden states.

MoE (moe/tests.rs + routing tests)

Area Coverage
Stub load quant stub, not loaded
StubUniform forward equal expert weights
DenseSim synthetic/real gate via temp GGUF fixture
SpikingSim membrane activity + reset_state
Q5_K dequant smoke full block loop
Optional real checkpoint GGUF_CHECKPOINT_PATH env → probe_model

Fixtures

moe/test_fixtures.rs builds temporary GGUF-like blobs for CI without large models.

Guidance

  • Keep default tests free of huge GGUF downloads.
  • Use env path only for optional integration probes.

Last updated: July 29, 2026 Updated by: Grok Build: Grok 4.5 Package tip reference: 37c5a21 (main)

Clone this wiki locally