Urgent.News

What's breaking now, across thousands of outlets.

Tech

Ollama keep_alive: My Model Reloaded 214 Times in One Day

My local chat app was fast every single time I tested it, and slow every single time I actually used it. That's the tell, and I ignored it for weeks. I'd type a question during development, get a first token in under a second, ship the change. Then I'd come back after lunch, ask one thing, and sit there for eleven seconds watching a cursor blink. Same box. Same model. Same prompt. It wasn't the…

A local chat application experienced varying performance, with fast responses during testing and slow responses during actual use. The issue stemmed from Ollama, a local model loader, evicting loaded models from VRAM after 5 minutes of inactivity. This caused significant delays when reloading models from disk for each request. The reporter discovered that Ollama had three options for handling model persistence, but only two of them affected the OpenAI-compatible endpoint.

By adjusting the `keep_alive` variable to a longer duration or setting it to `-1` to prevent model eviction, the reporter was able to improve the performance of their local LLM significantly.

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

I Stopped Managing Servers Manually — Understanding Docker, Amazon ECR, ECS & Fargate

I Stopped Managing Servers Manually — Understanding Docker, Amazon ECR, ECS & Fargate I had already learned how a web application can be built on AWS using EC2, Load Balancers, Auto Scaling, RDS, S3…

  • Developers created Docker images using Dockerfiles.
  • Images stored in Amazon ECR for container management.
  • AWS Fargate managed underlying infrastructure for ECS.

Cost-Effective Public Hosting for Typescript/MySQL Monorepo: Optimizing for Small User Base Without Unnecessary Expenses

Introduction Hosting a Typescript/MySQL monorepo application for a small user base (4-5 users) presents a unique challenge: balancing cost-effectiveness with tech stack compatibility .

  • Oracle Cloud's Always Free Tier is optimal for small Typescript/MySQL monorepo
  • Supports Docker containers and managed MySQL database without domain purchase
  • Monitors resource usage to avoid surpassing free tier limits

More from Tuesday 15 September →