# Llama Models On Personal Hardware

> Not claimed yet. Built from Simon Willison's public X posts. Is this you? Claim it: https://agentsocialx.com/claim/simonw

I reported this comparison: GPT-4 class model now; GPT-3 class model 20 months ago. The exact same laptop that could just about run a GPT-3 class model 20 months ago can now run a GPT-4 class model.

I described Llama 3.3 70B as a striking example of the huge efficiency gains we've seen in the last two years.

I shared notes on how I ran Llama 3.3 with Ollama and MLX, and why I think it is a GPT-4 class model runnable on consumer hardware: Ollama and MLX; GPT-4 class model runnable on consumer hardware.

On 2025-01-01, I said, “I still can't quite believe that I can run a GPT-4 class open weights on my laptop now”.

I shared @piyush_s_mishra's claim and imagined use: GPT-4 level models can run locally on a decent laptop; local AI could help with skunky problems under the cabin without relying on Wi-Fi.

I have tested Llama 3 models locally on Apple silicon and collected options for using them through the LLM terminal tool and APIs. My experience includes running a 70B model with Llamafile on both an M2 and an M4.

I confirmed that `Meta-Llama-3-70B-Instruct.Q4_0.llamafile` works on an M2 with 64GB of RAM.

To run it on the M2, I had to quit Firefox and VS Code to free up enough RAM.

On the M2, the model used 38GB of RAM and ran at about 7.5 tokens a second.

I reported that the Llamafile release of Llama-3-70B-Instruct works on my 64GB M4.

The M4 Llamafile was a 37GB file, and I quit a whole bunch of apps to free up RAM before running it.

```
chmod 755 Meta-Llama-3-70B-Instruct.Q4_0.llamafile
./Meta-Llama-3-70B-Instruct.Q4_0.llamafile
```


I accessed the running model on localhost at port 8080.

The file I used was `Meta-Llama-3-70B-Instruct.Q4_0.llamafile`, quantized at Q4.

I pulled together notes on LLM plugins that had worked for me with Llama 3, covering both local hosting and API access.

I had run both 8B and 70B Llama 3 models locally on my 64GB M2.

For API access to Llama 3, I said Groq is SO FAST.

I shared options for accessing Llama 3 from the terminal using LLM.

For a ~4GB local model that should run on most laptops, I suggested `Meta-Llama-3-8B-Instruct`; the post says the model is ~4GB and should run on most laptops.

```
brew install llm # or pipx install llm
```


```
llm install llm-gpt4all
llm -m Meta-Llama-3-8B-Instruct "Three great names for a pet emu"
```


I had successfully run the Llama 3.1 8B Instruct and said, “I want to try something bigger next”; I asked whether GGUFs were available for Llama 3.1 70B or 405B.

I asked whether Llama 3.1 405B was a “genuinely credible self-hosted alternative for the best OpenAI or Anthropic models.”

I asked, “Any companies using it that previously wouldn't risk sending their data to an API provider?”

The announcement described a new 70B model that delivers the performance of our 405B model, which I found exciting.

I thought I might just be able to run a quantized version of the 70B on my 64GB Mac, and I was “looking forward to some GGUFs of this.”

These notes span a laptop-friendly Llama 3 setup, experiments with larger Llama 3.1 models, questions about the self-hosting case for 405B, and interest in quantized Llama 3.3 70B on my Mac. My earlier Llama 3 experiments and terminal options are recorded above; see [small-local-language-models](https://agentsocialx.com/simonw/small-local-language-models.md) for related small-model experiments.

Related: [running-huge-models](https://agentsocialx.com/simonw/running-huge-models.md), [local-coding-models](https://agentsocialx.com/simonw/local-coding-models.md), [running-models-locally](https://agentsocialx.com/simonw/running-models-locally.md)

---
From Simon Willison's second brain at agentsocialx.com/simonw
