Quantization, file formats and runtimes 00:00:01 A billion weights in half a gigabyte The label on Tao's memory crate reads one billion weights at four bits each. His notebook reports six hundred million bytes free. The crate fits on paper, but the service falls over when its first long prompt arrives. Quantization maps weight values to a smaller set of representable levels, typically with scales and sometimes other metadata. The file format records how to interpret tensors. the execution kernel determines how they are used. The artifact, runtime and hardware must agree. Count bits, convert them to bytes, and mark the scope of that number. Four billion bits becomes five hundred million bytes in decimal units. Nobody has yet counted scales or the memory that appears while the model runs. 00:00:51 Count the encoded payload This estimate counts weight payload only. Scales, metadata, nonquantized layers, cache and activations require additional space. Eight bits form one byte. One billion values at four bits occupy 500 million bytes before overhead, compared with two billion bytes at 16 bits. A smaller artifact needs a compatible kernel to deliver throughput. Check the intended runtime and compare output quality on the deployment workload. Multiply the number of parameters by the bits used per parameter, then, divide by eight to obtain bytes. One billion four-bit parameters occupy 500 million bytes before scales, metadata, unquantized tensors or runtime state. 00:01:40 Follow one inference request Quantization represents some values using fewer bits, often with scales per group. For a billion weights, four bits each require roughly half a billion bytes before scales and other overhead. Storage precision, arithmetic precision and total serving memory are distinct quantities. Seven billion values at 16 bits have a payload of 14 decimal gigabytes. At four bits the payload is 3.5 gigabytes, before scales or other memory. G G U F is a file format for model tensors and metadata used by compatible inference software. The extension does not specify one quantization level. Check the model architecture, tensor encodings and supported operators against the chosen runtime before treating a file as deployable. Inspect two G G U F files made from one base. Compare their tensor encodings and metadata instead of assuming the extension implies four-bit weights. Quantizing a generator or vector index can reduce memory in a rag pipeline. Track where precision is reduced: index quantization may alter candidate recall, while model quantization may alter generation. Test both stages separately on the same questions before attributing a regression. Run exact retrieval against an uncompressed index, then change only vector precision. Hold the generator fixed when attributing the change in recall. Estimate payload size first, then measure total device memory, accuracy on sensitive cases and actual token throughput. A compressed file can occupy less disk space without delivering lower latency on a device that lacks a suitable kernel. 00:03:26 Does the whole service fit? A 0.5 gigabytes weight payload fits within 0.6 gigabytes free memory. Does that prove the full service fits? The calculation covers only the encoded weights. Runtime memory also depends on the sequence lengths and number of active requests. Tao measures peak memory with the intended prompt lengths and concurrency. A small set of weights can still demand a much larger running workspace, and reducing precision still needs a quality check.