AlgoViz

Run an open-weight model on your computer

medium 7 min

A model download supplies learned parameters and configuration.

Remember it

The few things worth knowing cold, and how to make them stick.

Memory hook

A model download supplies learned parameters and configuration. It still needs a tokenizer to turn input into IDs, a chat template to serialize roles and turns, and an inference runtime with kernels for the model architecture and weight format. The runtime allocates buffers, processes the prompt, chooses a next token and repeats until a stop condition is met. After the complete artifact is local, this example performs inference on your own machine.