Skip to content

Support for custom Ollama models directory (based on $OLLAMA_MODELS variable) #1692

@mcrose

Description

@mcrose

Why:

I runned out of space in my home directory so I moved to a second HHDD the Ollama config folder as describe in Setting Environment Variables on Linux, but whe I executed ./mvnw quarkus:dev or quarkus dev it created again ~.ollama folder again.

So:
I forked and made the changes to make it work.

Steps:

  • declare in your .bashrc or .zshrc: export OLLAMA_MODELS=/newPathTo/ollama
  • move ~.ollama/* to /newPathTo/ollama/ or just remove the current directory
  • run: quarkus dev

branch: support_for_ollama_models_custom_directory

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions