How to run an AI from a USB stick
You can carry a working AI around on a flash drive. Plug it into a laptop, double-click, and start chatting, with no internet and no account. We sell drives that do exactly this. We're also going to show you how to build one yourself, because our whole recipe is public and you don't need us to do it.
Fair warning: we make facts., so we're biased. We tried to write this so it's useful even if you never buy anything.
The short version
You need four things:
- A USB stick, 32GB is comfortable, formatted as exFAT
- The llama.cpp engine for each operating system you want it to run on (free, prebuilt)
- A model file in GGUF format (free, on Hugging Face)
- A launcher script that picks the right engine and settings for whatever computer it's plugged into
Budget about an hour if you're comfortable in a terminal. If "terminal" made you wince, skip to When to just buy one.
How it actually works
The stick is just storage. When you launch, the engine reads the model off the stick into your computer's memory, and your computer's own processor (or graphics card) does the thinking. That means:
- The computer sets the speed, not the stick. The stick only affects how long it takes to load.
- Memory is the real limit. llama.cpp loads the whole model into memory, so you need about the model's file size in free RAM (llama.cpp), plus more for the conversation. The longer the conversation it can remember, the more memory that takes (Ollama docs).
- Nothing needs the internet once the files are on the stick. You can turn Wi-Fi off and it runs the same.
This is the same thing people mean by "running a local LLM." The only twist is that everything lives on the stick and nothing gets installed on the computer.
Step 1: Pick the stick
- Size: 32GB. That fits two sizes of a good model plus engines for all three systems, with room to swap models later. (16GB can work if you only carry one model file.)
- Speed: USB 3 if you can. The engine reads the whole model once at launch. A 4.3GB model takes about 2 minutes to read over USB 2, which tops out around 35MB/s in practice (Tom's Hardware), and well under a minute on a decent USB 3 stick. After it loads, the stick barely matters.
- Format it as exFAT. This one bites a lot of people. FAT32, the default on many sticks, can't hold a file over 4GB (Microsoft), and good model files often are. Qwen3.5-4B's higher-quality file is 4.48GB, so it won't even copy. exFAT works on Windows, Mac (Apple) and Linux (built in since kernel 5.7, kernelnewbies).
Step 2: Pick a model
Models for llama.cpp come as GGUF files: one file that holds the model and everything the engine needs to know about it, built for fast loading (ggml docs). You'll find thousands on Hugging Face.
Size. Models are described by how many parameters they have (4B = 4 billion). Bigger is smarter but slower and hungrier. For the laptops most people own (8 to 16GB of RAM), a model around 4B is the sweet spot. It's quick, it fits, and it's genuinely useful for writing, explaining, brainstorming and code help.
Quantization. The letters at the end of the file name (Q4_K_M, Q8_0) tell you how much the model was compressed. Q4_K_M stores about 4.9 bits per weight and Q8_0 about 8.5 (llama.cpp).
| Q4_K_M | Q8_0 | |
|---|---|---|
| Qwen3-4B file size (Hugging Face) | 2.5GB | 4.3GB |
| Quality | a little rougher | close to the original |
| Good for | 8GB computers | 16GB and up |
Our own launchers carry both and pick based on how much RAM the computer has.
What "abliterated" means. You'll see this word a lot. In 2024, researchers found that a model's habit of refusing requests mostly comes down to a single direction inside it, and that erasing it stops the refusals (Arditi et al.). "Abliteration" is the popular name for editing a model's weights to remove that direction, no retraining needed (Maxime Labonne). The trade-off: it can cost some quality (Labonne measured a drop across benchmarks; the paper found most scores held up, with a consistent drop on a truthfulness test), and it will answer things a regular chatbot won't, so think about who's using it. We ship abliterated models because we'd rather you decide what's off limits than a company. Your call for your own build.
Check the license on the model's page before you share or sell anything you build. Qwen's small models are Apache 2.0 (Qwen3.5-4B), which is about as permissive as it gets. Not every model is.
Step 3: Get the engine
llama.cpp is the free, MIT-licensed engine that a lot of local AI runs on. Ollama and LM Studio both use it under the hood. It publishes ready-to-run builds, so you don't have to compile anything.
One thing that confuses people: on the releases page, the release
marked "Latest" doesn't have the programs in it. The downloads are on the numbered builds (named like b8783), which
GitHub labels "Pre-release." Grab one for each system you care about:
| System | Release file to download |
|---|---|
| Mac (Apple Silicon) | llama-bXXXX-bin-macos-arm64.tar.gz |
| Windows | llama-bXXXX-bin-win-vulkan-x64.zip (works with NVIDIA, AMD and Intel graphics) |
| Linux | llama-bXXXX-bin-ubuntu-x64.tar.gz (or the ubuntu-vulkan build for graphics cards) |
Our drives use build b8783. Newer builds should work too, but if a flag below errors out, that one is known good. Extract each into its own folder on the stick and keep every file together. The program needs the library files sitting next to it.
Why not Ollama or LM Studio? Both are great on your own computer, and both run on llama.cpp
(Ollama, LM Studio). They're apps you install,
though. On a stick you want something that runs in place without installing anything on whatever computer you plug
into. llama.cpp's llama-cli is just a program you run from the stick, which makes it the best fit. Ollama can keep
its models in another folder (Ollama FAQ), but Ollama itself still has to be installed
on each computer.
What about llamafile? llamafile packs the engine and the model into one file that runs everywhere, which sounds perfect for a stick. The catch: Windows won't run a program over 4GB, so bigger models have to sit next to it as a separate file (llamafile's README says so itself). Some people have also had Windows Defender flag llamafiles as malware (GitHub issue). It's a good option if your model is small.
Step 4: Put it together
A simple layout:
USB STICK/
model-Q4_K_M.gguf
model-Q8_0.gguf
mac/ (the macOS download)
windows/ (the Windows download)
linux/ (the Linux download)
Then start a chat from a terminal in the stick's folder:
Mac: ./mac/llama-cli -m model-Q4_K_M.gguf -c 8192 -cnv
Windows: windows\llama-cli.exe -m model-Q4_K_M.gguf -c 8192 -cnv
Linux: ./linux/llama-cli -m model-Q4_K_M.gguf -c 8192 -cnv
-cnv starts a back-and-forth chat. Two settings worth knowing:
- Always set
-c. It's how much of the conversation the model can keep in mind. If you leave it out, llama.cpp starts from the model's maximum, which for Qwen3.5-4B is 262,144 tokens (llama.cpp). Newer builds shrink that to fit your memory, but picking it yourself is faster and predictable. 8192 is a good start; go up if you have RAM to spare. -nglcontrols how much of the model goes on the graphics card.-ngl 0keeps it all on the processor, which is slower but always works.
Or skip writing launchers. Ours are free on GitHub at github.com/WEAREOSE/facts. They check the computer's RAM and graphics card, pick the right model file and settings, clear old chat history, and open the chat. The README lists the exact model and engine files to download. It's the same software that's on the drives we sell.
The stuff that trips people up
We've built and shipped a lot of these drives. Here's what actually goes wrong.
- Your Mac refuses to open it. Macs check programs downloaded from the internet and may block ones they don't
recognize. Go to System Settings > Privacy & Security, scroll down and click Open Anyway
(Apple). Tip: the flag comes from your browser, and extracting the download
with
tarin Terminal doesn't carry it over to the files inside (Apple developer forums). - Windows warns you about it. Windows may show a "Windows protected your PC" warning for a program it doesn't recognize. Click More info, then Run anyway, but only for files you got from the official llama.cpp releases page.
- It crashes on a laptop with a small graphics card. Graphics cards with 4GB or less can run out of memory. If it
crashes or garbles text, use
-ngl 0to run on the processor, or put fewer layers on the card. - The model "thinks out loud" forever, or seems dumb. Newer models need the right chat template. Use a current
llama.cpp build (it reads the template from the GGUF file), and if a model shows its reasoning when you don't want
it,
--reasoning-budget 0turns that off. - Copying silently goes wrong. Cheap sticks, hot USB hubs and yanked cables can leave a file that's the right size
but has damaged bytes in it. It'll crash in weird ways later. After copying, check the file's SHA-256 against the
one shown on its Hugging Face page (
shasum -a 256 file.ggufon Mac and Linux,certutil -hashfile file.gguf SHA256on Windows). We learned this one the hard way. - It's slow on battery. Running a model works the processor hard, and laptops hold back on battery. Plug in for long sessions.
When to just buy one
HackerNoon ran a piece called "Don't Buy an Uncensored AI on a Flash Drive". Its point is that these drives are free software plus a markup for convenience. That's basically true, which is why we publish ours. If you made it through this guide and it sounded fun, build it. It's free, you'll learn a lot, and you'll end up with the same thing.
Buying makes sense when:
- It's for someone who'll never open a terminal. A parent, a grandparent, a gift. They plug it in and double-click.
- You want it tested before it shows up. We load each drive by hand, test it, and verify it works before it ships.
- You want the hardware detection done for you. Our launchers handle the RAM, graphics and Mac/Windows/Linux differences above, and the v1.5 benchmarks your computer on first launch to pick the faster setup.
- You'd rather not spend the evening.
facts. is $29.99. facts. v1.5 is $49.99 with the newer Qwen 3.5 model and Intel Mac support. Either way you're paying for the hardware, the testing and the convenience. The software is the same free code linked above.
Quick answers
Is it really offline? Yes. Once the files are on the stick nothing connects to the internet. Turn off Wi-Fi and try it.
Will it run on a phone, iPad or Chromebook? Not with this setup. It needs a Mac, Windows or Linux computer.
Is a small model as good as ChatGPT? No, and anyone who says otherwise is selling something. A 4B model is great for everyday writing, explaining and brainstorming, and it can still be confidently wrong, especially on niche facts. What you get in return is privacy and an AI that works anywhere.
Will my chats stay on the stick? That depends on your launcher. Plain llama-cli doesn't save chats unless you tell
it to. Ours also wipe any leftover session files when they start and when they close.
Sources
- llama.cpp repository and releases: github.com/ggml-org/llama.cpp, releases
- llama.cpp quantize README (bits per weight; models load fully into memory): link
- llama.cpp server README (context defaults to the model's maximum; fit to memory): link
- GGUF format spec: github.com/ggml-org/ggml/blob/master/docs/gguf.md
- Qwen3-4B GGUF file sizes: huggingface.co/Qwen/Qwen3-4B-GGUF
- Qwen3.5-4B model card (Apache 2.0): huggingface.co/Qwen/Qwen3.5-4B; Q8_0 GGUF size: huggingface.co/unsloth/Qwen3.5-4B-GGUF
- Ollama on context length and memory: docs.ollama.com/context-length; OLLAMA_MODELS: docs.ollama.com/faq; llama.cpp backend: github.com/ollama/ollama
- LM Studio runs on llama.cpp: lmstudio.ai/docs/app
- Microsoft, file system limits (FAT32 4 GiB max file): link
- Apple, Disk Utility file system formats: link
- Linux 5.7 native exFAT driver: kernelnewbies.org/Linux_5.7
- llamafile (4GB Windows limit): github.com/mozilla-ai/llamafile; Defender report: issue #28
- Apple, Safely open apps on your Mac: support.apple.com/en-us/102445; quarantine and
tar: Apple developer forums - Arditi et al., "Refusal in Language Models Is Mediated by a Single Direction" (2024): arxiv.org/abs/2406.11717
- Maxime Labonne, "Uncensor any LLM with abliteration" (2024): huggingface.co/blog/mlabonne/abliteration
- USB 2.0 real-world throughput (up to 35MB/s): Tom's Hardware
- HackerNoon, "Don't Buy an Uncensored AI on a Flash Drive" (2026): link
- Our launchers and build list: github.com/WEAREOSE/facts