Simpletransformers: Cannot import "WarmUpLinearSchedule"

Created on 27 Nov 2019  路  4Comments  路  Source: ThilinaRajapakse/simpletransformers

Getting this error this morning and wasn't getting it yesterday while running:
from simpletransformers.classification import ClassificationModel.

The details of the error are as follows:

---> 30 from transformers import AdamW, WarmupLinearSchedule
31 from transformers import (
32 WEIGHTS_NAME,

ImportError: cannot import name 'WarmupLinearSchedule'

Could this be linked with the launch of the v2.2 version of the transformers package yesterday?

Most helpful comment

Should be fixed now in 0.8.0. Please do let me know if anything is misbehaving. I can't run full tests atm as my GPU is otherwise engaged. :sweat_smile:

All 4 comments

I'm running into the same issue, and I can confirm that it is related to yesterday's release, a package downgrade to transformers 2.1.1 allowed me to run my code again.

Same here! Thanks for the heads up though! :)

I haven't checked it yet. I'll update it to work with Transformers 2.2 tonight. Thanks for the update!

Should be fixed now in 0.8.0. Please do let me know if anything is misbehaving. I can't run full tests atm as my GPU is otherwise engaged. :sweat_smile:

Was this page helpful?
0 / 5 - 0 ratings

Related issues

krrishdholakia picture krrishdholakia  路  7Comments

Krish-Nerkar picture Krish-Nerkar  路  7Comments

yoeldk picture yoeldk  路  9Comments

marctorsoc picture marctorsoc  路  6Comments

caprone picture caprone  路  3Comments