Running an LLM Locally

· Source: AI on Medium · Field: Technology & Digital — Artificial Intelligence & Machine Learning, Software Development & Engineering, Cloud Computing & IT Infrastructure · Depth: Novice, short

Summary

An experiment explored running a Large Language Model (LLM) locally to mitigate the costs and usage limits associated with cloud-based AI for daily coding tasks. The author utilized CanIRun AI to identify compatible models, ultimately selecting Qwen 3.5 9B, a 9-billion-parameter model. Deployment was streamlined using Ollama, enabling a local setup without internet connectivity. While the initial setup was smooth, the local LLM exhibited slow inference speeds, with a 30-second response time for simple queries. When tested with basic coding tasks via OpenCode CLI, the model generated functional code but required significant cleanup and struggled with increased complexity, revealing a clear performance gap compared to larger cloud systems. Local models are deemed suitable for lightweight tasks and privacy-sensitive applications, but hardware limitations currently restrict their effectiveness for demanding development work.

Key takeaway

For software engineers evaluating LLM deployment strategies, understand that running models like Qwen 3.5 9B locally with tools like Ollama offers privacy and cost savings for lightweight tasks. However, be prepared for significant performance trade-offs and hardware bottlenecks, especially for complex coding or development work. Cloud models remain superior for demanding, high-context applications, but local options are improving for specific, less intensive use cases.

Key insights

Running local LLMs offers independence and privacy but trades raw power for hardware limitations.

Principles

Method

Use a tool like CanIRun AI to assess hardware compatibility for LLM selection, choose a suitable model (e.g., Qwen 3.5 9B), and deploy using a simplified runner like Ollama.

In practice

Topics

Best for: AI Engineer, Software Engineer, AI Student

Related on AIssential

Open in AIssential →

Editorial summary, takeaway, and curation by AIssential. Original article published by AI on Medium.