Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix incompatible Ollama paths #370

Merged
merged 1 commit into from
Oct 25, 2024

Conversation

swarajpande5
Copy link
Collaborator

Resolves #352

This PR fixes incompatible Ollama paths, by fetching the manifest file when needed and not downloading the same. (Using the approach as disscussed in #352).

Example run:

(venv) spande-mac:ramalama (fix-ollama-paths*) $ ./bin/ramalama pull ollama://tinyllama:latest
Pulling 83e42c043d6c7816: 100% ▕####################▏ 608M/608M 3.81MB/s 00:00 

(venv) spande-mac:ramalama (fix-ollama-paths*) $ tree $HOME/.local/share/ramalama 
/Users/spande/.local/share/ramalama
├── models
│   ├── huggingface
│   ├── oci
│   └── ollama
│       └── tinyllama:latest -> ../../repos/ollama/blobs/sha256:2af3b81862c6be03c769683af18efdadb2c33f60ff32ab6f83e42c043d6c7816
└── repos
    ├── huggingface
    ├── oci
    └── ollama
        └── blobs
            ├── sha256:2af3b81862c6be03c769683af18efdadb2c33f60ff32ab6f83e42c043d6c7816
            └── sha256:6331358be52a6ebc2fd0755a51ad1175734fd17a628ab5ea6897109396245362

10 directories, 3 files

As visible in the above tree command, no more incompatible problematic paths.

Signed-off-by: swarajpande5 <[email protected]>
@ericcurtin ericcurtin merged commit 3bc84a2 into containers:main Oct 25, 2024
14 checks passed
@swarajpande5 swarajpande5 deleted the fix-ollama-paths branch October 25, 2024 13:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Incompatible Ollama paths
2 participants