This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
""" | |
Ollama Model Manager | |
This script provides two modes of operation: | |
- export: Exports an installed Ollama model to a tarball. | |
- import: Imports an Ollama model from a tarball. | |
The export mode reads a manifest file located at: | |
<base_path>/manifests/registry.ollama.ai/library/<model_name>/<model_size> |