[PR #12] [MERGED] add prompt templates as j2 templates #56622

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

📋 Pull Request Information

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

Base: mainHead: prompt-templates-redux


📝 Commits (1)

  • dd4448f add prompt templates as j2 templates

📊 Changes

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

View changed files

📝 ollama/cmd/cli.py (+1 -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

#7 is missing from main


🔄 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/12 **Author:** [@mxyng](https://github.com/mxyng) **Created:** 6/28/2023 **Status:** ✅ Merged **Merged:** 6/28/2023 **Merged by:** [@mxyng](https://github.com/mxyng) **Base:** `main` ← **Head:** `prompt-templates-redux` --- ### 📝 Commits (1) - [`dd4448f`](https://github.com/ollama/ollama/commit/dd4448f787517c8a4d9d415a4c7338f4eaa08a5f) add prompt templates as j2 templates ### 📊 Changes **16 files changed** (+194 additions, -440 deletions) <details> <summary>View changed files</summary> 📝 `ollama/cmd/cli.py` (+1 -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 #7 is missing from main --- <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:55 -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#56622