Work down this page during the session or return to it later.

Local AI is not as powerful as most cloud models but it gives you data sovereignty.

Introduction

Defining Local AI

Local AI refers to generative AI model (often an LLM, but not always) that runs entirely on your own computer–with no account, no subscription, and no data leaving your machine.

Conventionally, when you type a question into ChatGPT, Claude, or Gemini, your text travels to a company’s data center, a very large model answers, and the reply travels back. With local AI, a smaller (but still capable) model lives on your own hard drive and does the same work using your own processor and memory. You can turn off the Wi-Fi and it keeps working.

This is possible because, since 2023, companies and research groups have released Weights are the specific instructions given to steer language models pattern matching processes. Open-weight means that these instructions are not hidden and are reproducible. — Meta’s Llama, Google’s Gemma, Alibaba’s Qwen, Mistral, Microsoft’s Phi, DeepSeek, and OpenAI’s gpt-oss — that anyone can download for free from hubs like Hugging Face. An article in WIRED published on the day of the workshop summarizes the history of local AI. If WIRED asks you to subscribe, use the archived copy. The LocalLlama subreddit keeps current with all the various developments in local AI.

At the same time, a generation of friendly desktop apps, such as LM Studio and Ollama, has made running those models as easy as installing a word processor. You no longer need to open a terminal or write a line of code. Open-weight models are a step toward reproducibility, but without open-source AI the reproducibility of large language model (LLM) output is still limited.

Other locally-run generative AI applications, such as WhisperX, are technically not LLMs. However, this session will end with a use case of WhisperX because it is a transformer with The decoder is basically a small language model that predicts the next word, guided by the audio rather than by a prompt. That’s why Whisper can hallucinate fluent text over silence or noise, the same way an LLM fills gaps with plausible guesses. So it’s fair to call it a close cousin of an LLM, specialized for one task. that operates very similarly to a local LLM.

About the Use Cases

This workshop will highlight three use cases for local AI

  • LM Studio as a chatbot. Avoid data center costs by using a local LLM for basic chatbot functions.
  • Zotero Chat for working with your own reading notes. Focus a local LLM on the PDFs and annotations from your Zotero library.
  • WhisperX for audio transcription. Use WhisperX for transcribing confidential or IRB-protected audio.

Hardware Recommendations

There are a lot of models available for download. Some small local AI models can run on any computer and even on phones. However, a model must fit in your computer’s memory (RAM, or video memory on a dedicated graphics card), based on the model’s The context window is the maximum amount of text it can hold in mind at once (prompt plus document plus answer). Modern open models support 32,000–256,000 tokens on paper, but apps often default to a small window such as 4,000 tokens to save memory, and larger windows need more RAM and run more slowly.. An 8 GB laptop can run small models slowly; 16 GB runs the useful mid-sized ones; 32 GB and up runs the models that start to feel like a cloud chatbot. A five-year-old Intel laptop will be painfully slow. Running a model also drains a laptop battery quickly and makes the fan spin.

1. LM Studio as Chatbot

LM Studio is an app that manages models that you download.

LM Studio offers the most beginner-friendly place to start with local AI. The LM Studio app is not open source, but the models it runs are open. The landing page for LM Studio pushes their agentic product, named Bionic, but you can skip that and download LM Studio without Bionic by scrolling further on the download page.

Most instructions for local AI involve terminal commands, Python environments and file formats you’ve never heard of. LM Studio skips all of that. It’s a desktop app for downloading and running large language models on your own computer, and it works with models like gpt-oss, Llama, Qwen, Mistral, and DeepSeek R1 without sending data to a cloud service. You don’t have to go looking for model files, because you can find and download models inside the app, using Hugging Face as the source.

Once a model is loaded, you talk to it in a familiar chat window. You can also attach files to your messages and ask questions about them, which matters when the files are unpublished drafts, interview transcripts or anything else you’d rather not upload to a company’s server.

A screenshot of LM Studio transcribing a photo of handwritten notes from sometimes challenging handwriting.

A screenshot of LM Studio transcribing a photo of handwritten notes.

After you’ve downloaded a model, LM Studio can work without an internet connection. LM Studio was always free for personal use, and starting in July 2025 it became free to use both at home and at work, so you can try it on work projects without a licensing conversation. It runs on most machines you’re likely to own: Apple Silicon Macs, x64 or ARM64 Windows PCs, and x64 Linux PCs.

We have two recommendations for the controls for a model in LM Studio’s model library (click on the gear icon):

  • In the System Prompt, write standing instructions the model reads before every conversation. For example: “You are an assistant to an academic historian. Preserve original spellings. Never invent citations. If unsure, say so.”
  • In the settings section, adjust Temperature: The temperature is a dial from 0 to about 1.5 controlling randomness. Low (0–0.3) gives consistent, literal output — right for translation, extraction, and summarizing. Higher (0.7–1.0) gives variety and invention — right for brainstorming. For scholarly work, keep it low.

When you’re ready to go beyond chatting, LM Studio has an agentic app and also has MCP stands for Model Context Protocol. When you enable MCP, the AI model can be connected to other tools and apps, such as a local database or even something as simple as a calculator. capability.

LM Studio provides an easy-to-use way to experiment with generative AI chatbots without any data center interactions.

2. Zotero Chat

The Zotero Chat app works through RAG stands for retrieval-augmented generation, which means that it constrains the LLM to answer from a specific data set.. In this case, the RAG data set is the PDFs and annotations in your Zotero library.

The installation instructions include the downloading of a specific, recommended local LLM (Google’s gemma4:e4b-it-q4_K_M) and supporting applications and scripts.

Zotero Chat lets you ask your Zotero library a question in plain language, and the answer comes only from your own sources. It searches the full text of your PDFs and saved web pages, plus your notes, highlights and comments. You can search all of My Library, one group library, or a single collection. The answer cites every claim by author, year and page, and each citation has a link that opens the PDF at that page or shows the item in Zotero, so you can check the original yourself. The app is told to use only the passages it finds, and to point out where your sources disagree. If your library doesn’t cover the question, it says so instead of filling the gap with an invented source. Everything runs on your own computer. The language model runs through Ollama and the search indexes are stored on your disk, so your library, your private notes and your copyrighted PDFs never go to a cloud service. You can follow up with “What method did they use?” or “Which of these are critical of it?” and it keeps track of what you were asking about. When you add new items, only those get re-indexed. In short, it turns your library from a filing cabinet into something you can ask questions of.

However, there are some limits. Zotero Chat can’t answer questions that need the whole library at once, like “list every paper by Smith.” Scanned PDFs without a text layer only contribute their catalog details. Answers are only as careful as the local model. Even with a M4 chip on a Mac, the big first build takes a while: about 50 minutes for roughly 1,600 PDFs. For a Windows laptop with 8GB of RAM, a library of about 20 PDFs took about an hour to build.

A browser window with a prompt and reply from Zotero Chat that requires a rephrase of the prompt.

A screenshot of Zotero Chat running, showing the limitations of local LLM thinking.

To install Zotero Chat, follow the instructions on its README document.

Zotero Chat helps you remember connections, and make new ones, among the sources and notes in your Zotero library.

3. WhisperX for Audio Transcription

To demonstrate the use of WhisperX, the workshop referred to the audio files in the Lao Special Guerrilla Unit and Royal Lao Army Veteran Interviews Collection at the Library of Congress.

For your own project, start by setting up a project folder, putting MP3s in an audio subfolder and renaming them so the names have no spaces or special characters. Next, open a terminal, install Python and ffmpeg if you don’t already have them, and create a virtual environment, which keeps WhisperX and the software it depends on separate from everything else on your computer. Install WhisperX there and transcribe a single file as a test, which confirms your setup works, shows how long a file takes and lets you pick a model that is accurate enough. Then transcribe all ten files in one batch, which gives you a plain-text transcript, subtitle files with timestamps and detailed timing data for each recording. If you want, label who is speaking, which needs a free Hugging Face token, and give WhisperX a short initial prompt so it spells names and specialist terms correctly. Finally, treat the output as a draft: listen to the audio while you read the transcript, fix misspelled names, watch for invented or repeated text and replace the generic speaker labels with real roles. Whenever you need help fixing an error, writing a script or cleaning up a transcript, paste one of the sample prompts into an AI assistant (at this time, a frontier model works best). For a step-by-step guide, open the dialog box below.

Transcribing a folder of MP3s with WhisperX: a beginner's guide

Goal: You have one folder with 10 .mp3 files. At the end you will have a text transcript, plus subtitle and timing files, for each one. You can also label speakers if you want.

Time needed: About 30–60 minutes to set up the first time. After that, transcribing takes from a few minutes to a few hours, depending on your computer and how long the audio is.

Before you start: what you need

Item Why Notes
A computer running macOS, Windows, or Linux WhisperX runs on your own machine It works without a GPU, just more slowly
Python 3.10, 3.11, or 3.12 WhisperX is a Python program 3.11 is a safe choice
ffmpeg Reads and decodes the MP3 files Free command-line tool
About 10 GB of free disk space For the speech models that download the first time you run it  
(Optional) An NVIDIA GPU Makes transcription roughly 10× faster Needs the CUDA 12.8 toolkit. Macs have no NVIDIA GPU, so they run on the CPU
(Optional) A free Hugging Face account Needed only if you want speaker labels (“Speaker 1”, “Speaker 2”) See Step 8

Step 1: Organize your files

  1. Make a folder with a short, simple name and no spaces, for example:
    • macOS/Linux: ~/transcribe
    • Windows: C:\transcribe
  2. Inside it, make a subfolder called audio and put your 10 MP3s there.
  3. Rename the files so they have no spaces or special characters. That avoids a lot of command-line trouble.
transcribe/
├── audio/
│   ├── interview_01.mp3
│   ├── interview_02.mp3
│   ├── ...
│   └── interview_10.mp3
└── transcripts/        <- WhisperX will write its output here

Step 2: Open the terminal

New to the terminal? The terminal (macOS/Linux) or PowerShell (Windows) is a window where you type commands. In this guide, every gray code box is something you copy, paste, and run by pressing Enter.

  • macOS: Press Cmd + Space, type Terminal, press Enter.
  • Windows: Press the Windows key, type PowerShell, press Enter.
  • Linux: Press Ctrl + Alt + T.

Move into your project folder:

# macOS / Linux
cd ~/transcribe

# Windows PowerShell
cd C:\transcribe

Step 3: Install Python and ffmpeg

Check whether they are already installed
python3 --version     # macOS/Linux  (on Windows, type: python --version)
ffmpeg -version

If each command prints a version number, skip to Step 4. If you see “command not found” or “not recognized,” install what’s missing:

MAC (using Homebrew)
# Install Homebrew first if you don't have it (see https://brew.sh), then:
brew install python@3.11 ffmpeg
Windows
winget install Python.Python.3.11
winget install Gyan.FFmpeg

Close PowerShell and open it again so it picks up the new programs.

Step 4: Create a virtual environment

A virtual environment is a self-contained space for WhisperX and everything it depends on, so it won’t clash with other software on your computer.

# macOS / Linux
python3 -m venv .venv
source .venv/bin/activate

# Windows PowerShell
python -m venv .venv
.venv\Scripts\Activate.ps1

Once it’s active, you’ll see (.venv) at the start of your command line.

Remember: Each time you open a new terminal window, go back to your folder (cd ...) and run the activate line again before using WhisperX.

Windows tip: If PowerShell says scripts are disabled, run this once and then try activating again: Set-ExecutionPolicy -Scope CurrentUser RemoteSigned

Step 5: Install WhisperX

pip install --upgrade pip
pip install whisperx

This can take several minutes, because it downloads PyTorch and other large libraries.

Check that it worked:

whisperx --help

If you see a long list of options, WhisperX is installed.

Optional, NVIDIA GPU users only: Install the CUDA 12.8 toolkit from NVIDIA before installing WhisperX. If you skip this, WhisperX will still work on the CPU.

Ask an AI assistant:

“I ran pip install whisperx inside a Python 3.11 virtual environment on [your OS] and got this error: [paste the last 20–30 lines]. What went wrong and how do I fix it?”

Step 6: Test it on one file first

Don’t start with all 10 files. Run a single file first to make sure everything works and to see how long it takes.

If do not have a NVIDIA GPU (all Macs, most laptops)
whisperx audio/interview_01.mp3 --model small --language en --device cpu --compute_type int8 --output_dir transcripts
If you have an NVIDIA GPU
whisperx audio/interview_01.mp3 --model large-v3 --language en --output_dir transcripts

What each part means:

Option What it does
--model Which Whisper model to use. Options include tiny, base, small, medium, large-v2, large-v3. Bigger models are more accurate and slower
--language en Tells WhisperX the audio is in English, so it doesn’t have to guess. Use es, fr, de, ca, etc. for other languages
--device cpu Run on the processor rather than a GPU
--compute_type int8 Uses a lighter number format so it runs well on a CPU
--output_dir transcripts Where to save the results

The first run downloads the model (from a few hundred MB up to about 3 GB), so it will be slower than later runs.

Check the output. Open the transcripts folder. You should see files such as:

  • interview_01.txt: plain-text transcript
  • interview_01.srt / .vtt: subtitles with timestamps
  • interview_01.json: full detail, including word-level timings
  • interview_01.tsv: timestamped segments you can open in a spreadsheet

Read through the .txt. If the accuracy isn’t good enough, try --model medium or --model large-v3. They’re slower on a CPU, but more accurate.

Step 7: Transcribe all 10 files

Once the test works, run the whole folder. Replace the options with whatever worked for you in Step 6.

mac

WhisperX accepts multiple files at once, so a wildcard works:

whisperx audio/*.mp3 --model small --language en --device cpu --compute_type int8 --output_dir transcripts
Windows PowerShell

PowerShell doesn’t expand *.mp3 for you, so loop over the files:

Get-ChildItem audio\*.mp3 | ForEach-Object {
    whisperx $_.FullName --model small --language en --device cpu --compute_type int8 --output_dir transcripts
}

Tips for a long batch:

  • Plug in your laptop and turn off sleep mode.
  • Leave the terminal window open. Closing it stops the job.
  • If the job stops partway through, delete the half-finished output files for the last file, then rerun only the files that are missing.

Step 8 (optional): Label who is speaking (diarization)

If your recordings include more than one speaker, such as interviews or panels, WhisperX can tag each segment with SPEAKER_00, SPEAKER_01, etc.

One-time setup
  1. Create a free account at huggingface.co.
  2. Go to the model page pyannote/speaker-diarization-community-1 and accept its user agreement.
  3. Go to Settings → Access Tokens, create a token with Read permission, and copy it. It starts with hf_....

Treat this token like a password. Don’t paste it into documents you share or into public forums.

Run with speaker labels
whisperx audio/interview_01.mp3 --model small --language en --device cpu --compute_type int8 \
  --diarize --hf_token hf_YOURTOKENHERE --min_speakers 2 --max_speakers 2 \
  --output_dir transcripts

On Windows, put the command on one line, or replace each \ at the end of a line with a backtick (`).

  • --min_speakers / --max_speakers: if you know how many people are talking, saying so improves accuracy.
  • Speaker labels are generic. You’ll need to work out who SPEAKER_00 is by listening.

Step 9: Help WhisperX with names and jargon (initial prompt)

Whisper often misspells names, places, and specialist terms. You can pass a short initial prompt, a sentence of context in the style of the recording, to point it toward the right spellings.

whisperx audio/interview_01.mp3 --model small --language en --device cpu --compute_type int8 \
  --initial_prompt "An oral history interview about Albuquerque, New Mexico, discussing the Rio Grande, acequias, and Los Alamos." \
  --output_dir transcripts

Sample initial prompts:

Recording type Example --initial_prompt
Oral history "Oral history interview with a veteran of the Royal Lao Army, recorded in 2004, discussing Long Tieng and Vang Pao."
Academic lecture "A university lecture on medieval Iberia covering the Crown of Aragon, Barcelona, and the Corts."
Podcast "A podcast conversation between two hosts, Maria and David, about local history. Hello and welcome back to the show."
Meeting "Weekly team meeting. Attendees: Priya Raman, Tom Okafor, and Luis Chávez. Agenda: budget, hiring, Q3 roadmap."

Tips:

  • Keep it short (one to three sentences) and write it the way the speakers talk.
  • Include proper nouns spelled exactly as you want them to appear.
  • The prompt is a nudge, not a rule. Always proofread names afterward.

Step 10: Review and clean up

Machine transcripts are drafts. Plan to:

  1. Listen while reading. Open the .srt file alongside the audio in a media player such as VLC, which can load .srt subtitles, and correct errors as you go.
  2. Search for proper nouns. Use find-and-replace for names WhisperX consistently gets wrong.
  3. Check for “hallucinations.” In long silences or music, Whisper sometimes invents text or repeats a phrase over and over. Search for repeated lines.
  4. Replace speaker labels (SPEAKER_00 → Interviewer) if you used diarization.

Ask an AI assistant to help with cleanup:

  • “Here is a raw WhisperX transcript. Fix obvious punctuation and capitalization, but do NOT change any wording. Mark anything that looks garbled with [unclear].”
  • “In this transcript, SPEAKER_00 is the interviewer and SPEAKER_01 is the narrator. Replace the labels and merge consecutive lines from the same speaker into paragraphs.”
  • “Scan this transcript for passages that might be Whisper hallucinations: repeated phrases, text that doesn’t fit the context, or ‘thank you for watching’ type filler. List them with their timestamps.”
  • “Convert this WhisperX .tsv file into a clean Markdown transcript with a timestamp every 30 seconds.”

Troubleshooting quick reference

Problem Likely fix
whisperx: command not found Your virtual environment isn’t active. Run the activate command from Step 4
ffmpeg not found Install ffmpeg (Step 3), then close and reopen the terminal
CUDA out of memory Add --batch_size 4 (or 2), or use a smaller model
Error mentioning float16 on CPU Add --compute_type int8 --device cpu
libcudnn... errors (GPU) A CUDA/cuDNN version mismatch. Run on the CPU for now, or ask for help (prompt below)
Diarization error about access / 401 / gated model Accept the pyannote model agreement on Hugging Face and check your token
Transcript is in the wrong language or garbled Add --language with the correct code
Very slow Normal on a CPU with large models. Try --model small first

Ask an AI assistant when something goes wrong:

“I’m a beginner using WhisperX on [OS], [GPU model or ‘no GPU’], Python [version]. I ran this command: [paste command]. I got this error: [paste the full error]. Explain in plain language what went wrong and give me the exact command to fix it.”

Cheat sheet

# Every new session:
cd ~/transcribe                 # or: cd C:\transcribe
source .venv/bin/activate       # or: .venv\Scripts\Activate.ps1

# One file (CPU):
whisperx audio/FILE.mp3 --model small --language en --device cpu --compute_type int8 --output_dir transcripts

# All files (macOS/Linux, CPU):
whisperx audio/*.mp3 --model small --language en --device cpu --compute_type int8 --output_dir transcripts

# With speakers + context:
whisperx audio/FILE.mp3 --model small --language en --device cpu --compute_type int8 \
  --diarize --hf_token hf_XXXX --min_speakers 2 --max_speakers 2 \
  --initial_prompt "Short description with Proper Names." --output_dir transcripts

The official project page is WhisperX on GitHub.

WhisperX offers you the chance to transcribe audio without any upload to the cloud.

What to take with you

Remember these key points about local AI:

  • Local AI is the only way to ensure data sovereignty. Even when you use an institutional account, subject to data privacy agreements, you nevertheless make a copy of your data when you upload it to a cloud AI service that uses a data center. You know that you have full data sovereignty when you can run the local model when disconnected from the internet.
  • Local AI avoids data center costs. Local AI offers you the chance to familiarize yourself with customs of generative AI use without contributing to the most disruptive parts of the generative AI economy.
  • Local AI makes far more mistakes than frontier models. You have more control over your data using local AI, but the quality of responses suffers from the lower scale. Hallucinations are far more likely with local AI so use local models only in specifically directed ways.
  • Frontier models can help you learn local AI. At the same time, the most effective way to get started with local AI is to have frontier models, such as Claude, ChatGPT, or Gemini, help you with the initial setup and debugging.
  • Keep checking the news about local AI. By 2028, there will likely be much more powerful ways to use local AI.