[PR #7] [MERGED] add prompt templates as j2 templates #56619

Closed
opened 2026-04-29 11:07:40 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/7
Author: @mxyng
Created: 6/27/2023
Status: Merged
Merged: 6/28/2023
Merged by: @BruceMacD

Base: poetryHead: prompt-templates


📝 Commits (1)

  • 2fd5608 add prompt templates as j2 templates

📊 Changes

16 files changed (+196 additions, -440 deletions)

View changed files

📝 ollama/cmd/cli.py (+3 -0)
📝 ollama/engine.py (+4 -7)
ollama/prompt.py (+19 -0)
ollama/templates/alpaca.prompt (+8 -0)
ollama/templates/gpt4.prompt (+5 -0)
ollama/templates/hermes.prompt (+5 -0)
ollama/templates/oasst.prompt (+1 -0)
ollama/templates/orca.prompt (+7 -0)
ollama/templates/qlora.prompt (+2 -0)
ollama/templates/tulu.prompt (+4 -0)
ollama/templates/vicuna.prompt (+4 -0)
ollama/templates/wizardlm.prompt (+2 -0)
📝 poetry.lock (+77 -1)
📝 pyproject.toml (+1 -0)
📝 requirements.txt (+54 -404)
template.py (+0 -28)

📄 Description

easier to read and maintain since diffs are much more obvious. this also provides future opportunity for users to define their own prompt templates


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/7 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 6/27/2023 **Status:** ✅ Merged **Merged:** 6/28/2023 **Merged by:** [@BruceMacD](https://github.com/BruceMacD) **Base:** `poetry` ← **Head:** `prompt-templates` --- ### 📝 Commits (1) - [`2fd5608`](https://github.com/ollama/ollama/commit/2fd5608c078d9fc3c3bfb67745b42a976b8e974e) add prompt templates as j2 templates ### 📊 Changes **16 files changed** (+196 additions, -440 deletions) <details> <summary>View changed files</summary> 📝 `ollama/cmd/cli.py` (+3 -0) 📝 `ollama/engine.py` (+4 -7) ➕ `ollama/prompt.py` (+19 -0) ➕ `ollama/templates/alpaca.prompt` (+8 -0) ➕ `ollama/templates/gpt4.prompt` (+5 -0) ➕ `ollama/templates/hermes.prompt` (+5 -0) ➕ `ollama/templates/oasst.prompt` (+1 -0) ➕ `ollama/templates/orca.prompt` (+7 -0) ➕ `ollama/templates/qlora.prompt` (+2 -0) ➕ `ollama/templates/tulu.prompt` (+4 -0) ➕ `ollama/templates/vicuna.prompt` (+4 -0) ➕ `ollama/templates/wizardlm.prompt` (+2 -0) 📝 `poetry.lock` (+77 -1) 📝 `pyproject.toml` (+1 -0) 📝 `requirements.txt` (+54 -404) ➖ `template.py` (+0 -28) </details> ### 📄 Description easier to read and maintain since diffs are much more obvious. this also provides future opportunity for users to define their own prompt templates --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-29 11:07:40 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#56619