[PR #11161] Feature: Model Export and Import #13459

Open
opened 2026-04-13 00:27:53 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/ollama/ollama/pull/11161

State: open
Merged: No


Added Model Export and Import #features.

Finally had time to revisit this issue: https://github.com/ollama/ollama/issues/335

This feature allows users to easily backup and transfer models between Ollama installations via USB drives or network storage.

  • Added export command to copy models to file/directory
  • Added import command to load models from file/directory
  • Supports directory, tar, and tar.gz formats
  • Includes checksum verification and progress tracking
  • Added --compress flag for export (this is slow, but shaves off around 2% and creates a .tgz or .tar.gz file)
  • Added --force flag for import to override an existing model
  • Added /--insecure flags to skip verification during import

Usage

**Export **

ollama export MODEL DESTINATION [flags]

Flags:
--compress Compress the export as tar.gz or .tgz (slower, slightly smaller file size, single-file export)
-h, --help Help for export

Import
ollama import SOURCE [MODEL_NAME] [flags]

Flags:
--force Overwrite existing model
-h, --help Help for import
--insecure Skip checksum verification

**Original Pull Request:** https://github.com/ollama/ollama/pull/11161 **State:** open **Merged:** No --- **Added Model Export and Import #features.** Finally had time to revisit this issue: https://github.com/ollama/ollama/issues/335 This feature allows users to easily backup and transfer models between Ollama installations via USB drives or network storage. - Added `export` command to copy models to file/directory - Added `import` command to load models from file/directory - Supports directory, tar, and tar.gz formats - Includes checksum verification and progress tracking - Added --compress flag for export (this is slow, but shaves off around 2% and creates a .tgz or .tar.gz file) - Added --force flag for import to override an existing model - Added /--insecure flags to skip verification during import **Usage** **Export ** `ollama export MODEL DESTINATION [flags]` Flags: `--compress` Compress the export as tar.gz or .tgz (slower, slightly smaller file size, single-file export) `-h`, `--help` Help for export **Import** `ollama import SOURCE [MODEL_NAME] [flags]` Flags: `--force` Overwrite existing model `-h`, `--help` Help for import `--insecure` Skip checksum verification
GiteaMirror added the pull-request label 2026-04-13 00:27:53 -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#13459