THE OPEN NOTEBOOK · v1.7.3
A book for the curious.
112 chapters inside the Welvet AI engine, including NativeCPU, Qualcomm Hexagon HTP, Apple Metal, Apple MLX, NVIDIA CUDA, AMD ROCm, Vulkan, and Python C-ABI. Start with why it exists, then follow the ideas into layers, learning, and the systems that connect them.
welvet.qnn path — see the Android QNN lab PDF and /welvet. Code examples and reported results below are preserved from the source edition. Read the complete book on one page →8 entries · Clear filters
II · Foundation
core: types & backends
Every polymorphic path needs one place for DType, LayerType, Activation, Backend, Tensor[T], and slim Layer metadata: without QAT morph defaults.
Read moreII · Foundation
weights: FormatNone MatVec
Unquantized matrices still need a typed store that streams MatVec and SGD without forcing a float32 master or Morph-as-training.
Read moreII · Foundation
quant: 20 pack formats
Inference, storage, and train need classic Q-packs, k-quants, IQ, Ternary/Binary, and Affine without a separate QAT mode or retained f32 master. Format is storage truth.
Read moreII · Foundation
simd: Plan 9 kernels
CPU peak needs hand-written AVX2/NEON without a silent Go fallback that pretends SIMD ran.
Read moreII · Foundation
webgpu: device GEMV & shaders
GPU paths must bind a real adapter. Host “fake GPU” was banned so suites cannot stamp WebGPU done when ALU ran on CPU.
Read moreII · Foundation
tiling: SC/MC & workgroups
MatVec throughput depends on tile size and when to go multi-core vs GPU workgroups. Centralizing caps keeps Dense and friends consistent.
Read moreII · Foundation
architecture: volumetric grid
Networks are spatial (Depth×Rows×Cols×LayersPerCell), not only linear stacks. Topology lives here; compute lives in layer packages.
Read moreII · Foundation
fusedgpu: decoder on device
Token-by-token host round-trips kill decode. A fused engine keeps weights and scratch resident for Q4_0 and BinaryG128 hybrid paths.
Read more