Model weights can arrive from another machine or a download outside the model manager. On Linux, lms import adds an existing GGUF file to LM Studio's model library without downloading it again.

The default import moves the source file out of its original location. Copy mode preserves the original but needs disk space for another full copy. Hard links share the underlying file data, while symbolic links depend on the original path remaining available.

LM Studio organizes its library by publisher and repository under the current user's model directory. Importing registers the file on disk; loading it into memory remains a separate operation and requires a runtime that supports the model's architecture.

Steps to import a GGUF model in LM Studio on Linux:

  1. Check your existing local GGUF file, replacing the path below with its location. Example output:
    $ ls "$HOME/local-models/qwen2.5-0.5b-instruct-q4_k_m.gguf"
    /home/user/local-models/qwen2.5-0.5b-instruct-q4_k_m.gguf

    lms must be available in your shell with LM Studio or llmster running under the account that owns the library. The source file belongs outside that library before import.
    Related: Set up lms and llmster on Linux

  2. Import your file with copy mode, replacing the source path and publisher/repository with your model's values. Example output:
    $ lms import "$HOME/local-models/qwen2.5-0.5b-instruct-q4_k_m.gguf" \
      --copy --user-repo Qwen/Qwen2.5-0.5B-Instruct-GGUF --yes
    File copied to /home/user/.lmstudio/models/Qwen/Qwen2.5-0.5B-Instruct-GGUF/qwen2.5-0.5b-instruct-q4_k_m.gguf

    –copy keeps the original file. –user-repo sets the two destination folders and skips categorization prompts; –yes skips confirmation. A copy occupies the model's full size again. Without a copy or link option, import moves the original file.
    Related: lms import options

  3. Check the imported filename under your chosen publisher and repository. Example output:
    $ ls "$HOME/.lmstudio/models/Qwen/Qwen2.5-0.5B-Instruct-GGUF/"
    qwen2.5-0.5b-instruct-q4_k_m.gguf

    The default layout is ~/.lmstudio/models/publisher/repository/model-file.gguf. A customized models directory replaces ~/.lmstudio/models. The folder names must match the –user-repo value from the import.

  4. Confirm that your imported model appears in the local language-model list. Example output:
    $ lms ls --llm
    
    You have 1 models, taking up 491.40 MB of disk space.
    
    LLM                      PARAMS    ARCH     SIZE         DEVICE    
    qwen2.5-0.5b-instruct    630M      Qwen2    491.40 MB    Local

    –llm hides embedding models. The imported model's name, architecture and size identify its library entry; an absent entry means the import has not produced the expected listing. This list describes files on disk, not loaded instances.
    Related: Load the imported model with lms

Share this guide