Skip to content
This repository was archived by the owner on Aug 6, 2025. It is now read-only.
This repository was archived by the owner on Aug 6, 2025. It is now read-only.

Unable to import LaserEncoderPipeline #280

@sumedhan-r

Description

@sumedhan-r

While calling LaserEncoderPipeline for the purpose of downstream NLP tasks, the first error that popped up was a ValueError, which stated

mutable default <class 'fairseq.dataclass.configs.CommonConfig'> for field common is not allowed: use default_factory

I asked the opinion of ChatGPT on the same and had got a code that slightly modified the line where the Config classes are declared.

After having made changes to all the respective Config related classes, I was getting another Error, namely ValidationError which stated

Object of unsupported type: '_MISSING_TYPE'
full_key:
reference_type=None
object_type=None

Below are attached some screenshots related to the errors. Please look into this at the earliest.

LASER 1_1 LASER 1_2 LASER 2_1 LASER 2_2 LASER 3_1 LASER 3_2

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