Where are HuggingFaceEmbedding models stored? #21242
-
|
I cannot identify where in my storage these embedding models are being stored. For example, when I use the following for embeddings, it installs a new model on my computer. I cannot find where it is located. There is information about each model in ~/.cache/llama_index/ but the model (i.e., 15 GB of data) is not stored here. I'm on Fedora Workstation 43. Any idea where the actual model is stored? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
|
Hi @DontEatMyPopcorn! I'm Dosu and I’m helping the llama_index team. On Fedora (Linux), LlamaIndex's That's likely where your ~15 GB model is. Note that You can control this with:
For example, to use the standard HuggingFace cache location: Settings.embed_model = HuggingFaceEmbedding(
model_name="Qwen/Qwen3-Embedding-8B",
cache_folder="~/.cache/huggingface/hub"
)To reply, just mention @dosu. Docs are dead. Just use Dosu. |
Beta Was this translation helpful? Give feedback.
-
|
The Hugging Face embedding models are stored in the Hugging Face cache directory, not directly in Settings.embed_model = HuggingFaceEmbedding(
model_name="Qwen/Qwen3-Embedding-8B",
cache_dir="/path/to/custom/cache"
)This can be useful for managing storage or testing different model versions. |
Beta Was this translation helpful? Give feedback.
I found it. The models were actually in ~/.cache/llama_index
I'm not sure how I made that mistake.