summaryrefslogtreecommitdiff
path: root/candle-examples/examples/xlm-roberta
Commit message (Collapse)AuthorAgeFilesLines
* Added XLMRobertaModel for Reranking (#2686)Akshay Ballal2024-12-302-0/+307
* add xlm-roberta-base * Add task enum for fill-mask and reranker in xlm-roberta example; update README and fix attention mask dimensions - Introduced a new `Task` enum to replace string task identifiers in the xlm-roberta example. - Updated the logic in `main.rs` to handle tasks using the new enum. - Enhanced README with example output for fill-mask task. - Fixed dimension retrieval in `prepare_4d_attention_mask` function for better clarity and safety. * Clippy fix. --------- Co-authored-by: laurent <laurent.mazare@gmail.com>