ImportError: cannot import name 'AutoModelForSeq2SeqLMM' from 'transformers'

Course: Generative AI with Large Language Models
Generative AI with Large Language Models
Week 1: Labs

Can anyone help with this. I am getting an import error for ‘AutoModelForSeq2SeqLMM’. Ran the lab first time, this was not an issue. Initial configuration looks good, so not sure why module will not load. Tried resetting kernel, even reloading lab, still having the same issue.

ImportError: cannot import name ‘AutoModelForSeq2SeqLMM’ from ‘transformers’ (/opt/conda/lib/python3.10/site-packages/transformers/init.py)

Attached Screen Shots:

Thank you

When creating a post, please add:

  • Week # must be added in the tags option of the post.
  • Link to the classroom item you are referring to:
  • Description (include relevant info but please do not post solution code or your entire notebook):

Error Resolution Update.

This was resolved by doing a clean lab reload. I started the project again afresh and was able to load AutoModelForSeqLMM module.

Thank you

1 Like