Skip to content

Adapter recommender cannot load models #28

@whisere

Description

@whisere

sklearn_sentence:
How to configure recommenders page setting such as layer and feature, I tried SemPred and category with
http://localhost:5000/sklearn_sentence but it doesn't work

server.add_classifier("sklearn_sentence", SklearnSentenceClassifier())
was done and runs okay

Also adapter_sent:

server.add_classifier(
     "adapter_sent",
     AdapterSentenceClassifier(
         base_model_name="bert-base-uncased", adapter_name="sentiment/sst-2@ukp", labels=["negative", "positive"]
     ),
 )

reports AttributeError: 'BertForSequenceClassification' object has no attribute 'load_adapter' error

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