Runtime source notesSource preservation evidence3.8 KB

TinyRustLM Runtime Source Manifest

Hash manifest for uploaded TinyRustLM Rust runtime files preserved under docs/runtime-source/tinyrustlm.

Download original MarkdownSHA-256 50aa9660d2024cfcc928dc43726c9d3626f3176588aa5856619f0b60ae55036a
Raw source report

This page renders the original supplied document for reference. It has not been fact-checked line by line. Use the curated learning guides for normalized terminology, maturity labels, implementation boundaries, and safety framing.

TinyRustLM Runtime Source Manifest

The uploaded Rust runtime files are preserved under /docs/runtime-source/tinyrustlm/ as durable implementation evidence. They are not public web endpoints; they are included in the root ZIP so future agents can compare theory pages against concrete runtime source.

FileBytesSHA-256Role
model.rs684452fa2149c17d301271316eae29d214887597c63a313997c61ca5225f785c2373eLoaded model directory, tensor storage, quantized tensor access, adapter validation, and adapter application.
generate.rs490545880a713465935ca9937044dcc0f82741d08dc3b248f4a5f04f9e5bfc3207db8Autoregressive runtime state, local generation, sampling configuration, diagnostics, model load and adapter apply flow.
adapter.rs19168e45628be16c7758c3a60c190ff866732a03bc442556bd35d81bd183d64b26df6Adapter-delta package parser and identity checks for ADP1, ASP1, and ALR1 payloads.
tokenizer.rs17504ab51e0eda9f89e1567d5a3610dd97902390f8e8e9b22283137a089659fb13750Byte and custom BPE tokenizer support for .slm model tokenizer sections.
eval_runner.rs146454907408005acfa229c9ba8e2007eb95612fcd07c5f0c3ea17c2ce5b45624ca1aNative eval-case runner that writes quality-gate sidecars for local model artifacts.
model_format.rs11788b2041c774bb82009a57904a28ebeb5a08bb713fdafcb30c5f83ccc6b4f8289d5Custom SLM1 binary model parser, tensor directory validation, and model header fields.
diagnostics.rs9646e48b2478938e73afc8f486a6a21c360a864434bdc7efad152ae3c7d7033bea0eRuntime counters for token rate, memory, quantization, adapters, errors, and assembly checksum.
sampler.rs69722fdb1bc4ba798258a4adf2034b3ed931083377e4c276e3d1bf5ac46eec26488fGreedy, top-k, top-p, temperature, and deterministic seeded sampling helpers.
ops.rs631047d6fedd08b4dc3059f36c3203c13e0eca8f53f2f18dcdc46b20a4a4e5b1028bCore CPU/WASM math operations such as dot products, matvec, RMSNorm, softmax, and SwiGLU.
kv_cache.rs59590885152e6b189b894da5ce4a2f438b4f1068fab3c96e4709ec8372e0da97edd1Layer-major key/value cache for autoregressive attention.
quant.rs572190e9f3103d39d00a75a1ac52756436d745eb0d24de748affe5c3f462b183a914Q80 and Q40 quantization, dequantization, and matvec helpers.
wasm_exports.rs5227fb382f3a85d8232a9fb58aaf9f3f3612722fb578a2f1d327db58e1baf1753185Raw WebAssembly ABI for browser JavaScript without wasm-bindgen.
tensor.rs3942611ed2feea28b9e53d415291f9e1962b4eb6d56657437fb61af16e994b710589Borrowed tensor view validation and row-major indexing.
errors.rs262293b775552f722b3c7dedd5b6ac36f1e95149d1f52afc8ce8674207bae7deba6aStable error-code ABI shared across Rust and browser host.
memory.rs1465078bc01720160fb816d5ecff493f4184417d985accf45ec9c5d0f0bc5874fa59WASM memory allocation, deallocation, and raw slice boundary checks.
lib.rs13837fdfe094576f7cb4c63847e6594cbf9dfcd4130f48b6ae7ee95426043364d578Crate module map and public runtime boundary.
rope.rs10558f760bf3b39f72c2270533c4b50f9f5769639ae02c5208b584f836898e73ace6Rotary positional embedding helper.
  • ModelBreeder theory should talk about concrete model packages, not just metaphors.
  • The .slm header, tensor directory, tokenizer checksum, tensor-layout checksum, quantization mode, and adapter identity checks are the deployable form of lineage and compatibility.
  • validate_adapter_delta and run_eval_to_sidecar show how local experimentation can be evidence-bearing before a descendant is promoted.
  • The WebAssembly exports prove that a local-first browser lab can expose model load, adapter validation, adapter application, generation, sampling config, and diagnostics without a server-side database.