You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
TypeErrorTraceback (mostrecentcalllast)
[<ipython-input-16-dd2afb7566fd>](https://localhost:8080/#) in <cell line: 0>()---->1hf_model=AutoModelForSequenceClassification.from_pretrained(
2checkpoint, num_labels=n_labels, id2label=id2label, label2id=label2id, compile=False3 )
1frames
[/usr/local/lib/python3.11/dist-packages/transformers/models/auto/auto_factory.py](https://localhost:8080/#) in from_pretrained(cls, pretrained_model_name_or_path, *model_args, **kwargs)562elif type(config) incls._model_mapping.keys():
563model_class=_get_model_class(config, cls._model_mapping)
-->564returnmodel_class.from_pretrained(
565pretrained_model_name_or_path, *model_args, config=config, **hub_kwargs, **kwargs566 )
[/usr/local/lib/python3.11/dist-packages/transformers/modeling_utils.py](https://localhost:8080/#) in from_pretrained(cls, pretrained_model_name_or_path, config, cache_dir, ignore_mismatched_sizes, force_download, local_files_only, token, revision, use_safetensors, weights_only, *model_args, **kwargs)4088withContextManagers(init_contexts):
4089# Let's make sure we don't run the init function of buffer modules->4090model=cls(config, *model_args, **model_kwargs)
40914092# make sure we use the model's config since the __init__ call might have copied itTypeError: ModernBertForSequenceClassification.__init__() gotanunexpectedkeywordargument'compile'
The text was updated successfully, but these errors were encountered:
Hello.
When running finetune_modernbert_on_glue.ipynb in colab on
the
TypeError
raisedThe text was updated successfully, but these errors were encountered: