[GH-ISSUE #1242] Mac ollama install and run results in template error #633

Closed
opened 2026-04-12 10:20:00 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @mkontsek on GitHub (Nov 22, 2023).
Original GitHub issue: https://github.com/ollama/ollama/issues/1242

Originally assigned to: @BruceMacD on GitHub.

OS: macOS 14.1.1 (23B81)
RAM: 32GB

Steps to reproduce:

  1. Download https://ollama.ai/download/Ollama-darwin.zip
  2. Open zip
  3. Move app to Applications
  4. Install model from GUI prompt
  5. Open terminal and run ollama run llama2

Observed:
Error: template: :2:11: executing "" at <.Context>: can't evaluate field Context in type struct { First bool; System string; Prompt string }

Expected:
No error, working prompt.

Originally created by @mkontsek on GitHub (Nov 22, 2023). Original GitHub issue: https://github.com/ollama/ollama/issues/1242 Originally assigned to: @BruceMacD on GitHub. OS: macOS 14.1.1 (23B81) RAM: 32GB Steps to reproduce: 1. Download https://ollama.ai/download/Ollama-darwin.zip 2. Open zip 3. Move app to Applications 4. Install model from GUI prompt 5. Open terminal and run `ollama run llama2` Observed: Error: template: :2:11: executing "" at <.Context>: can't evaluate field Context in type struct { First bool; System string; Prompt string } Expected: No error, working prompt.
GiteaMirror added the bug label 2026-04-12 10:20:00 -05:00
Author
Owner

@BruceMacD commented on GitHub (Nov 22, 2023):

Hi @mkontsek, thanks for bringing this to our attention. Had you downloaded llama2 originally some time ago? There was a change to the template in the last version. If you run ollama pull llama2 it should fix the issue.

reference: #974

<!-- gh-comment-id:1823044258 --> @BruceMacD commented on GitHub (Nov 22, 2023): Hi @mkontsek, thanks for bringing this to our attention. Had you downloaded llama2 originally some time ago? There was a change to the template in the last version. If you run `ollama pull llama2` it should fix the issue. reference: #974
Author
Owner

@mkontsek commented on GitHub (Nov 22, 2023):

Indeed, it did, thank you! I propose to add a hint somewhere in the app so users know to update the model in case of errors.

<!-- gh-comment-id:1823176696 --> @mkontsek commented on GitHub (Nov 22, 2023): Indeed, it did, thank you! I propose to add a hint somewhere in the app so users know to update the model in case of errors.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#633