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.

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

#59

Right now, With Transformers V5.0 version, If we try to load the jinaai/jina-embeddings-v3 model, we are getting this Error: ImportError: cannot import name 'create_position_ids_from_input_ids' from 'transformers.models.xlm_roberta.modeling_xlm_roberta'

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.x versions. Link to the staticmethod: https://github.com/huggingface/transformers/blob/7769f660935b5d48b73bf6711d0a78b6f8f98739/src/transformers/models/xlm_roberta/modeling_xlm_roberta.py#L145

•
This comment has been hidden (marked as Off-Topic)

Hey, @jupyterjazz @michael-guenther @gmastrapas Can you please check this as soon as possible. This model (jinaai/jina-embeddings-v3) has > 5M downloads per month. Now that transformers V5 is released, It is the default version of transformers in Colab as well. So, this needs to be fixed. If one wants to use the model through transformers package now.

Jina AI org

Thanks for fixing this @Sai-Suraj !

jupyterjazz changed pull request status to merged

Sign up or log in to comment