Urgent.News

What's breaking now, across thousands of outlets.

Tech

๐Ÿค” 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.

Read the original at dev.to โ†’

More in Tech

More from Friday 28 August โ†’