llmfit: Stop Guessing Which AI Models Will Run on Your Machine

llmfit: Stop Guessing Which AI Models Will Run on Your Machine

Sudipta Deb

Sudipta Deb

Founder of Technical Potpourri, Co-Founder of Shrey Tech, Enterprise Cloud Architect

You've seen a shiny new model drop — maybe DeepSeek-R1 or Qwen3-14B. You run ollama pull, wait twenty minutes, then watch your system stutter to a halt. Sound familiar?

This is the 'try it and see if it breaks' phase of local AI, and almost everyone running models on consumer hardware has been through it. The problem isn't that local AI is hard — it's that picking the right model for your specific machine is surprisingly non-trivial.

Enter llmfit: an open-source, Rust-based CLI tool with a beautiful interactive terminal UI that detects your hardware and ranks hundreds of AI models by how well they will actually perform on your system. No guessing. No wasted downloads. Just hardware-aware recommendations in seconds.

With over 8,700 GitHub stars and 43 releases, this tool has clearly struck a nerve. Let's dig into what it does, how it works, and why it belongs in every local AI enthusiast's toolkit.

The form you have selected does not exist.

Watch The Video Or Read The Article (Or Do Both smile)

The Problem: Model Choice is Harder Than It Looks

When a new model releases, the community is usually flooded with benchmark numbers, vibe checks, and Twitter threads — but almost none of that information is specific to your hardware. A 70B model that runs beautifully on an A100 cluster might reduce your RTX 3070 to a space heater.

The real variables you need to reason about are:

  • How much VRAM does the model need at your desired quantization?
  • What quantization level gives the best quality that still fits in your memory?
  • Will the model run GPU-only, CPU+GPU hybrid, or CPU-only? Each changes performance dramatically.
  • For Mixture-of-Experts (MoE) models like DeepSeek or Mixtral, only a fraction of parameters are active per token — so the effective memory requirement is much lower than the parameter count implies.
  • How does context window length affect memory requirements?

These are all solvable questions, but answering them manually for each model you want to try is tedious. llmfit automates all of it.

What is llmfit?

llmfit is described as: "Hundreds of models & providers. One command to find what runs on your hardware."

It's a terminal-first tool that:

  • Detects your CPU, RAM, GPU model, VRAM, and acceleration backend (CUDA, Metal, ROCm, etc.)
  • Maintains a database of hundreds of models from providers like Meta, Mistral, Qwen, Google, DeepSeek, Microsoft, IBM, and more
  • Scores each model across four dimensions: Quality, Speed, Fit, and Context
  • Dynamically selects the best quantization for each model on your hardware
  • Shows you which models are Perfect, Good, Marginal, or Too Tight to run
  • Integrates with Ollama, llama.cpp, and MLX so you can download models directly from the UI

It ships with an interactive TUI (the default) and a classic CLI mode for scripting and automation. The entire thing is a single binary — no Python dependencies, no Docker, no drama.

Installation

Getting started takes about thirty seconds. Pick your platform:

macOS / Linux — One-liner

curl -fsSL https://llmfit.axjns.dev/install.sh | sh

Homebrew

brew install llmfit

Windows / Cross-platform via Cargo

cargo install llmfit

If you don't have Rust installed yet, grab it from rustup.rs. Once llmfit is installed, just type:

llmfit

And you're in the interactive TUI.

The Interactive TUI: Your Hardware-Aware Model Browser

When you launch llmfit, the TUI greets you with a system bar at the top showing your detected specs — total RAM, CPU cores, GPU name, VRAM, and the active acceleration backend. Below that is a scrollable, filterable table of every model in the database, ranked by composite score.

Each row in the table shows:

  • Composite score (0–100)
  • Estimated tokens per second
  • Best quantization for your hardware (Q8_0, Q4_K_M, Q2_K, etc.)
  • Run mode (GPU / MoE / CPU+GPU / CPU)
  • Memory usage as a % of available memory
  • Use-case category (Coding, Reasoning, Chat, Embedding, Multimodal, General)

Navigation is keyboard-driven and fast:

Pressing Enter on any model opens a detailed view with full quantization breakdown, context window specs, and provider availability. Pressing d opens a provider picker if multiple runtimes are installed — and kicks off the download with a live progress indicator right in the terminal.

The Scoring Engine: Four Dimensions, One Composite Score

The heart of llmfit is its multi-dimensional scoring system. Every model gets four sub-scores (0–100 each), which are combined into a weighted composite score. The weights shift depending on the use-case category.

For example, Chat workloads weight Speed at 0.35 because responsiveness matters most in interactive sessions. Reasoning workloads weight Quality at 0.55 because you'd rather wait a bit longer for a correct answer.

Models that don't fit in memory at all (Too Tight) are always ranked at the bottom, regardless of their quality score.

Fit Levels Explained

Beyond the composite score, llmfit assigns every model a Fit Level that summarises memory compatibility:

The Fit filter (press f in the TUI) lets you instantly narrow the list to only models at or above a chosen fit level. If you want guaranteed smooth GPU performance, filter to Perfect. If you're willing to push boundaries, include Good or Marginal.

Speed Estimation: The Math Behind the Numbers

The token generation speed estimates in llmfit aren't guesses — they're derived from how LLM inference actually works at the hardware level.

Token generation in an LLM is memory-bandwidth-bound: generating each token requires reading the full model weights from VRAM once. So throughput is fundamentally limited by how fast your GPU can move data from memory to compute units.

The formula llmfit uses:

estimated_tps = (gpu_bandwidth_GB_s / model_size_GB) × efficiency_factor (0.55)

The 0.55 efficiency factor accounts for kernel overhead, KV-cache reads, and memory controller effects. This approach is validated against published llama.cpp benchmarks on Apple Silicon and NVIDIA hardware.

llmfit maintains a bandwidth lookup table covering around 80 GPUs across NVIDIA (consumer and datacenter), AMD (RDNA and CDNA), and Apple Silicon families. For GPUs it doesn't recognise, it falls back to per-backend speed constants.

Plan Mode: What Hardware Do I Need?

Most hardware-matching tools ask 'what fits my current hardware?' Plan Mode flips the question: given a model and a target performance profile, what hardware would I need?

Press p on any model in the TUI and you'll see an interactive planner where you can set:

  • Context length (how long your prompts and responses will be)
  • Quantization level (Q8, Q4, Q2, or model-specific variants)
  • Target tokens per second

 

Plan Mode responds with:

  • Minimum and recommended VRAM / RAM / CPU cores
  • Feasibility of GPU, CPU+GPU hybrid, and CPU-only run paths
  • Upgrade deltas — how much more VRAM you'd need to hit a better fit tier

This is extremely useful if you're deciding between GPU upgrades. You can pick your dream model, set a performance target, and see exactly what hardware delta you're shopping for.

CLI Mode and JSON Output for Automation

The TUI is great for exploration, but llmfit also has a full CLI mode for scripting, CI pipelines, and agent integration. Add --cli or any subcommand:

The --json flag is available on all subcommands and produces stable, machine-readable output. This makes llmfit a natural fit as a hardware-aware model selector in AI agent pipelines and automation scripts.

Runtime Provider Integration

llmfit integrates with three local AI runtimes out of the box:

  • Ollama — Detects installed models via the local API, shows a green ✓ next to each, and handles downloads via POST /api/pull.
  • llama.cpp — Maps HuggingFace model names to known GGUF repos and downloads files directly to the local cache.
  • MLX — Native support for Apple Silicon, pulling from mlx-community on Hugging Face.

When multiple providers support a model, pressing d in the TUI opens a provider picker modal so you can choose. Remote Ollama instances are supported via the OLLAMA_HOST environment variable — handy if you run a GPU server and connect from a laptop.

Who Should Use llmfit?

llmfit is genuinely useful across a range of use cases:

  • Local AI beginners who are overwhelmed by model choices and just want to know what will work on their machine.
  • Mid-range hardware users who want to squeeze the most out of 8–16 GB VRAM and need to be strategic about quantization.
  • Researchers and power users who want to understand the quality vs. speed vs. memory tradeoff for different model families.
  • Developers building AI pipelines who need programmatic, hardware-aware model selection via JSON output.

Hardware upgraders who want to know exactly what GPU they need before spending money.

Final Thoughts

The local AI space moves fast. New models drop every week, hardware varies wildly across users, and the gap between 'this model runs great' and 'this model melts my machine' can be surprisingly small.

llmfit fills a real gap by bringing hardware-awareness to model selection. It's not trying to replace Ollama or llama.cpp — it's the layer on top that tells you what to run before you run it. That's a small but important distinction.

With 8,700+ GitHub stars, active maintenance, Homebrew availability, and a genuinely thoughtful scoring engine, this tool punches well above its weight for a terminal utility. If you run local AI models on any kind of consumer hardware, llmfit deserves a permanent spot in your toolkit.

Resources

GitHub Repository: github.com/AlexsJones/llmfit

Install script: llmfit.axjns.dev

Disclaimer

This article is not endorsed by Salesforce, Google, or any other company in any way. I shared my knowledge on this topic in this blog post. Please always refer to Official Documentation for the latest information.

Comments

What Is a Coding Assistant?

What Is a Coding Assistant?

Sudipta Deb

Sudipta Deb

Founder of Technical Potpourri, Co-Founder of Shrey Tech, Enterprise Cloud Architect

Software development has always been a craft that demands both creativity and precision. Yet until recently, developers faced a paradox: the tools they used were powerful but passive — editors, compilers, and debuggers that responded to commands but offered no intelligence of their own. That changed with the rise of AI-powered coding assistants.

A coding assistant is an AI tool that helps developers write, understand, review, test, and maintain code. Far more than simple autocomplete, modern coding assistants can reason about entire codebases, explain complex logic, catch subtle bugs, and even autonomously execute multi-step engineering tasks. They are rapidly becoming an indispensable part of the modern developer's workflow.

In this blog post, we'll explore what coding assistants are, how they work, the key capabilities they offer, the different categories on the market, and best practices for integrating them into your development workflow.

The form you have selected does not exist.

What Is a Coding Assistant?

At its core, a coding assistant is an AI system — typically powered by a large language model (LLM) — trained on vast amounts of code and technical documentation. It understands programming languages, software design patterns, APIs, and development best practices, allowing it to provide contextual, intelligent guidance during the coding process.

Unlike a search engine that retrieves pre-existing answers, a coding assistant generates novel responses tailored to your specific code and context. It can:

  • Complete partially written code snippets in real time
  • Generate entire functions or modules from natural language descriptions
  • Explain what a block of code does in plain English
  • Identify bugs and suggest fixes
  • Refactor and improve existing code
  • Write unit tests automatically
  • Answer technical questions about frameworks, libraries, and tools
  • Execute multi-step agentic tasks — like scaffolding a new feature end-to-end

How Coding Assistants Work

Modern coding assistants are built on large language models trained on billions of lines of source code, documentation, Stack Overflow discussions, and technical articles. Here's a simplified look at how they function:

1. Context Understanding

When you type a question or highlight a piece of code, the assistant analyzes not just the selected text but the broader context — file contents, imports, function signatures, and even other files in your project. This context window is what enables it to give relevant, project-specific answers rather than generic responses.

2. Natural Language Processing

You can describe what you want in plain English — "Write a function that fetches user data from a REST API and handles errors gracefully" — and the assistant translates your intent into working code. This lowers the barrier to entry and speeds up development for experienced engineers alike.

3. Agentic Execution

Next-generation assistants like Claude Code operate as autonomous agents. They don't just suggest — they act. They can read files, run shell commands, execute test suites, make edits, and iterate based on results, all within a controlled environment. This enables them to tackle complex, multi-step engineering tasks with minimal human intervention.

Key Capabilities of Modern Coding Assistants

Code Generation

Perhaps the most well-known feature, code generation allows developers to describe functionality in natural language and receive complete, working code. Whether you need a React component, a SQL query, a Python data pipeline, or a REST API endpoint, a coding assistant can produce a solid first draft in seconds.

Code Explanation & Documentation

Legacy codebases are notoriously hard to understand. Coding assistants can read through unfamiliar code and produce clear, human-readable explanations — making onboarding faster and knowledge transfer easier. They can also generate docstrings, inline comments, and README files automatically.

Debugging & Error Fixing

Paste an error message along with your code and the assistant will diagnose the root cause and propose a targeted fix. Agentic assistants can go further — running the code, observing the error, applying fixes, and re-running tests in a loop until the issue is resolved.

Code Review & Refactoring

Assistants can review pull requests for logic errors, security vulnerabilities, performance issues, and style inconsistencies. They can also refactor code — improving readability, reducing duplication, and applying modern patterns — without changing the underlying behavior.

Test Generation

Writing comprehensive unit tests is time-consuming but essential. Coding assistants can analyze your functions and automatically generate test cases that cover happy paths, edge cases, and error conditions — dramatically improving test coverage with minimal effort.

Multi-File & Agentic Tasks

The most advanced coding assistants can work across an entire repository. Given a high-level task like "Add authentication to this Express.js app," an agentic assistant can explore relevant files, implement changes, update tests, and verify everything works — acting as a capable junior engineer on your team.

Types of Coding Assistants

Not all coding assistants are alike. They vary by integration model, autonomy level, and use case:

IDE Plugins & Extensions

Tools like GitHub Copilot integrate directly into editors like VS Code, providing inline suggestions as you type. They're non-intrusive, always available, and perfect for day-to-day coding assistance. The feedback loop is near-instant.

Chat-Based Coding Assistants

Tools like Claude.ai, ChatGPT, and Gemini offer a conversational interface where developers can ask questions, paste code, and have back-and-forth discussions about technical problems. These are ideal for deep dives, architectural decisions, and learning.

Command-Line Agentic Tools

Claude Code is a leading example of this emerging category. It runs in the terminal, has direct access to your codebase, and can autonomously execute commands, edit files, run tests, and complete complex engineering tasks with minimal supervision. It represents the cutting edge of what coding assistants can do.

Browser-Based & Web App Tools

Platforms like Replit AI and CodeSandbox AI integrate assistance directly into browser-based development environments. They're particularly useful for prototyping, education, and collaborative development without any local setup.

Spotlight: Claude Code

Claude Code, developed by Anthropic, is a command-line coding assistant that represents a significant leap forward in developer tooling. Unlike traditional assistants that passively suggest code, Claude Code operates as an agentic system — it can:

  • Read and understand your entire codebase
  • Run bash commands and shell scripts
  • Make precise edits across multiple files simultaneously
  • Execute and interpret test results
  • Perform multi-step engineering tasks end-to-end
  • Integrate with Model Context Protocol (MCP) servers for extended capabilities

 

What sets Claude Code apart is its emphasis on safety and transparency. It operates with a principle of minimal footprint — requesting only necessary permissions and clearly explaining every action before taking it. Developers stay in control while benefiting from genuine AI autonomy.

Claude Code is powered by Claude — Anthropic's frontier AI model — which is known for its strong reasoning abilities, nuanced understanding of context, and commitment to helpfulness and safety. When you ask Claude Code to implement a feature, it doesn't just write code blindly; it reasons through the best approach, considers edge cases, and produces high-quality, maintainable solutions.

Benefits of Using a Coding Assistant

Accelerated Development Speed

Studies consistently show that developers using AI coding assistants complete tasks significantly faster. Routine tasks — boilerplate code, CRUD operations, configuration files — that once took minutes now take seconds, freeing developers to focus on higher-value, creative problem-solving.

Reduced Cognitive Load

Developers no longer need to context-switch to documentation, Stack Overflow, or colleagues for every minor question. The assistant provides answers in situ, within the flow of work, reducing interruptions and mental overhead.

Improved Code Quality

AI-generated code often follows best practices and catches common mistakes that humans overlook when tired or rushing. Pair an assistant with strong linting and test generation, and you raise the quality floor of your entire codebase.

Lower Barrier for Learning

Junior developers and those learning new languages or frameworks benefit enormously. Instead of spending hours parsing documentation, they can ask the assistant to explain concepts, show examples, and guide them through unfamiliar territory — accelerating the learning curve dramatically.

Best Practices for Working with Coding Assistants

Be Specific and Contextual

The quality of the output depends heavily on the quality of the input. Instead of "Write a login function," try "Write a login function in Node.js using Express and bcrypt that validates email and password, returns a JWT token on success, and returns a 401 with a clear error message on failure." More context yields better code.

Always Review Generated Code

AI assistants are powerful but imperfect. Always review generated code before merging it. Look for edge cases the assistant might have missed, security implications, and alignment with your team's conventions. Think of the AI as a fast but sometimes careless colleague who needs a second pair of eyes.

Iterate and Refine

If the first response isn't quite right, don't start over — refine it. Tell the assistant what's missing or incorrect and ask it to revise. Most assistants maintain conversational context, so you can build toward a solution iteratively rather than in one perfect shot.

Use It for Learning, Not Just Output

When an assistant generates code you don't fully understand, ask it to explain. This is a free, on-demand learning opportunity. The more you understand about the code being produced, the better equipped you'll be to catch errors and make improvements.

Conclusion

Coding assistants represent one of the most significant shifts in software development in decades. They don't replace developers — they amplify them. By handling the routine, the repetitive, and the exploratory, they free engineers to focus on what truly matters: understanding problems deeply and crafting elegant solutions.

Whether you're a solo developer building a side project, a startup moving fast, or an enterprise team maintaining a large codebase, there's a coding assistant that can meaningfully improve your workflow. The key is to start, experiment, and integrate them thoughtfully.

The future of software development is a partnership between human creativity and AI capability. Coding assistants are the bridge — and they're only getting better.

Disclaimer

This article is not endorsed by Salesforce, Google, or any other company in any way. I shared my knowledge on this topic in this blog post. Please always refer to Official Documentation for the latest information.

Comments

Let’s Understand The Difference Between Claude Model and Claude Code

Let’s Understand The Difference Between Claude Model and Claude Code

Sudipta Deb

Sudipta Deb

Founder of Technical Potpourri, Co-Founder of Shrey Tech, Enterprise Cloud Architect

If you've been exploring Anthropic's AI ecosystem, you may have come across both "Claude" and "Claude Code" - and wondered whether they're the same thing. They're not. Here's a clear breakdown of what each one is, how they differ, and when to use which.

The form you have selected does not exist.

The Claude Model: The Brain

The Claude model — currently in its Claude 3 and Claude 4 families — is Anthropic's large language model (LLM). Think of it as the core AI intelligence. It understands and generates natural language, reasons through complex problems, writes and reviews code, summarizes documents, answers questions, and much more.

You interact with the Claude model in several ways:

    • Claude.ai — Anthropic's web, mobile, and desktop chat interface
    • The Anthropic API — for developers building apps and integrations
    • Third-party integrations — wherever Claude has been embedded as a feature

In all these cases, you're talking to the model directly. It has no persistent memory of your environment, no access to your filesystem, and cannot execute code on its own. It lives in the conversation.

Claude Code: The Developer Agent

Claude Code is a command-line interface (CLI) tool built on top of the Claude model. It's designed specifically for software engineering workflows — and it's a fundamentally different kind of product.

Instead of chatting through a browser, you run Claude Code directly in your terminal. From there, it can:

    • Read and write files across your entire local codebase
    • Execute shell commands and scripts
    • Understand the full context of your project — not just what you paste in
    • Complete multi-step engineering tasks autonomously (agentic mode)
    • Refactor, debug, test, and build features end-to-end

Claude Code is what happens when you give the Claude model hands — the ability to act in your environment, not just respond in a chat window.

A Simple Analogy

Imagine hiring a brilliant software engineer. The Claude model is like having that engineer available on a phone call — you can ask questions, get advice, review code snippets, and think through architecture together.

Claude Code is like giving that same engineer a laptop, access to your codebase, and a desk in your office. Now they can actually do the work — not just advise on it.

Key Differences At A Glance

Claude ModelClaude Code
Interface

Chat UI (browser, mobile, desktop) or API calls

Terminal / command-line interface (CLI)

Environment Access

No access to your local filesystem, shell, or environment

Full access to local files, directories, and shell commands

Primary Use Case

General-purpose AI assistance — writing, reasoning, Q&A, and more

Autonomous software engineering — building, debugging, and refactoring code

Autonomy

Conversational — responds to each message

Agentic — can perform multi-step tasks with minimal hand-holding

When To Use Which ?

Use the Claude model (via Claude.ai or the API) when you need:

    • Answers, explanations, or advice on any topic
    • Help drafting or reviewing content
    • Quick code snippets and explanations
    • A general-purpose AI assistant in your daily workflow

Use Claude Code when you need:

    • To work directly inside a real codebase
    • An AI that can run, test, and iterate on code automatically
    • Multi-file refactoring or feature implementation across a project
    • An agentic coding partner that works in your terminal alongside your tools

Bottom Line

The Claude model is the intelligence. Claude Code is a specialized application that deploys that intelligence directly into your development environment. Both are powered by the same underlying AI — but they serve very different purposes and live in very different contexts.

As AI tooling continues to evolve, the line between "chatting with an AI" and "working alongside an AI agent" will only become more important to understand. Claude Code is a clear step toward the latter — and a glimpse at where developer tooling is heading.

    Disclaimer

    This article is not endorsed by Salesforce, Google, or any other company in any way. I shared my knowledge on this topic in this blog post. Please always refer to Official Documentation for the latest information.

    Comments