Skip to content

How do I use models locally for privacy reasons? #3235

Discussion options

You must be logged in to vote

Hi @ErfolgreichCharismatisch !

The upload error you are looking at is caused by telemetry. You can disable it by setting environment variable HAYSTACK_TELEMETRY_ENABLED=False or by calling disable_telemetry().

Haystack telemetry is totally anonymized.

Regarding the Transformers models, you can use locally cached models or manually downloaded, the location will be set/get by env vars:

  • TRANSFORMERS_CACHE
  • HF_HOME + transformers/.
  • XDG_CACHE_HOME + /huggingface/transformers.

But I think that if you don't remove the virtual env or clean these directories, you can use it offline. Remember to turn off telemetry.

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ErfolgreichCharismatisch
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants