Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Differing behaviour with remote_code #3140

Open
Alicimo opened this issue Dec 19, 2024 · 0 comments
Open

Differing behaviour with remote_code #3140

Alicimo opened this issue Dec 19, 2024 · 0 comments

Comments

@Alicimo
Copy link

Alicimo commented Dec 19, 2024

Unsure if this is expected behavior, but no warning is given that the loaded models differ.

from sentence_transformers import SentenceTransformer

trust = SentenceTransformer("jinaai/jina-embeddings-v2-base-de", trust_remote_code=True)
no_trust = SentenceTransformer("jinaai/jina-embeddings-v2-base-de", trust_remote_code=False)

assert all(trust.encode("I love cats") == no_trust.encode("I love cats"))
# AssertionError
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant