Skip to content

Cannot import "Conversation" #1955

@Phyks

Description

@Phyks

Hi,

The example HuggingFace pipeline does no longer work and fails with an error "Cannot import Conversation from transformers.pipelines": https://github.com/SeldonIO/MLServer/blob/master/docs/examples/huggingface/README.md.

As per https://discuss.huggingface.co/t/cannot-import-conversation-from-transformers-utils-py/91556/1, downgrading transformers library to version 4.41.2 (pip install transformers==4.41.2) does the trick and fixes the pipeline.

transformers dependency should probably be pinned to a stricter version, or the import should be fixed in huggingface runtime.

Best,

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