How do I use models locally for privacy reasons? #3235
-
My code is this
As the models have already been downloaded, I switched off the internet connection(as data to be processed is sensitive) and tried the model with it. I got
So I got the error message not only for the relative path whose model has already been downloaded, but also for the absolute path. Also I noticed the I found solutions, like #486 (comment) but the FARM framework does not accept How do I use the models locally for privacy reasons? Maybe @bglearning , @vblagoje or @bogdankostic can help. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
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:
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. |
Beta Was this translation helpful? Give feedback.
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:
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.