Skip to content

Update notebook #1

Description

@emilienschultz

There is a need for separating the import of the model in the notebook @AXLMRIN

model = SentenceTransformer(model_name_or_path, trust_remote_code=True)


ValueError Traceback (most recent call last)
/tmp/ipykernel_6734/2173277026.py in <cell line: 0>()
11 vectorizer_model = vectorizer_model,
12 )
---> 13 topic_model.fit(documents=docs)

14 frames
/usr/local/lib/python3.12/dist-packages/transformers/dynamic_module_utils.py in resolve_trust_remote_code(trust_remote_code, model_name, has_local_code, has_remote_code, error_message, upstream_repo)
747
748 if has_remote_code and not has_local_code and not trust_remote_code:
--> 749 raise ValueError(
750 f"{error_message} You can inspect the repository content at https://hf.co/{model_name}.\n"
751 f"Please pass the argument trust_remote_code=True to allow custom code to be run."

ValueError: Alibaba-NLP/new-impl You can inspect the repository content at https://hf.co/Alibaba-NLP/gte-multilingual-base.
Please pass the argument trust_remote_code=True to allow custom code to be run.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions