Transformers
xlm-roberta
🇪🇺 Region: EU

Run this model with HF Jobs

Run jinaai/xlm-roberta-flash-implementation on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/jinaai/xlm-roberta-flash-implementation. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/jinaai/xlm-roberta-flash-implementation on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Sai-Suraj commited on
Commit
e02c3ed
·
verified ·
1 Parent(s): 2b6bc3f

Fixes import error for this function `create_position_ids_from_input_ids` in transformers V5.

Browse files

The function is now kept as a staticmethod in the file: (transformers.models.xlm_roberta.modeling_xlm_roberta). This PR will make sure that it will now work in both Transformers V5 and older v4.57.6 versions.
ImportError: cannot import name 'create_position_ids_from_input_ids' from 'transformers.models.xlm_roberta.modeling_xlm_roberta' (/home/suraj/repos/transformers/src/transformers/models/xlm_roberta/modeling_xlm_roberta.py)

1 file changed +16 -2
embedding.py+16-2