You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An officially supported task in the examples folder (such as GLUE/SQuAD, ...)
My own task or dataset (give details below)
Reproduction
Steps to recreate the error:
Run the below code in any python editor
from transformers import AutoTokenizer, FlaxRoFormerForMaskedLM
tokenizer = AutoTokenizer.from_pretrained("junnyu/roformer_chinese_base")
model = FlaxRoFormerForMaskedLM.from_pretrained("junnyu/roformer_chinese_base")
inputs = tokenizer("The capital of France is [MASK].", return_tensors="jax")
outputs = model(**inputs)
logits = outputs.logits
Expected behavior
The model should run and produce error free output
The text was updated successfully, but these errors were encountered:
when running FlaxRoFormerForMaskedLM model, I have encountered an issue as
This error is reported in the file
transformers/models/roformer/modeling_flax_roformer.py:265
The function responsible for this error in that file is as below
While changing this particular line from
sinusoidal_pos.split(2, axis=-1)
tosinusoidal_pos._split(2, axis=-1)
, I didn't get that errorMy observation is when I replace
split()
with_split()
, my issue is resolvedSystem Info
My environment details are as below :
I am attaching a screenshot for reference
Who can help?
@gante @Rocketknight1
I am facing this issue for Models like
Information
Tasks
examples
folder (such as GLUE/SQuAD, ...)Reproduction
Steps to recreate the error:
Run the below code in any python editor
Expected behavior
The model should run and produce error free output
The text was updated successfully, but these errors were encountered: