How to Import LM Studio Models into Ollama (No Re-Download!) π
Downloaded a bunch of models in LM Studio? π¦
Now you want to try Ollamaβ¦ and it wants you to download them all over again? π©
Nope! In this guide, youβll learn how to import LM Studio models into Ollama using the .gguf files already on your computer. It takes about 5 minutes. β±οΈ
π₯οΈ Example: Qwen3 8B on Windows. Works with any GGUF model.
β‘ Quick Answer
Create a one-line Modelfile that points to your LM Studio .gguf file:
FROM C:/path/to/your-model.gguf
Then import and run it:
ollama create qwen3 -f .\Modelfile.txt
ollama run qwen3
Want the easy step-by-step version? Letβs go! π
Step 1: Find Your GGUF Model Path in LM Studio π
In LM Studio, go to My Models β click β― next to your model β Copy absolute path.

It looks something like this:
C:/Users/YOU/.cache/lm-studio/models/lmstudio-community/Qwen3-8B-GGUF/Qwen3-8B-Q4_K_M.gguf
Step 2: Create an Ollama Modelfile π
- Create a folder, like
C:\ollama-models - Inside it, create a file called
Modelfile.txt - Type
FROM, a space, then paste your path:
FROM C:/Users/YOU/.cache/lm-studio/models/lmstudio-community/Qwen3-8B-GGUF/Qwen3-8B-Q4_K_M.gguf
Save it. Thatβs the whole file. Really! π

Step 3: Install Ollama on Windows β¬οΈ
Grab it from the official Ollama download page and install.

Then open PowerShell and type:
ollama list

Empty? Perfect. Letβs fill it up. π
Step 4: Import the Model into Ollama β¨
cd C:\ollama-models
ollama create qwen3 -f .\Modelfile.txt
π‘ qwen3 is just a nickname. Call it anything you like!

See success? You did it! π
Step 5: Run Your Model in Ollama π
ollama run qwen3

Type a message, hit Enter, and chat away. π¬

Not a terminal fan? Open the Ollama app and pick qwen3 from the list. π±οΈ

How to Remove an Imported Model from Ollama ποΈ
ollama stop qwen3
ollama rm qwen3
Relax, your LM Studio copy stays safe. π
Troubleshooting π€
- File not found? Make sure your path ends with
.ggufand you rancdto the right folder first. ollamanot recognized? Close PowerShell and open it again.
FAQ β
Does importing save disk space? No. Ollama makes its own copy of the model. You save download time, not space.
Does this work with any LM Studio model?
Yes, as long as the model is a .gguf file.
Can I delete the model from LM Studio after importing? Yes! Ollama keeps its own copy, so it will still work. Just test it first. π
Thatβs it! Now you know how to import LM Studio models into Ollama. One model, two apps, zero re-downloads. Happy chatting! π€
