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

Error loading self-made model with SentenceTransformer #1683

Open
su-park opened this issue Sep 2, 2022 · 0 comments
Open

Error loading self-made model with SentenceTransformer #1683

su-park opened this issue Sep 2, 2022 · 0 comments

Comments

@su-park
Copy link

su-park commented Sep 2, 2022


Error loading self-made model with SentenceTransformer

  • Hi
  • I got an error message loading self-made model.
  • When I try to load self-made model with SentenceTransformer this line, module_class = import_from_string(module_config['type']), returns error.
  • I checked modules.json of self-made model and found wrong "type" value from "idx"=0 as follows;
  • ( Any properly loading model from Huggingface has a value, "sentence_transformers.models.Transformer", for "type"
  • and It worked when I replaced __main__ with it.)
[
    {
        "idx": 0,
        "name": "0",
        "path": "0_Transformer",
        "type": "__main__"
    },
    {
        "idx": 1,
        "name": "1",
        "path": "1_Pooling",
        "type": "sentence_transformers.models.Pooling"
    }
]
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