Beginner 9 minInterfaces

LM Studio on Linux: Ubuntu, Debian, Arch, Fedora (2026)

LM Studio on Linux: Ubuntu, Debian, Arch, Fedora (2026)

LM Studio on Linux provides a graphical AppImage application for downloading and using local models, along with an API server. The 0.4 branch also includes the lms CLI and the headless llmster service. Here is the graphical workflow, the official prerequisites, and useful checks on Linux.

By Mohamed Meguedmi·Update 2026-10-14·Tested on Ubuntu 24.04
i
In brief
Download the AppImage for your architecture, make it executable, and launch it. The documentation cites Ubuntu 20.04 or later and recommends 16 GB of RAM. The GPU remains optional. Apply older FUSE fixes only if your version and its error message require them.

#Why LM Studio on Linux

On Linux, the usual choice for a local LLM is Ollama: a systemd daemon, a clean CLI, listening by default on localhost:11434. It's excellent for the server. LM Studio takes a different angle — the graphical workstation.

A complete interface without a terminal
Chat, Hugging Face model browser, download manager, sampling settings: everything in a GUI. Useful if you want to quickly test several models before moving to production.
A one-click OpenAI-compatible server
The Developer tab exposes an http://localhost:1234/v1 endpoint that speaks the OpenAI protocol. Any SDK (openai-python, LangChain, Continue.dev) can call it without changing a single line.
Zero system installation
The AppImage runs in user space. No sudo, no package to install, no third-party repository. For machines locked down by IT or unusual distributions, that’s valuable.
Native GGUF format
LM Studio reads only GGUF (the llama.cpp format). It's the same format used under the hood by Ollama, so 100% of popular models are available.
i
LM Studio and Ollama coexist very well
There's nothing stopping you from having both. Ollama as a daemon for your scripts and integrations, LM Studio for interactive chat and discovering new models. They don't use the same ports (11434 vs 1234) and don't interfere with each other.

#Prerequisites

The complete kit for building your own AI assistant.

Benefit from our experience and a guided path to build your local assistant and use your AI every day.

  • Lifetime online access
  • PDF + files
  • Refunded within 30 days
Recent Linux distribution
The official documentation cites Ubuntu 20.04 or later. For Debian, Arch, Fedora, and their derivatives, check the architecture, drivers, and release notes; this guide does not certify a test on every distribution.
System library compatibility
Use a distribution and architecture compatible with the official download. The glibc 2.35 threshold previously stated here is not a general prerequisite established by the current documentation.
FUSE
Version 0.4.22 fixed AppImage issues related to FUSE and the sandbox. Start with a recent version; install a FUSE library only if a specific error and your distribution's notes require it.
8 GB of RAM minimum
To run a 7B model in Q4. 16 GB for comfortable use, 32 GB+ for 14B models or to keep your IDE open alongside it.
GPU (optional but recommended)
NVIDIA with recent drivers (CUDA 12+), AMD with ROCm 6.x, or Intel Arc via Vulkan. Without a GPU, it runs on the CPU — functional for 3B models, slow for 7B models.
!
AppImage: start from the current version
Stop automatically installing libfuse2 as your first step. Update LM Studio, launch the AppImage from the terminal, and read the error. If an older version requires libfuse.so.2, check which package is compatible with your Ubuntu version.

#1. Retrieve the AppImage

The official site automatically detects your OS and offers the right version. Make sure you're downloading from lmstudio.ai—there are questionable mirrors.

Official website
https://lmstudio.ai
  1. 01
    Download the .AppImage file
    The binary is between 500 and 700 MB. It includes llama.cpp, the Electron UI, and the entire runtime. Conventionally, place it in ~/Applications/ or ~/.local/bin/—in reality, anywhere is fine; the AppImage is self-contained.
  2. 02
    Make it executable
    With the chmod +x command. Without it, the file is just an inert archive.
  3. 03
    Lancez-le
    Double-click from your file manager, or run it from the command line. On first launch, LM Studio extracts its contents to ~/.cache/AppImage/ — this is normal, and it only happens again after each update.
Quick CLI installation
mkdir -p ~/Applications
cd ~/Applications
# Remplacez le nom par celui du fichier téléchargé
chmod +x LM_Studio-*.AppImage
./LM_Studio-*.AppImage
→
Add LM Studio to the application menu
Install appimaged or AppImageLauncher: these tools automatically detect AppImages in ~/Applications/ and create .desktop entries so they appear in your menu like a native app. AppImageLauncher even handles updates.

#2. First launch

The 0.4 branch uses Developer Mode, which you can enable in Settings → Developer. The old User / Power User / Developer selection belongs to the 0.3 interface. Enable Developer mode when you need the server or advanced settings.

The left sidebar organizes the views:

Chat
The main interface, such as ChatGPT. This is what you will use 90% of the time.
Discover
The model store. Live search on Hugging Face, with a hardware compatibility indicator (Full GPU Offload / Partial / Likely too large) based on your detected VRAM.
My Models
All your downloaded models, with their sizes and quantizations. Useful for cleaning things up.
Developer
The local OpenAI-compatible server. Visible only in Power User or Developer mode.

#3. Download a GGUF model

LM Studio only reads the GGUF format (llama.cpp's binary format, successor to GGML). If a model exists on Hugging Face but not in GGUF, you won't be able to load it directly. The vast majority of popular models (Qwen 3.5, Gemma 4, Mistral, Granite 4.2, DeepSeek, gpt-oss) have community-maintained GGUF versions.

  1. 01
    Open Discover and search for a model
    For a first try, type Qwen 3.5 9B or Granite 4.2 8B—the safe 2026 choices in the 6-8 GB VRAM range. LM Studio lists the available GGUF variants, generally published by bartowski, unsloth, or lmstudio-community.
  2. 02
    Read the compatibility tags
    To the right of each variant, a green/orange/red indicator: Full GPU Offload means the entire model fits in your VRAM. Partial = some of it will go into RAM (slower). Likely too large = forget it.
  3. 03
    Choose the quantization
    Q4_K_M is the sweet spot for most use cases (small quality loss, ~50% of FP16 size). Q5_K_M if you have 30–40% more VRAM. Q8_0 for maximum quality if you have plenty of space. FP16 only for fine-tuning or comparison.
  4. 04
    Click Download
    Between 4 and 8 GB for a 7B, depending on the quantization. The download runs in the background, so you can start several in parallel.
→
Where models are stored
By default, LM Studio stores models in ~/.cache/lm-studio/models/. On Linux, this directory can grow quickly (50-200 GB with a few models). If your /home is on a small SSD, move the directory via Settings → Model Directory to a larger drive.

Once the model has downloaded, return to Chat, select it from the dropdown menu at the top, move the GPU offload slider to the maximum available setting, and click Load model. Loading takes 5 to 30 seconds depending on the size and speed of the disk.

#4. Launch the local server on port 1234

The Developer view provides OpenAI-compatible endpoints, including /v1/models and /v1/chat/completions. For clients that use these endpoints, adjust the base URL and authentication; not all OpenAI API features are necessarily supported.

  1. 01
    Switch to Developer mode
    Settings → UI Mode → Developer. The Developer tab (terminal icon) appears in the sidebar.
  2. 02
    Select a model
    Menu at the top of the Developer tab. The model must already be downloaded. You can load several in parallel if VRAM permits.
  3. 03
    Adjust Context Length and GPU Offload
    Set GPU offload as high as VRAM allows. The default context length of 4096 is sufficient for most uses; increase it to 8192 or 16384 for RAG or long documents.
  4. 04
    Click Start Server
    The server listens on 127.0.0.1:1234 by default. You can configure the port right next to it if 1234 is already in use.
Test the server
# Liste des modèles chargés
curl http://localhost:1234/v1/models

# Une complétion chat minimale
curl http://localhost:1234/v1/chat/completions \
  -H 'Content-Type: application/json' \
  -d '{
    "model": "local-model",
    "messages": [
      {"role":"user","content":"Capitale de l'\''Italie ?"}
    ],
    "temperature": 0.2
  }'

On the Python side, an official openai client is enough. The API key can be any string—LM Studio does not verify it.

Python client
from openai import OpenAI

client = OpenAI(
    base_url="http://localhost:1234/v1",
    api_key="lm-studio",  # placeholder, non vérifié
)

resp = client.chat.completions.create(
    model="local-model",
    messages=[
        {"role": "system", "content": "Tu réponds en une phrase."},
        {"role": "user",   "content": "Qu'est-ce qu'un GGUF ?"},
    ],
    stream=True,
)

for chunk in resp:
    print(chunk.choices[0].delta.content or "", end="", flush=True)
i
Live logs
The Developer tab displays the Server Logs in real time: every incoming request, generation time, and token count. Essential for debugging an integration.

For LAN access, enable network listening in the server settings. LM Studio has native token authentication: enable Require Authentication, create a token, and send it in the Authorization: Bearer header. This option is disabled by default. Keep localhost if the server is used only on this machine.

#5. GPU acceleration on Linux

This is the trickiest part of LM Studio on Linux. The AppImage bundles several backends (CPU, CUDA, ROCm, Vulkan) and chooses automatically at launch—but autodetection sometimes gets it wrong depending on the installed drivers.

NVIDIA (CUDA)
Proprietary 535+ drivers installed (nvidia-smi must work). CUDA 12.x is bundled in the AppImage, so you do not need to install it separately. Check under Settings → Hardware that the GPU is listed and the backend is set to CUDA.
AMD (ROCm)
ROCm 6.x drivers installed on the host (Radeon RX 6800 XT and newer are officially supported; RX 6700 XT and RX 7600 often work with HSA_OVERRIDE_GFX_VERSION). Your user must belong to the render and video groups.
Intel Arc / iGPU
Vulkan backend, decent performance on Arc A770/A750 but worse than NVIDIA/AMD. Install vulkan-tools to verify with vulkaninfo that the GPU is detected.
No GPU
Automatic CPU fallback. For a Granite 4.2 8B Q4 on a Ryzen 7, expect 5-8 tokens/sec. A 3B model such as Qwen 3.5 2B or Granite 4.2 3B remains very usable. Above 14B, patience becomes an issue.

The GPU offload slider in Chat or Developer controls how many model layers go to the GPU. Set it as high as VRAM allows. Check actual usage in a terminal:

Monitor VRAM
# NVIDIA
nvidia-smi -l 1

# AMD (radeontop ou rocm-smi)
rocm-smi --showmeminfo vram
VRAM guidelines by model size (Q4)
3B ≈ 2 GB · 7B ≈ 5 GB · 14B ≈ 9 GB · 32B ≈ 19 GB · 70B ≈ 40 GB. These figures increase slightly if you raise the context length beyond 4096.
Reference GPUs
A 12 GB card may be suitable for some quantized 7B or 14B models, depending on the context and available headroom. A 24 GB 4090 cannot fully contain a 70B model in Q3 with its cache: you need a smaller model or offloading to RAM. Check the loading estimate before choosing the hardware.
!
The silent CPU fallback trap
The model can be split between the GPU and RAM if dedicated memory is insufficient. Check layer loading and GPU usage during generation. Unsaturated VRAM alone does not prove a CPU fallback; measure the speed and consult the logs.

#Common pitfalls

The AppImage refuses to start
Launch the AppImage from a terminal, record its version and the exact message. Update before applying an old FUSE fix. Then check the architecture, distribution, and official prerequisites.
The GPU is not being used
Check nvidia-smi (or rocm-smi). If the GPU isn’t listed: drivers are missing or too old. If it is listed but LM Studio remains on the CPU: Settings → Hardware lets you force the backend (CUDA/ROCm/Vulkan). On AMD, the user must be in the render and video groups—log out and back in after running usermod.
The model is slow despite the GPU
VRAM is saturated and partial offloading is happening silently. Reduce the context length, lower the GPU offload slider to measure the threshold, or use a more aggressive quantization (Q5 → Q4 → Q3).
Port 1234 is already in use
Often occupied by another development service. Change the port in Developer → Settings, or kill the process: ss -tulpn | grep 1234. There is no need to touch the firewall for localhost use.
Breaking automatic updates
LM Studio updates itself by default. In a controlled environment (enterprise, CI/CD integration), disable this via Settings → Updates. Note the version number that works so you can roll back if needed.
Automate from the terminal
LM Studio provides an lms CLI: lms ls, lms load, lms chat, lms server, and lms runtime let you manage models and the server. The llmster service also works without the GUI. Consult lms --help and the documentation for the installed version.

#Sources and verification for October 14, 2026

Official documentation verified on October 14, 2026. Requirements may change: consult these sources before installation.

#Go further

You have LM Studio installed, a GGUF loaded, and an OpenAI-compatible server running. The natural next directions are:

Deep dive into the API server
The guide to turning LM Studio into an API server covers streaming, multiple models in parallel, secure LAN exposure, and performance tuning.
Compare with Ollama on Linux
The guide Installing Ollama on Linux covers the other popular stack, which is more daemon/server-oriented. For many users, the combination of Ollama (daemon) + LM Studio (client interface on top) is ideal.
Choosing the right quantization
The Choosing Your Quantization (Q4, Q5, Q8, FP16) guide visually compares actual quality loss and helps weigh quality against VRAM, especially when downloading your own GGUFs.
Did this guide help you?

Feedback, an error, or a clarification? Let us know—it improves the guide for everyone.