Closed pesuchin closed 2 weeks ago
Hello!
I'm not going to add a test for this for now - it would just be a bit too messy to have a private model that everyone can somehow access, but this does seem to resolve the problem.
Also, I could have sworn that dict.get()
gave a KeyError
by default if it failed, but I suppose not, haha.
I updated the default for local_files_only
to False, as that's the default in find_adapter_config_file
as well - the others can stay None
.
Thanks for tackling this so quickly @pesuchin, I'd like to quickly merge this & bring it out in a patch release.
cc @J-Curwell, @HenningDinero thanks for reporting this!
Hello!
I'm not going to add a test for this for now - it would just be a bit too messy to have a private model that everyone can somehow access, but this does seem to resolve the problem. Also, I could have sworn that
dict.get()
gave aKeyError
by default if it failed, but I suppose not, haha.I updated the default for
local_files_only
to False, as that's the default infind_adapter_config_file
as well - the others can stayNone
.Thanks for tackling this so quickly @pesuchin, I'd like to quickly merge this & bring it out in a patch release.
cc @J-Curwell, @HenningDinero thanks for reporting this!
- Tom Aarsen
It is indeed difficult to make a test to a private-public repo 😅
But yeah, dict.get
does not raise an error (use dict[]
instead if you want ;-))
Thank you for resolving so quickly @pesuchin @tomaarsen! 🥇
Resolves: https://github.com/UKPLab/sentence-transformers/issues/3053
Details
Check
I have confirmed that I can load a private Transformer model with an adapter with the following code.
code:
logs: