Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

pgml.embed trust_remote_code #1169

Closed
@kczimm

Description

@kczimm

A user on Discord submitted the following query with subsequent error:

SELECTpgml.embed(    transformer=>'jinaai/jina-embeddings-v2-base-en',text=>'Dynamical Scalar Degree of Freedom in Horava-Lifshitz Gravity"}',    kwargs=>'{"trust_remote_code": true}');
ERROR:  ValueError: Loading this model requires you to execute custom code contained in the model repository on your localmachine. Please set the option trust_remote_code=True to permit loading of this model.

We are currently usingsentence_transformers andInstructorEmbedding Python packages for thepgml.embed function. This model gets dispatched to thesentence_transformers package which does not appear to support thetrust_remote_code keyword.

Huggingface shows, for this model, to usetransformers.AutoModel. We should probably add this in, but how do we determine which model should use which package? Can they all usetransformers? These questions need answering.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions


      [8]ページ先頭

      ©2009-2025 Movatter.jp