Skip to content

Instantly share code, notes, and snippets.

@YuriyGuts
Last active December 14, 2025 11:47
Show Gist options
  • Select an option

  • Save YuriyGuts/caaa91eee484a5ae825cb23bf6582950 to your computer and use it in GitHub Desktop.

Select an option

Save YuriyGuts/caaa91eee484a5ae825cb23bf6582950 to your computer and use it in GitHub Desktop.
Expose Ollama models to LM Studio by symlinking its model files. Just run `python3 link-ollama-models-to-lm-studio.py`. On Windows, run it as admin.
@EngDawood
Copy link

thanks it works

@RecNes
Copy link

RecNes commented Dec 11, 2025

Please put "continue" in to the exception block at line 70

If Ollama has cloud model, exception is thrown and script trying to sym-linking the path but it can't and throws another exception and exits.

@dromanov
Copy link

If you have different location to store lmstudio models (e.g., another hard drive with free space), you will have to move ~/.lmstudio/models/ollama folder manually to a new location.

Anyway, kudos to the author - it works nicely, and it helps a lot since gollama dropped the support for the functionality.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment