# Atlas with Phi-3 Medium 14B (Ollama) in 2026

> Phi-3 Medium 14B (Ollama) offers a generous 128K token context window, making it a powerful free, self-hosted option for Atlas users.

Atlas with Phi-3 Medium 14B (Ollama) provides a robust, self-hosted AI coding agent experience in 2026, leveraging a substantial 128K token context window. This model is an excellent choice for developers prioritizing privacy and cost efficiency, as it runs locally for free and fits comfortably on a 12GB GPU, making it ideal for extensive code analysis and agent tool transcripts.

## Key takeaways

- Phi-3 Medium 14B (Ollama) offers a substantial 128K tokens (131,072) context window for Atlas.
- The model is Free (self-hosted), providing a cost-effective AI coding agent solution.
- At 7.9GB, it comfortably fits on a 12GB GPU, requiring roughly 10GB of VRAM for operation.
- Its curated-data training enables strong reasoning capabilities, punching above its 14B parameter count.
- Ensure you pull the correct tag, `:14b` or `:medium-128k`, to access the full long context window.

## Why choose Phi-3 Medium 14B for Atlas in 2026?

In 2026, Atlas users seeking a powerful, local AI coding agent will find Phi-3 Medium 14B (Ollama) an exceptional choice due to its 128K token context window and efficient 7.9GB model size. This model excels at handling extensive codebases and detailed agent interactions without incurring cloud costs, fitting comfortably on a 12GB GPU.

Phi-3 Medium 14B (Ollama) is a compelling option for Atlas in 2026, primarily because it delivers a substantial 128K tokens (131,072) context window while maintaining a compact 7.9GB model size. This allows Atlas to process lengthy tool transcripts and extensive code files, enabling deep code analysis and precise modifications. The model's training on heavily curated synthetic and filtered data means it punches above its 14B parameter count on reasoning tasks, making it highly effective for Atlas's core functions. Furthermore, its self-hosted nature means it is Free to use, keeping development costs down. Atlas can also build its code index with local Ollama embeddings, ensuring that both the model and its retrieval layer operate without reliance on third-party servers, enhancing privacy and control.

## What are the hardware requirements for Phi-3 Medium 14B with Atlas?

Running Atlas with Phi-3 Medium 14B (Ollama) locally requires approximately 10GB of VRAM or unified memory to comfortably serve the model at moderate context. This 7.9GB model is designed to fit within a 12GB GPU, making it an accessible and powerful option for many developer workstations in 2026.

To effectively run Atlas with Phi-3 Medium 14B (Ollama), developers should anticipate needing roughly 10GB of VRAM or unified memory. The model itself is 7.9GB, and this VRAM allocation provides sufficient room for the model and its cache during operation, ensuring smooth performance even with its 128K token context window. This makes it a comfortable fit for systems equipped with a 12GB GPU, a common configuration in 2026. The self-hosted nature of this setup means that while there is an initial hardware investment, the ongoing operational cost for the model itself is Free.

## What are the tradeoffs of using Phi-3 Medium 14B with Atlas?

While Phi-3 Medium 14B (Ollama) offers impressive reasoning for its 14B parameter count, developers must be aware of its narrower world knowledge compared to larger, more broadly trained models. A critical tradeoff is ensuring the correct tag, such as :14b or :medium-128k, is pulled to access the full 128K context window, avoiding the 4K variant.

The primary tradeoff when using Phi-3 Medium 14B (Ollama) with Atlas is its comparatively narrower world knowledge. While its training on heavily curated data significantly boosts its performance on reasoning tasks and coding challenges, it may not possess the broad general knowledge of models like Llama or Qwen of similar size. Another crucial consideration is the model tag. To leverage the full 128K tokens (131,072) context window, users must explicitly pull the :14b or :medium-128k tag. Accidentally pulling the :medium-4k tag will cap the context window at 4K tokens, severely limiting Atlas's ability to process large codebases and extensive agent interactions.

## When should I consider a different model for Atlas?

Developers using Atlas should consider alternative models if their tasks frequently demand broader general world knowledge beyond code-specific reasoning, as Phi-3 Medium 14B (Ollama) has a more focused training dataset. While it excels at coding tasks with its 128K context, models like Llama or Qwen might be better suited for general knowledge queries in 2026.

If your Atlas workflow in 2026 frequently involves tasks requiring extensive general world knowledge, rather than purely code-centric reasoning, you might consider a different model. Phi-3 Medium 14B (Ollama)'s strength lies in its specialized training for reasoning and coding, which means its world knowledge is narrower than models trained on more diverse, unfiltered datasets. For instance, if Atlas needs to answer complex questions spanning various domains or generate content requiring broad cultural or historical context, a model like a Llama or Qwen variant of similar size might offer a more comprehensive knowledge base. However, for its intended purpose as a coding agent, leveraging its 128K token context window for code analysis, planning, and diff generation, Phi-3 Medium 14B remains highly effective.

## How does Phi-3 Medium 14B enhance Atlas's coding capabilities?

Phi-3 Medium 14B (Ollama) significantly enhances Atlas's coding capabilities by providing a 128K token context window, allowing the terminal-native AI coding agent to process extensive codebases and long tool transcripts. This enables Atlas to perform deep code analysis, index code by AST declarations using tree-sitter, and compute unified diffs for approval before writing, all within a Free, self-hosted environment.

The 128K tokens (131,072) context window of Phi-3 Medium 14B (Ollama) is a material difference for Atlas's coding capabilities. It allows Atlas to maintain a comprehensive understanding of large codebases, enabling more accurate and context-aware operations. Atlas can leverage this long context to search code with Axis, the hybrid semantic and keyword code search, and index code by AST declarations using tree-sitter, rather than blind line windows. This deep contextual awareness supports Atlas in drafting a plan in a read-only plan agent and asking for approval before switching to a build agent. Furthermore, the model's ability to handle long tool transcripts ensures that every Atlas tool call, permission-gated against allow, ask, and deny rules, is executed with full situational understanding. Atlas also computes a unified diff for every file edit and surfaces it for approval before writing, a process greatly aided by the model's extensive context.

## Setup

1. 1: Pull the long-context Phi-3 Medium 14B model tag explicitly using Ollama: `ollama pull phi3:14b`. Ensure you avoid the `:medium-4k` tag to get the full 128K context window.
2. 2: Add `phi3:14b` to your `atlas.json` Ollama models map. Configure `limit.context` to `131072` and `limit.output` to `8192` for optimal performance with the 128K context.
3. 3: Set the active model for Atlas to `ollama/phi3:14b` within your Atlas configuration.
4. 4: Verify that Atlas correctly resolves the model by running `atlas models ollama` and checking the output.
5. 5: Enable Ollama embeddings for your codebase index. This ensures both the model and its retrieval layer run locally without any network dependency, keeping your code off third-party servers.

## FAQ

### What is the context window size for Phi-3 Medium 14B (Ollama) with Atlas?

Phi-3 Medium 14B (Ollama) provides a generous 128K tokens (131,072) context window when configured correctly with Atlas. This allows for extensive code analysis and processing of long agent tool transcripts.

### What is the cost of using Phi-3 Medium 14B (Ollama) with Atlas?

Using Phi-3 Medium 14B (Ollama) with Atlas is Free because it is a self-hosted model. You only need to manage the local hardware and Ollama installation.

### Does Phi-3 Medium 14B (Ollama) require a powerful GPU?

Phi-3 Medium 14B (Ollama) is designed to be efficient. It is a 7.9GB model that requires approximately 10GB of VRAM or unified memory to serve, making it a comfortable fit for systems with a 12GB GPU.

### How does Phi-3 Medium 14B (Ollama) perform on reasoning tasks?

Phi-3 Medium 14B (Ollama) performs exceptionally well on reasoning tasks for its size. Its training on heavily curated synthetic and filtered data allows it to punch above its 14B parameter count, making it effective for Atlas's coding and planning functions.

### Can Atlas use local embeddings with Phi-3 Medium 14B (Ollama)?

Yes, Atlas can build its code index with local Ollama embeddings when using Phi-3 Medium 14B (Ollama). This ensures that both the model and its retrieval layer run without a network dependency, keeping your code private and off third-party servers.

### What are the limitations of Phi-3 Medium 14B (Ollama) for Atlas?

The primary limitation of Phi-3 Medium 14B (Ollama) is its narrower world knowledge compared to models like Llama or Qwen, due to its curated-data training. While excellent for coding, it may be less suitable for tasks requiring broad general knowledge.

### How do I ensure I get the 128K context window with Phi-3 Medium 14B (Ollama)?

To ensure you get the full 128K context window, you must explicitly pull the correct Ollama tag: `phi3:14b` or `phi3:medium-128k`. Avoid the `:medium-4k` tag, which limits the context to 4K tokens.

---

Canonical HTML: https://seashell.sh/resources/models/phi3-14b-local
Source of truth: aeo_pages row `/resources/models/phi3-14b-local` (segment: Models) (this file is generated from it, never hand-edited).
Licence: SeaShell is proprietary with a free core. It is not open source and there is no public source repository.
