Skip to content

BetterTransforer not Support Marian #1142

Description

@Dhaizei

System Info

model_name = "Helsinki-NLP/opus-mt-en-zh"
model_hf = AutoModelForSeq2SeqLM.from_pretrained(model_name)
model = BetterTransformer.transform(model_hf, keep_original_model=True)

ValueError: Activation function swish not supported for `BetterTransformer` integration.

Who can help?

No response

Information

  • The official example scripts
  • My own modified scripts

Tasks

  • An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
  • My own task or dataset (give details below)

Reproduction

model_name = "Helsinki-NLP/opus-mt-en-zh"
model_hf = AutoModelForSeq2SeqLM.from_pretrained(model_name)
model = BetterTransformer.transform(model_hf, keep_original_model=True)

Expected behavior

ValueError: Activation function swish not supported for BetterTransformer integration.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions