Running models locally

The interesting part isn’t necessarily replacing cloud models. It’s understanding where local inference makes sense.

For example, a simple Python function might look like this:

def analyse_activity(activity):
    return {
        "distance": activity["distance"],
        "heart_rate": activity["average_hr"]
    }

There are obvious constraints around memory and model size, but techniques such as quantisation and mixture of experts make the picture much more interesting.

Ollama running a local language model
Running a local model through Ollama.
Worth noting

Running a model locally doesn't necessarily mean replacing cloud-based AI.