[PR #5053] [CLOSED] feat: implemented a model export cli command #22202

Closed
opened 2026-04-19 16:10:06 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/5053
Author: @JerrettDavis
Created: 6/15/2024
Status: Closed

Base: mainHead: add-ollama-export-command


📝 Commits (2)

  • 913eda3 feat: implemented a model export cli command
  • d90009d feat: added export command to api

📊 Changes

5 files changed (+180 additions, -0 deletions)

View changed files

📝 api/client.go (+9 -0)
📝 api/types.go (+4 -0)
📝 cmd/cmd.go (+65 -0)
📝 server/images.go (+66 -0)
📝 server/routes.go (+36 -0)

📄 Description

First pass at solving #335. Converted the bash script provided by supersonictw to golang.

Export a model by running ollama export <model> <output>. For example ollama export llama3:latest llama-backup.


🔄 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/5053 **Author:** [@JerrettDavis](https://github.com/JerrettDavis) **Created:** 6/15/2024 **Status:** ❌ Closed **Base:** `main` ← **Head:** `add-ollama-export-command` --- ### 📝 Commits (2) - [`913eda3`](https://github.com/ollama/ollama/commit/913eda324588bae1e274a8bd710998e57419adb1) feat: implemented a model export cli command - [`d90009d`](https://github.com/ollama/ollama/commit/d90009d122fb603518b5ca8f471cbe3086c29eb4) feat: added export command to api ### 📊 Changes **5 files changed** (+180 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `api/client.go` (+9 -0) 📝 `api/types.go` (+4 -0) 📝 `cmd/cmd.go` (+65 -0) 📝 `server/images.go` (+66 -0) 📝 `server/routes.go` (+36 -0) </details> ### 📄 Description First pass at solving #335. Converted the bash script provided by [supersonictw](https://github.com/supersonictw) to golang. Export a model by running `ollama export <model> <output>`. For example `ollama export llama3:latest llama-backup`. --- <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-19 16:10:06 -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#22202