Skip to content

Loading model results in AttributeError: 'SpanMarkerConfig' object has no attribute 'quantization_config' #76

@mitchins

Description

@mitchins

I've tested this on Transformers 4.4.9 and 4.52 under Python 3.10, and receive the error/trace:

Traceback (most recent call last):
  File "/opt/miniconda3/envs/BookWork/lib/python3.10/site-packages/span_marker/configuration.py", line 114, in __getattribute__
    return super().__getattribute__(key)
  File "/opt/miniconda3/envs/BookWork/lib/python3.10/site-packages/transformers/configuration_utils.py", line 211, in __getattribute__
    return super().__getattribute__(key)
AttributeError: 'SpanMarkerConfig' object has no attribute 'quantization_config'

I've tried using both:

config = SpanMarkerConfig.from_pretrained(path)
model = SpanMarkerModel.from_pretrained(path, config=config)

and simply

SpanMarkerModel.from_pretrained(path)

No matter what I do, it complains about quantization_config.

I tried the model from the github page (among others): tomaarsen/span-marker-bert-base-fewnerd-fine-super

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions