At a glance

A GGUF file in LM Studio can be imported using the lms import command or manually placed in the models directory with the correct structure. After importing, load the model into Chat and check it with a short query. Make sure in advance that you have downloaded a complete file of a compatible architecture and that there is enough memory for the selected context length. The most common issue users face is the directory from which the program sees the model.

How to add GGUF to LM Studio

If LM Studio is not yet installed, start with the guide for the first launch. When manually loading, check the model card and the exact file name. For a chat task, choose the option designed for dialogue or instructions. Compare the declared size on the card with the size on the disk. If the publisher provides a checksum, verify it before the first launch. If the build consists of parts, check the complete set and instructions for this runtime.

In the terminal, check the availability of CLI with the lms --help command. If the command is found, start the import. The example shows a path on drive D. Substitute the real folder and file name, keeping the quotes if there are spaces in the path. Follow the import prompts.

lms import "D:\Models\model-instruct-Q4_K_M.gguf"

When manually placing files, follow the structure «publisher → model → file». LM Studio specifies the standard root ~/.lmstudio/models. On Windows, check the actual path in the application itself, especially if you moved the storage. Inside, create, for example, publisher\model-name and copy the GGUF there. Re-open the model list. If the list remains the same after copying, restart the application and check the same directory. Keep the original file separate until the import is confirmed.

What to check before the model's first response

In Chat, open the loader and select the imported model. For the first launch, start with a moderate context and automatic placement, if available. Ask a simple question with a known answer. A successful response indicates that the file has loaded and the environment can handle a dialogue. To test Russian text, take a short note and ask to return the two names listed in it without comments. If the model violates the format, check the version card and the appropriate chat template.

When the model appears in the list but doesn't load, check the app messages. An architecture error leads to the runtime version and compatible build. Insufficient memory requires a smaller context or more compact quantization. Check a damaged or incomplete file by its size and checksum. Different builds with the same name may have different GGUF versions, architectures, and sizes. Rely on the specific file. Comparing RAM and VRAM consumption helps estimate in advance whether a larger build will work.

A useful habit is to keep a brief record next to the model with the repository name, chosen quantization option, file source, context length, and test result. When changing laptops, this set reduces the number of repeated trials. If an offline scenario is required, after the first response, temporarily disconnect from the network and open a new chat. We've put additional checks in the guide for local neural network operation. Next, it makes sense to compare the quality of different builds on the same query and comparable memory settings.

Sources and verification

This article is based on documentation and specifications. We did not conduct our own instrumental tests for this article.

Found this useful?
Save the article for a quick reference.