llmware-ai / llmware-ai/llmware

Setting Model Repo Path

Open
#932 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Python
Stars
14.8k
Forks
2.9k
PR merge metrics
No merged PRs in 30d

Description

When setting the model repo path as indicated in the documentation as such:

LLMWareConfig().set_home(".\\llm_models\\")

And confirming that it has worked by:

LLMWareConfig().get_model_repo_path()

When using ModelCatalog().get_llm_toolkit() the models download to the correct location.

But when using ModelCatalog().load_model("llmware/bling-phi-3-gguf") they are loaded to the cache directory. (.cache\huggingface\hub)

Because I want to package a RAG / PySide6 application, I would like to load local gguf models from within the app directory structure.

How can I force model downloads to the set home path?

Thank you!

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing LLMWareConfig().set_home() and get_model_repo_path() into ModelCatalog().load_model("llmware/bling-phi-3-gguf"), comparing that path with the Hugging Face cache directory used during loading. Confirm the configured home path is honored for this model-loading path, and verify that the model is downloaded and loaded from the application’s configured directory rather than .cache/huggingface/hub.

Written by the indexing model from the issue text.

Assessment

Tech stack
huggingface, python
Domain
machine-learning
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.