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

bug(python): Allow setting allow_remote_code in HF embedding function #1285

Open
AyushExel opened this issue May 9, 2024 · 0 comments
Open
Assignees
Labels
bug Something isn't working

Comments

@AyushExel
Copy link
Contributor

LanceDB version

No response

What happened?

HF now requires you to manually confirm if you want to download and run some custom code. Sometimes it asks for prompts but sometimes just throws an error.

Are there known steps to reproduce?

use HF embedding function with nomic-ai/nomic-embed-text-v1 embedding model. It should throw:

    raise ValueError(
ValueError: The repository for nomic-ai/nomic-embed-text-v1 contains custom code which must be executed to correctly load the model. You can inspect the repository content at https://hf.co/nomic-ai/nomic-embed-text-v1.
Please pass the argument `trust_remote_code=True` to allow custom code to be run.
@AyushExel AyushExel added the bug Something isn't working label May 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants