๐ค Windows + WSL2 + Ollama - which architecture should I use?
Iโm setting up a local AI development environment on Windows + WSL2 and Iโm trying to decide between two architectures. Option 1 โ Ollama/Models on Windows WSL2 โโโโโโโโโโโโโโโโโโโโโ โ Application โ โ โโโ Python โ โ โโโ .venv โ โ โโโ Source code โ โโโโโโโโโฌโโโโโโโโโโโโ โ HTTP localhost:11434 โ โผ Windows โโโโโโโโโโโโโโโโโ โ Ollama โ โ โ โ โ Models โ โ โ โ โ GPU โ โโโโโโโโโโโโโโโโโ Option 2 โโฆ
In the quest to determine the most suitable architecture for local AI/LLM development on Windows + WSL2, two options have emerged: Option 1 - deploying Ollama and its associated models within WSL2, and Option 2 - placing Ollama and models in the Windows environment while utilizing the Windows Ollama API via localhost:11434. While Option 1 has proven functional, leaving Option 2 open to scrutiny as a potential long-term solution.
The decision hinges on several crucial factors, including performance, GPU utilization, model management, disk usage, setup and maintenance, Linux/ML tooling, Docker integration, networking, and future scalability. By weighing these aspects, one can ascertain the optimal pathway for their development environment.
Option 1, with Ollama/Models residing in WSL2, boasts seamless access to the Windows Ollama API via localhost:11434. However, the question remains: is there a more advantageous approach that could elevate the local AI/LLM development experience?
If you have harnessed the power of Ollama with Windows + WSL2 and have experience with both architecture options, your insights are invaluable. I am eager to hear about your experiences, whether you have opted for Option 1 or ventured into the realm of Option 2. Share your thoughts on performance, GPU utilization, model management, disk consumption, setup, maintenance, Linux/ML tooling, Docker integration, networking, and scalability.
Your perspective could illuminate the path forward for fellow developers navigating the waters of local AI/LLM development on Windows.
Written by urgent.news from Dev.to's reporting โ not their text. Machine-written โ may contain errors; check the original before relying on it.