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.
Instructions to use jinaai/xlm-roberta-flash-implementation with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use jinaai/xlm-roberta-flash-implementation with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("jinaai/xlm-roberta-flash-implementation", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Commit History
-
Fix uninitialised rotary inv_freq on transformers v5 (#63)
- Fix uninitialised rotary inv_freq on transformers v5 (44bccde5eace6e06cb5698d6c3a694a83a5d543e) Co-authored-by: Tom Aarsen <tomaarsen@users.noreply.huggingface.co>bd55a5e
-
Fixup post init (for v5 remot compatibility) (#60)
- Fixup post init (for v5 remot compatibility) (61f9bb9e80d5fe1bcb1869c168c55e694764d161) Co-authored-by: Anton Vlasjuk <AntonV@users.noreply.huggingface.co>845308d
-
Fixes import error for this function `create_position_ids_from_input_ids` in transformers V5. (#59)
- Fixes import error for this function `create_position_ids_from_input_ids` in transformers V5. (e02c3edab951fd7ae9b8934eb47762c4e88a73ca) Co-authored-by: Sai Suraj <Sai-Suraj@users.noreply.huggingface.co>cd915ad
-
output-hidden-states (#56)
Verified signature- add option to output hidden states (681845da60fc92b982a091b193ae1fac09bc61f8)2b6bc3f
-
[Fix bug] TypeError: argument of type 'XLMRobertaFlashConfig' is not iterable (#55)
Verified signature- [Fix bug] TypeError: argument of type 'XLMRobertaFlashConfig' is not iterable (7207e6dc1a4f92525661684f15d6778d84cfdf3c) Co-authored-by: Le Khac Phuong <phuonglk@users.noreply.huggingface.co>54b019f
-
fix: loading from st
Verified signature82b68d6
-
fix-normalization-after-truncate (#53)
Verified signature- refactor: normalization after truncation (f8300e5c89e4339ef6c880c988201caa7d8ec354)9dc6033
-
Fix Loading Model with Modified Config File (#52)
Verified signature- Fix Loading Model with Modified Config File (0f046a80a6135dd47a4663c94b290a8e2ffa2af6) Co-authored-by: Samuele Marino <SamMaggioli@users.noreply.huggingface.co>da863dd
-
Add `add_pooling_layer` arg to XLMRobertaLora (#50)
Verified signature- Add `add_pooling_layer` arg to XLMRobertaLora (bcfceeb635daf3d02be8460acd289c9bffce3ffe)f221b0a
-
Update README.md
Verified signature12700ba
-
fix: set fp32 when using cpu bc bf16 is slow (#44)
Verified signature- fix: set fp32 when using cpu bc bf16 is slow (6787a0f57730d94a2dda30bf54ab96382ce09536)662a797
-
Update modeling_lora.py
Verified signature1b0fa28
-
refactor-task-type-to-task (#43)
Verified signature- rename task type (3afddee7275504c48afc63049db9124f9e2871ce)ffd672d
-
Update modeling_xlm_roberta.py
Verified signatureb20a611 -
Set normalize_embeddings to True
Verified signaturef2933ac
-
fix: partition adapter mask when batch size is specified (#41)
Verified signature- fix: partition adapter mask when batch size is specified (e6e3a6f1dcfa01de524099f84cd7a85299175f55)c0215f6
-
fix: update frequencies when updating the rope base value (#40)
Verified signature- fix: update frequencies when updating the rope base value (d8cbc92c8650d6bdc8e5afb28785625a98ccfab1) - Update rotary.py (90873c4a21ac932b2df31d0e35e56b9c55460470) - Update rotary.py (071760a5bbecc7b738c64583a3b5b337cd6d0667) - Update rotary.py (1eb2361d4e9bdeedc1516196f02f199515916d30) - Update rotary.py (066b97bdf39f4031bf1ddee4c706d5c842fb8748)8b2ad1e
-
feat: update the readme
a6bb16f
-
fix mixed precision loading with recent transformers versions (#39)
Verified signature- fix mixed precision loading with recent transformers versions (553cf70617db7379e93ec5a92ba8d75ebb3cda66)bda5e8d -
lora-instructions (#36)
Verified signature- feat: add lora instructions for retrieval (7af97e787979d0496a49416b8972adb1817d13fa) - fix: when sentences is one (c35a42b4b8cf2e60a7b34f7cb8da522d0d6f0f52) - fix: sentences as a str (5f8e4b6771a158cdfb84b3c381051ad555655426) - merge recent changes (8f83a352fa175fb5547dae6330c05e1c3a56395e) - refactor: prompts (aeb99cb139baff8daa0845e9e9be0d9c39f21271) Co-authored-by: Jack Min Ong <Jackmin108@users.noreply.huggingface.co>a709b51
-
fix-device-issues (#38)
Verified signature- fix: inference issues (5365db89d3c1ad3dabfed37554c9f10e3a5918de) Co-authored-by: Jack Min Ong <Jackmin108@users.noreply.huggingface.co>57dbe22 -
fix: override use_flash_attn in lora
Verified signaturedc4080e
-
Fix rotary backward
Verified signature169b7fb -
cpu-inference (#35)
Verified signature- fix cpu inference (57f6c3dc2abf60f8aa51d67551d73d5912b42146) Co-authored-by: Jack Min Ong <Jackmin108@users.noreply.huggingface.co>80b1ff7
-
feat: configurable use_reentrant (#37)
Verified signature- feat: expose configuration of use_reentrant (5b03f30bf613f3424b7c6499d2de1b93b5b5e3cd) - feat: set proper model_type (3154d934ec4694e16d6bc60e4f0cb1cc2a292d81) Co-authored-by: Georgios Mastrapas <gmastrapas@users.noreply.huggingface.co>09dbf45
-
refine-codebase (#33)
Verified signature- style: removing unused files, black, isort (6e55444329aa0c7f03cad24df7181b1599f8c0fc) - docs: add comments (1752c7c313018d447f01539883f352af472d8001) - configuration (3830381a980542ad592bcf3cc6c8d8cda25947fb) - chore: remove model weights (f9962ee8bc4141783cf69a239d29866bc93c5343) - docs: readme (1babf317f017ea44880d1e39a8e86ed86c087399) - chore: remove tokenizer file (37bae6d5bd9f07db0adb1e5c058490dc5c985b79) - chore: remove config (447c0db77b026b8f668214d36436c66a1cc154ce) - chore: no need for tokenizer config as well (3b9e730c66bf50cd728107c28adf0d8c2be0c207) - readme (e3fca02ce1e5e0e99c6d2cbb310a4409811de116)2646361
-
fix-adapter-masks (#32)
Verified signature- fix: adapter masks (934939f54211c85cc0a5f9891937c4015377c102) Co-authored-by: Jack Min Ong <Jackmin108@users.noreply.huggingface.co>0f0bed6 -
change rotary base (#31)
Verified signature- feat: rotary base as a property (c1200891411b6198ca6448cfebf5123d15bf2c31) - Merge branch 'main' into pr/31 (c2ead96805f8278295d48fda36eba1d96ed3bffb) Co-authored-by: Jack Min Ong <Jackmin108@users.noreply.huggingface.co>4434bf3 -
2-adapter-tuning (#29)
Verified signature- feat: 2 adapter tuning (362ef00c6df4e2388dfcd39bd635240b4de4a9d2) - feat: adapter masking wip (c1736a8d39f5dcc90d64dc5e0166322d845ec989) - feat: adapter masking finished (76fc218113da3b2f66c26ebe0755301a3a67061c) - remove commented lines (7815d415bc00f30898883911cc44d56a693d822d) - feat: evaluation/encode (7c7eafb5e7efd8910501703227940b557e3e6a75) - fix: check adapter (d2c9d0672483f10ce92caa3b6541f2582473c372) - fix: mlp (4ee2970aeb1c2374482cafd3e6b734ed61f2c342) - fix: device (65e9690599b3db9b2d532657d35dfafd7fd03578) - some fixes and suggestions (814cbbb37fe99b95053380e44615018f38a5af8a) - merge changes (70e22f5f4d394773c3b01c59f86617f99bb8a531) Co-authored-by: Jack Min Ong <Jackmin108@users.noreply.huggingface.co>95fd08c
-
Update modeling_xlm_roberta.py
Verified signature027219a -
2-adapter-tuning-initial-impl (#30)
Verified signature- 2 adapter tuning (3fd28cf83a7aeb3b39b4da99337ae29c84f1b424) Co-authored-by: Jack Min Ong <Jackmin108@users.noreply.huggingface.co>2cc8472
-
Update modeling_xlm_roberta.py
Verified signature3eceb33
-
make-lora-stateless (#25)
Verified signature- draft (6cc0f517fef666dc2c5c0f0fe7c92935f7b7d7bb) - poc (eefe43c08d4952b1e2a3c17d6e20090a72a52474) - refactor: finalize impl (509511d7e5d7b46de5b143e5fc908784eada3f07) - refactor: modify encode (3eb20d0a7451e244a9c2ee80e7bb762d17a9f9d1) - fix: 0 is not none (ae40cb93420908fdd3f370e6af3cb0cbe9cbf90d) - fix: remove prints (acffa62b444442f4933a3023f19d09148de9e2fb) - refactor: kwargs comprehension (4e13c908bafe0f54becc8c278b3752a37c207c50) - fix: residual is kept in kwargs (d9d83063f0fcb5bfa22cd4946f23baa1421b9930) - feat: merge with recent changes (493416fa0cabc0de4deba3c317c58043f9998d49)e860caa
-
feat-routing (#26)
Verified signature- feat: set adapter based on prompt (71b163e3134eb40c1a6da775ae7d945134e986a7) - fix: read prompts from config (51411ff21ad7889871b6465f876eb0a0ade0a7d0) - fix: check for exact task names (b3c540ce62778ffa8b9e0fa69bbbaa1042fc337e) Co-authored-by: Mohammad Kalim Akram <makram93@users.noreply.huggingface.co>6a92924
-
fix-rope-inference (#28)
Verified signature- fix: rope dim mismatch (cadf946211e1e76977f8e1e0227d657354ceb031)955fea2
-
no-flash-attention-during-inference (#22)
Verified signature- feat: no flash attention during inference (e3423c0243fe029474cbf283046f02e11e82202f)7ad815b
-
Rename config to config.json
Verified signature4d09ca8
-
Create config
Verified signature721e106
-
Delete config.json
Verified signaturea60f7c0
-
rope-embeddings (#20)
Verified signature- feat: support rope (f2e0e6205e15f5e1e23354800fe39b3ae25d9bca) - chore: remove parallelmha (8b64fa835d32d29efa8b3a34f43e4c5011ec6f13) - feat: default dim (77a17f7cb5d03e4bbfd8674fd49956fdcebb9cdc) - refactor: revert alibi stuff (11ba2000440ef53e3b8ad551ababcdf2259643ed) - chore: source (c232c27ed971d786c3e9cad242d415b2cd1fa655) - refactor: raise error if flash attention is not installed (e8e1e150c525847c940918fa1f849997e14fcaa9)e3681c2
-
alibi (#19)
Verified signature- feat: support alibi (b4903887bd152b045811fb78a5edc369a8db7cb5) Co-authored-by: Jack Min Ong <Jackmin108@users.noreply.huggingface.co>ab85772
-
lora bugfix (#16)
Verified signature- fix: lora bug (4c504d33aca884a998533b089cb905b597a82467) Co-authored-by: Jack Min Ong <Jackmin108@users.noreply.huggingface.co>7c4a80c
-
truncate-embedding-dimension (#10)
Verified signature- feat: matryoshka embeddings (ee8863c9cbae496b327c9d5761b54f02a2f90954) - refactor: optional arg (3f72891549ab3f1a6a3cd4e8b40dff6d5c50d1b1) - fix: var name (fd34c40e6fcbb638e225ccd8b47f5b9c487bd8a4) - fix: another one (b27fa557459cf35a2520c39da441b5e79e455068) - refactor: truncation fn (c55e59156fa5b02100f7a7707324f3ce4f92714f) - feat: truncation option during init (943cec246f8df968b3c6b2bd10e89f9529797b25)8542ad8
-
lora-multiple-adapters (#11)
Verified signature- fix: remove old var (1ba907ac288b5edddf2b71406ed211b36d8e9b10)27d23b2
-
Refactor LoRA (#8)
Verified signature- refactor: lora (e0ea168f256f54e7728033ff8afbf9bb71c617cc) - refactor: remove pooling layer stuff (c6a5a4d6aa2d39e1b0691e4f48869aa8d7e34b09) - refactor: restructure the class (a2b7c8644033cc4318c6caa6730836023776faa9) - refactor: disable lora by default (5418705c2b50051908c38d6df1055df4f21274a2) - refactor: set task in lora class rather than xlm roberta (851aaca7b1e7f9dbffaacd3b070231e0f94401cb) - refactor: stuff (370394630d973381185d21d153a5e46d3b9fc6da)4b000ec
-
support lora (#1)
Verified signature- feat: support lora (5ed05aac24feb06378f0e19b6ae1ad4b26fe613d) - Update modeling_lora.py (c380b5a69a5f279bad937ce1d5de87248bf0adf2) - feat: initialize models with or without adapters (79c3c9397232303f34ba232f60e5cb6856aaf3f0) - chore: change num lora def value (f960115170389c74fe144f688be72b8821b8e35e) - small change (6060bad367d8fb677124ffbb8ee3ee2d7849e352) - feat: merge stuff (841b70fc561e8292098ed7e890a75ff352ab987b)f9b3adb