Transformers documentation

๐Ÿค— Transformers

You are viewing v4.44.0 version. A newer version v4.47.1 is available.
Hugging Face's logo
Join the Hugging Face community

and get access to the augmented documentation experience

to get started

๐Ÿค— Transformers

Machine Learning allo stato dellโ€™arte per PyTorch, TensorFlow e JAX.

๐Ÿค— Transformers fornisce delle API per scaricare in modo semplice e allenare modelli pre-allenati allo stato dellโ€™arte. Lโ€™utilizzo di modelli pre-allenati puรฒ ridurre i tuoi costi computazionali, lโ€™impatto ambientale, e farti risparmiare il tempo che utilizzeresti per allenare un modello da zero. I modelli possono essere utilizzati in diverse modalitร  come ad esempio:

  • ๐Ÿ“ Testo: classificazione del testo, estrazione delle informazioni, rispondere a domande, riassumere, traduzione e generazione del testo in piรน di 100 lingue.
  • ๐Ÿ–ผ๏ธ Immagini: classificazione di immagini, rilevazione di oggetti e segmentazione.
  • ๐Ÿ—ฃ๏ธ Audio: riconoscimento vocale e classificazione dellโ€™audio.
  • ๐Ÿ™ Multimodale: rispondere a domande inerenti dati tabulari, riconoscimento ottico dei caratteri, estrazione di informazioni a partire da documenti scannerizzati, classificazione di video e risposta visuale a domande.

La nostra libreria supporta unโ€™integrazione perfetta tra tre delle librerie per il deep learning piรน popolari: PyTorch, TensorFlow e JAX. Allena il tuo modello in tre righe di codice in un framework, e caricalo per lโ€™inferenza in un altro.

Ogni architettura di ๐Ÿค— Transformers รจ definita in un modulo Python indipendente cosรฌ da poter essere personalizzata in modo semplice per la ricerca e gli esperimenti.

Se stai cercando supporto personalizzato dal team di Hugging Face

HuggingFace Expert Acceleration Program

Contenuti

La documentazione รจ organizzata in cinque parti:

  • INIZIARE contiene un tour rapido e le istruzioni di installazione per cominciare ad utilizzare ๐Ÿค— Transformers.
  • TUTORIALS รจ un buon posto da cui iniziare se per te la nostra libreria รจ nuova. Questa sezione ti aiuterร  ad acquisire le competenze basilari di cui hai bisogno per iniziare ad utilizzare ๐Ÿค— Transformers.
  • GUIDE PRATICHE ti mostrerร  come raggiungere obiettivi specifici come fare fine-tuning di un modello pre-allenato per la modellizzazione del linguaggio o come creare una testa per un modello personalizzato.
  • GUIDE CONCETTUALI fornisce discussioni e spiegazioni dei concetti sottostanti alle idee dietro ai modelli, compiti, e la filosofia di progettazione di ๐Ÿค— Transformers.
  • API descrive ogni classe e funzione, raggruppate in:
    • CLASSI PRINCIPALI per le classi principali che espongono le API importanti della libreria.
    • MODELLI per le classi e le funzioni relative ad ogni modello implementato allโ€™interno della libreria.
    • HELPERS INTERNI per le classi e le funzioni che utilizziamo internamente.

La libreria attualmente contiene implementazioni in JAX, PyTorch e TensorFlow, pesi di modelli pre-allenati, script di utilizzo e strumenti di conversione per i seguenti modelli.

Modelli supportati

  1. ALBERT (da Google Research e lโ€™Istituto Tecnologico di Chicago) rilasciato con il paper ALBERT: A Lite BERT for Self-supervised Learning of Language Representations, da Zhenzhong Lan, Mingda Chen, Sebastian Goodman, Kevin Gimpel, Piyush Sharma, Radu Soricut.
  2. ALIGN (from Google Research) rilasciato con il paper Scaling Up Visual and Vision-Language Representation Learning With Noisy Text Supervision da Chao Jia, Yinfei Yang, Ye Xia, Yi-Ting Chen, Zarana Parekh, Hieu Pham, Quoc V. Le, Yunhsuan Sung, Zhen Li, Tom Duerig.
  3. BART (da Facebook) rilasciato con il paper BART: Denoising Sequence-to-Sequence Pre-training for Natural Language Generation, Translation, and Comprehension da Mike Lewis, Yinhan Liu, Naman Goyal, Marjan Ghazvininejad, Abdelrahman Mohamed, Omer Levy, Ves Stoyanov e Luke Zettlemoyer.
  4. BARThez (da politecnico di ร‰cole) rilasciato con il paper BARThez: a Skilled Pretrained French Sequence-to-Sequence Model da Moussa Kamal Eddine, Antoine J.-P. Tixier, Michalis Vazirgiannis.
  5. BARTpho (da VinAI Research) rilasciato con il paper BARTpho: Pre-trained Sequence-to-Sequence Models for Vietnamese da Nguyen Luong Tran, Duong Minh Le e Dat Quoc Nguyen.
  6. BEiT (da Microsoft) rilasciato con il paper BEiT: BERT Pre-Training of Image Transformers da Hangbo Bao, Li Dong, Furu Wei.
  7. BERT (da Google) rilasciato con il paper BERT: Pre-training of Deep Bidirectional Transformers for Language Understanding da Jacob Devlin, Ming-Wei Chang, Kenton Lee e Kristina Toutanova.
  8. BERTweet (da VinAI Research) rilasciato con il paper BERTweet: A pre-trained language model for English Tweets da Dat Quoc Nguyen, Thanh Vu e Anh Tuan Nguyen.
  9. BERT For Sequence Generation (da Google) rilasciato con il paper Leveraging Pre-trained Checkpoints for Sequence Generation Tasks da Sascha Rothe, Shashi Narayan, Aliaksei Severyn.
  10. BigBird-RoBERTa (da Google Research) rilasciato con il paper Big Bird: Transformers for Longer Sequences da Manzil Zaheer, Guru Guruganesh, Avinava Dubey, Joshua Ainslie, Chris Alberti, Santiago Ontanon, Philip Pham, Anirudh Ravula, Qifan Wang, Li Yang, Amr Ahmed.
  11. BigBird-Pegasus (v Google Research) rilasciato con il paper Big Bird: Transformers for Longer Sequences da Manzil Zaheer, Guru Guruganesh, Avinava Dubey, Joshua Ainslie, Chris Alberti, Santiago Ontanon, Philip Pham, Anirudh Ravula, Qifan Wang, Li Yang, Amr Ahmed.
  12. Blenderbot (da Facebook) rilasciato con il paper Recipes for building an open-domain chatbot da Stephen Roller, Emily Dinan, Naman Goyal, Da Ju, Mary Williamson, Yinhan Liu, Jing Xu, Myle Ott, Kurt Shuster, Eric M. Smith, Y-Lan Boureau, Jason Weston.
  13. BlenderbotSmall (da Facebook) rilasciato con il paper Recipes for building an open-domain chatbot da Stephen Roller, Emily Dinan, Naman Goyal, Da Ju, Mary Williamson, Yinhan Liu, Jing Xu, Myle Ott, Kurt Shuster, Eric M. Smith, Y-Lan Boureau, Jason Weston.
  14. BORT (da Alexa) rilasciato con il paper Optimal Subarchitecture Extraction For BERT da Adrian de Wynter e Daniel J. Perry.
  15. ByT5 (da Google Research) rilasciato con il paper ByT5: Towards a token-free future with pre-trained byte-to-byte models da Linting Xue, Aditya Barua, Noah Constant, Rami Al-Rfou, Sharan Narang, Mihir Kale, Adam Roberts, Colin Raffel.
  16. CamemBERT (da Inria/Facebook/Sorbonne) rilasciato con il paper CamemBERT: a Tasty French Language Model da Louis Martin, Benjamin Muller, Pedro Javier Ortiz Suรกrez*, Yoann Dupont, Laurent Romary, ร‰ric Villemonte de la Clergerie, Djamรฉ Seddah e Benoรฎt Sagot.
  17. CANINE (da Google Research) rilasciato con il paper CANINE: Pre-training an Efficient Tokenization-Free Encoder for Language Representation da Jonathan H. Clark, Dan Garrette, Iulia Turc, John Wieting.
  18. ConvNeXT (da Facebook AI) rilasciato con il paper A ConvNet for the 2020s da Zhuang Liu, Hanzi Mao, Chao-Yuan Wu, Christoph Feichtenhofer, Trevor Darrell, Saining Xie.
  19. ConvNeXTV2 (da Facebook AI) rilasciato con il paper ConvNeXt V2: Co-designing and Scaling ConvNets with Masked Autoencoders da Sanghyun Woo, Shoubhik Debnath, Ronghang Hu, Xinlei Chen, Zhuang Liu, In So Kweon, Saining Xie.
  20. CLIP (da OpenAI) rilasciato con il paper Learning Transferable Visual Models From Natural Language Supervision da Alec Radford, Jong Wook Kim, Chris Hallacy, Aditya Ramesh, Gabriel Goh, Sandhini Agarwal, Girish Sastry, Amanda Askell, Pamela Mishkin, Jack Clark, Gretchen Krueger, Ilya Sutskever.
  21. ConvBERT (da YituTech) rilasciato con il paper ConvBERT: Improving BERT with Span-based Dynamic Convolution da Zihang Jiang, Weihao Yu, Daquan Zhou, Yunpeng Chen, Jiashi Feng, Shuicheng Yan.
  22. CPM (dalla Universitร  di Tsinghua) rilasciato con il paper CPM: A Large-scale Generative Chinese Pre-trained Language Model da Zhengyan Zhang, Xu Han, Hao Zhou, Pei Ke, Yuxian Gu, Deming Ye, Yujia Qin, Yusheng Su, Haozhe Ji, Jian Guan, Fanchao Qi, Xiaozhi Wang, Yanan Zheng, Guoyang Zeng, Huanqi Cao, Shengqi Chen, Daixuan Li, Zhenbo Sun, Zhiyuan Liu, Minlie Huang, Wentao Han, Jie Tang, Juanzi Li, Xiaoyan Zhu, Maosong Sun.
  23. CTRL (da Salesforce) rilasciato con il paper CTRL: A Conditional Transformer Language Model for Controllable Generation da Nitish Shirish Keskar, Bryan McCann, Lav R. Varshney, Caiming Xiong e Richard Socher.
  24. CvT (da Microsoft) rilasciato con il paper CvT: Introducing Convolutions to Vision Transformers da Haiping Wu, Bin Xiao, Noel Codella, Mengchen Liu, Xiyang Dai, Lu Yuan, Lei Zhang.
  25. Data2Vec (da Facebook) rilasciato con il paper Data2Vec: A General Framework for Self-supervised Learning in Speech, Vision and Language da Alexei Baevski, Wei-Ning Hsu, Qiantong Xu, Arun Babu, Jiatao Gu, Michael Auli.
  26. DeBERTa (da Microsoft) rilasciato con il paper DeBERTa: Decoding-enhanced BERT with Disentangled Attention da Pengcheng He, Xiaodong Liu, Jianfeng Gao, Weizhu Chen.
  27. DeBERTa-v2 (da Microsoft) rilasciato con il paper DeBERTa: Decoding-enhanced BERT with Disentangled Attention da Pengcheng He, Xiaodong Liu, Jianfeng Gao, Weizhu Chen.
  28. Decision Transformer (da Berkeley/Facebook/Google) rilasciato con il paper Decision Transformer: Reinforcement Learning via Sequence Modeling da Lili Chen, Kevin Lu, Aravind Rajeswaran, Kimin Lee, Aditya Grover, Michael Laskin, Pieter Abbeel, Aravind Srinivas, Igor Mordatch.
  29. DiT (da Microsoft Research) rilasciato con il paper DiT: Self-supervised Pre-training for Document Image Transformer da Junlong Li, Yiheng Xu, Tengchao Lv, Lei Cui, Cha Zhang, Furu Wei.
  30. DeiT (da Facebook) rilasciato con il paper Training data-efficient image transformers & distillation through attention da Hugo Touvron, Matthieu Cord, Matthijs Douze, Francisco Massa, Alexandre Sablayrolles, Hervรฉ Jรฉgou.
  31. DETR (da Facebook) rilasciato con il paper End-to-End Object Detection with Transformers da Nicolas Carion, Francisco Massa, Gabriel Synnaeve, Nicolas Usunier, Alexander Kirillov, Sergey Zagoruyko.
  32. DialoGPT (da Microsoft Research) rilasciato con il paper DialoGPT: Large-Scale Generative Pre-training for Conversational Response Generation da Yizhe Zhang, Siqi Sun, Michel Galley, Yen-Chun Chen, Chris Brockett, Xiang Gao, Jianfeng Gao, Jingjing Liu, Bill Dolan.
  33. DistilBERT (da HuggingFace), rilasciato assieme al paper DistilBERT, a distilled version of BERT: smaller, faster, cheaper and lighter da Victor Sanh, Lysandre Debut e Thomas Wolf. La stessa tecnica รจ stata applicata per comprimere GPT2 in DistilGPT2, RoBERTa in DistilRoBERTa, Multilingual BERT in DistilmBERT and a German version of DistilBERT.
  34. DPR (da Facebook) rilasciato con il paper Dense Passage Retrieval for Open-Domain Question Answering da Vladimir Karpukhin, Barlas OฤŸuz, Sewon Min, Patrick Lewis, Ledell Wu, Sergey Edunov, Danqi Chen, e Wen-tau Yih.
  35. DPT (da Intel Labs) rilasciato con il paper Vision Transformers for Dense Prediction da Renรฉ Ranftl, Alexey Bochkovskiy, Vladlen Koltun.
  36. EfficientNet (from Google Research) released with the paper EfficientNet: Rethinking Model Scaling for Convolutional Neural Networks by Mingxing Tan and Quoc V. Le.
  37. EncoderDecoder (da Google Research) rilasciato con il paper Leveraging Pre-trained Checkpoints for Sequence Generation Tasks da Sascha Rothe, Shashi Narayan, Aliaksei Severyn.
  38. ELECTRA (da Google Research/Stanford University) rilasciato con il paper ELECTRA: Pre-training text encoders as discriminators rather than generators da Kevin Clark, Minh-Thang Luong, Quoc V. Le, Christopher D. Manning.
  39. FlauBERT (da CNRS) rilasciato con il paper FlauBERT: Unsupervised Language Model Pre-training for French da Hang Le, Loรฏc Vial, Jibril Frej, Vincent Segonne, Maximin Coavoux, Benjamin Lecouteux, Alexandre Allauzen, Benoรฎt Crabbรฉ, Laurent Besacier, Didier Schwab.
  40. FLAVA (da Facebook AI) rilasciato con il paper FLAVA: A Foundational Language And Vision Alignment Model da Amanpreet Singh, Ronghang Hu, Vedanuj Goswami, Guillaume Couairon, Wojciech Galuba, Marcus Rohrbach, e Douwe Kiela.
  41. FNet (da Google Research) rilasciato con il paper FNet: Mixing Tokens with Fourier Transforms da James Lee-Thorp, Joshua Ainslie, Ilya Eckstein, Santiago Ontanon.
  42. Funnel Transformer (da CMU/Google Brain) rilasciato con il paper Funnel-Transformer: Filtering out Sequential Redundancy for Efficient Language Processing da Zihang Dai, Guokun Lai, Yiming Yang, Quoc V. Le.
  43. GLPN (da KAIST) rilasciato con il paper Global-Local Path Networks for Monocular Depth Estimation with Vertical CutDepth da Doyeon Kim, Woonghyun Ga, Pyungwhan Ahn, Donggyu Joo, Sehwan Chun, Junmo Kim.
  44. GPT (da OpenAI) rilasciato con il paper Improving Language Understanding by Generative Pre-Training da Alec Radford, Karthik Narasimhan, Tim Salimans e Ilya Sutskever.
  45. GPT-2 (da OpenAI) rilasciato con il paper Language Models are Unsupervised Multitask Learners da Alec Radford, Jeffrey Wu, Rewon Child, David Luan, Dario Amodei e Ilya Sutskever.
  46. GPT-J (da EleutherAI) rilasciato nel repository kingoflolz/mesh-transformer-jax da Ben Wang e Aran Komatsuzaki.
  47. GPT Neo (da EleutherAI) rilasciato nel repository EleutherAI/gpt-neo da Sid Black, Stella Biderman, Leo Gao, Phil Wang e Connor Leahy.
  48. GPT NeoX (da EleutherAI) rilasciato con il paper GPT-NeoX-20B: An Open-Source Autoregressive Language Model da Sid Black, Stella Biderman, Eric Hallahan, Quentin Anthony, Leo Gao, Laurence Golding, Horace He, Connor Leahy, Kyle McDonell, Jason Phang, Michael Pieler, USVSN Sai Prashanth, Shivanshu Purohit, Laria Reynolds, Jonathan Tow, Ben Wang, Samuel Weinbach
  49. Hubert (da Facebook) rilasciato con il paper HuBERT: Self-Supervised Speech Representation Learning by Masked Prediction of Hidden Units da Wei-Ning Hsu, Benjamin Bolte, Yao-Hung Hubert Tsai, Kushal Lakhotia, Ruslan Salakhutdinov, Abdelrahman Mohamed.
  50. I-BERT (da Berkeley) rilasciato con il paper I-BERT: Integer-only BERT Quantization da Sehoon Kim, Amir Gholami, Zhewei Yao, Michael W. Mahoney, Kurt Keutzer.
  51. ImageGPT (da OpenAI) rilasciato con il paper Generative Pretraining from Pixels da Mark Chen, Alec Radford, Rewon Child, Jeffrey Wu, Heewoo Jun, David Luan, Ilya Sutskever.
  52. LayoutLM (da Microsoft Research Asia) rilasciato con il paper LayoutLM: Pre-training of Text and Layout for Document Image Understanding da Yiheng Xu, Minghao Li, Lei Cui, Shaohan Huang, Furu Wei, Ming Zhou.
  53. LayoutLMv2 (da Microsoft Research Asia) rilasciato con il paper LayoutLMv2: Multi-modal Pre-training for Visually-Rich Document Understanding da Yang Xu, Yiheng Xu, Tengchao Lv, Lei Cui, Furu Wei, Guoxin Wang, Yijuan Lu, Dinei Florencio, Cha Zhang, Wanxiang Che, Min Zhang, Lidong Zhou.
  54. LayoutLMv3 (da Microsoft Research Asia) rilasciato con il paper LayoutLMv3: Pre-training for Document AI with Unified Text and Image Masking da Yupan Huang, Tengchao Lv, Lei Cui, Yutong Lu, Furu Wei.
  55. LayoutXLM (da Microsoft Research Asia) rilasciato con il paper LayoutXLM: Multimodal Pre-training for Multilingual Visually-rich Document Understanding da Yiheng Xu, Tengchao Lv, Lei Cui, Guoxin Wang, Yijuan Lu, Dinei Florencio, Cha Zhang, Furu Wei.
  56. LED (da AllenAI) rilasciato con il paper Longformer: The Long-Document Transformer da Iz Beltagy, Matthew E. Peters, Arman Cohan.
  57. Longformer (da AllenAI) rilasciato con il paper Longformer: The Long-Document Transformer da Iz Beltagy, Matthew E. Peters, Arman Cohan.
  58. LUKE (da Studio Ousia) rilasciato con il paper LUKE: Deep Contextualized Entity Representations with Entity-aware Self-attention da Ikuya Yamada, Akari Asai, Hiroyuki Shindo, Hideaki Takeda, Yuji Matsumoto.
  59. mLUKE (da Studio Ousia) rilasciato con il paper mLUKE: The Power of Entity Representations in Multilingual Pretrained Language Models da Ryokan Ri, Ikuya Yamada, e Yoshimasa Tsuruoka.
  60. LXMERT (da UNC Chapel Hill) rilasciato con il paper LXMERT: Learning Cross-Modality Encoder Representations from Transformers for Open-Domain Question Answering da Hao Tan e Mohit Bansal.
  61. M2M100 (da Facebook) rilasciato con il paper Beyond English-Centric Multilingual Machine Translation da Angela Fan, Shruti Bhosale, Holger Schwenk, Zhiyi Ma, Ahmed El-Kishky, Siddharth Goyal, Mandeep Baines, Onur Celebi, Guillaume Wenzek, Vishrav Chaudhary, Naman Goyal, Tom Birch, Vitaliy Liptchinsky, Sergey Edunov, Edouard Grave, Michael Auli, Armand Joulin.
  62. MarianMT Modello di machine learning per le traduzioni allenato utilizzando i dati OPUS di Jรถrg Tiedemann. Il Framework Marian รจ stato sviluppato dal Microsoft Translator Team.
  63. Mask2Former (da FAIR e UIUC) rilasciato con il paper Masked-attention Mask Transformer for Universal Image Segmentation da Bowen Cheng, Ishan Misra, Alexander G. Schwing, Alexander Kirillov, Rohit Girdhar.
  64. MaskFormer (da Meta e UIUC) rilasciato con il paper Per-Pixel Classification is Not All You Need for Semantic Segmentation da Bowen Cheng, Alexander G. Schwing, Alexander Kirillov.
  65. MBart (da Facebook) rilasciato con il paper Multilingual Denoising Pre-training for Neural Machine Translation da Yinhan Liu, Jiatao Gu, Naman Goyal, Xian Li, Sergey Edunov, Marjan Ghazvininejad, Mike Lewis, Luke Zettlemoyer.
  66. MBart-50 (da Facebook) rilasciato con il paper Multilingual Translation with Extensible Multilingual Pretraining and Finetuning da Yuqing Tang, Chau Tran, Xian Li, Peng-Jen Chen, Naman Goyal, Vishrav Chaudhary, Jiatao Gu, Angela Fan.
  67. Megatron-BERT (da NVIDIA) rilasciato con il paper Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelism da Mohammad Shoeybi, Mostofa Patwary, Raul Puri, Patrick LeGresley, Jared Casper e Bryan Catanzaro.
  68. Megatron-GPT2 (da NVIDIA) rilasciato con il paper Megatron-LM: Training Multi-Billion Parameter Language Models Using Model Parallelism da Mohammad Shoeybi, Mostofa Patwary, Raul Puri, Patrick LeGresley, Jared Casper e Bryan Catanzaro.
  69. MPNet (da Microsoft Research) rilasciato con il paper MPNet: Masked and Permuted Pre-training for Language Understanding da Kaitao Song, Xu Tan, Tao Qin, Jianfeng Lu, Tie-Yan Liu.
  70. MT5 (da Google AI) rilasciato con il paper mT5: A massively multilingual pre-trained text-to-text transformer da Linting Xue, Noah Constant, Adam Roberts, Mihir Kale, Rami Al-Rfou, Aditya Siddhant, Aditya Barua, Colin Raffel.
  71. Nystrรถmformer (dalla Universitร  del Wisconsin - Madison) rilasciato con il paper Nystrรถmformer: A Nystrรถm-Based Algorithm for Approximating Self-Attention da Yunyang Xiong, Zhanpeng Zeng, Rudrasis Chakraborty, Mingxing Tan, Glenn Fung, Yin Li, Vikas Singh.
  72. OneFormer (da SHI Labs) rilasciato con il paper OneFormer: One Transformer to Rule Universal Image Segmentation da Jitesh Jain, Jiachen Li, MangTik Chiu, Ali Hassani, Nikita Orlov, Humphrey Shi.
  73. OPT (da Meta AI) rilasciato con il paper OPT: Open Pre-trained Transformer Language Models da Susan Zhang, Stephen Roller, Naman Goyal, Mikel Artetxe, Moya Chen, Shuohui Chen et al.
  74. Pegasus (da Google) rilasciato con il paper PEGASUS: Pre-training with Extracted Gap-sentences for Abstractive Summarization da Jingqing Zhang, Yao Zhao, Mohammad Saleh e Peter J. Liu.
  75. Perceiver IO (da Deepmind) rilasciato con il paper Perceiver IO: A General Architecture for Structured Inputs & Outputs da Andrew Jaegle, Sebastian Borgeaud, Jean-Baptiste Alayrac, Carl Doersch, Catalin Ionescu, David Ding, Skanda Koppula, Daniel Zoran, Andrew Brock, Evan Shelhamer, Olivier Hรฉnaff, Matthew M. Botvinick, Andrew Zisserman, Oriol Vinyals, Joรฃo Carreira.
  76. PhoBERT (da VinAI Research) rilasciato con il paper PhoBERT: Pre-trained language models for Vietnamese da Dat Quoc Nguyen e Anh Tuan Nguyen.
  77. PLBart (da UCLA NLP) rilasciato con il paper Unified Pre-training for Program Understanding and Generation da Wasi Uddin Ahmad, Saikat Chakraborty, Baishakhi Ray, Kai-Wei Chang.
  78. PoolFormer (da Sea AI Labs) rilasciato con il paper MetaFormer is Actually What You Need for Vision da Yu, Weihao e Luo, Mi e Zhou, Pan e Si, Chenyang e Zhou, Yichen e Wang, Xinchao e Feng, Jiashi e Yan, Shuicheng.
  79. ProphetNet (da Microsoft Research) rilasciato con il paper ProphetNet: Predicting Future N-gram for Sequence-to-Sequence Pre-training da Yu Yan, Weizhen Qi, Yeyun Gong, Dayiheng Liu, Nan Duan, Jiusheng Chen, Ruofei Zhang e Ming Zhou.
  80. QDQBert (da NVIDIA) rilasciato con il paper Integer Quantization for Deep Learning Inference: Principles and Empirical Evaluation da Hao Wu, Patrick Judd, Xiaojie Zhang, Mikhail Isaev e Paulius Micikevicius.
  81. REALM (da Google Research) rilasciato con il paper REALM: Retrieval-Augmented Language Model Pre-Training da Kelvin Guu, Kenton Lee, Zora Tung, Panupong Pasupat e Ming-Wei Chang.
  82. Reformer (da Google Research) rilasciato con il paper Reformer: The Efficient Transformer da Nikita Kitaev, ลukasz Kaiser, Anselm Levskaya.
  83. RemBERT (da Google Research) rilasciato con il paper Rethinking embedding coupling in pre-trained language models da Hyung Won Chung, Thibault Fรฉvry, Henry Tsai, M. Johnson, Sebastian Ruder.
  84. RegNet (da META Platforms) rilasciato con il paper Designing Network Design Space da Ilija Radosavovic, Raj Prateek Kosaraju, Ross Girshick, Kaiming He, Piotr Dollรกr.
  85. ResNet (da Microsoft Research) rilasciato con il paper Deep Residual Learning for Image Recognition da Kaiming He, Xiangyu Zhang, Shaoqing Ren, Jian Sun.
  86. RoBERTa (da Facebook), rilasciato assieme al paper RoBERTa: A Robustly Optimized BERT Pretraining Approach da Yinhan Liu, Myle Ott, Naman Goyal, Jingfei Du, Mandar Joshi, Danqi Chen, Omer Levy, Mike Lewis, Luke Zettlemoyer, Veselin Stoyanov.
  87. RoFormer (da ZhuiyiTechnology), rilasciato assieme al paper RoFormer: Enhanced Transformer with Rotary Position Embedding da Jianlin Su e Yu Lu e Shengfeng Pan e Bo Wen e Yunfeng Liu.
  88. SegFormer (da NVIDIA) rilasciato con il paper SegFormer: Simple and Efficient Design for Semantic Segmentation with Transformers da Enze Xie, Wenhai Wang, Zhiding Yu, Anima Anandkumar, Jose M. Alvarez, Ping Luo.
  89. SEW (da ASAPP) rilasciato con il paper Performance-Efficiency Trade-offs in Unsupervised Pre-training for Speech Recognition da Felix Wu, Kwangyoun Kim, Jing Pan, Kyu Han, Kilian Q. Weinberger, Yoav Artzi.
  90. SEW-D (da ASAPP) rilasciato con il paper Performance-Efficiency Trade-offs in Unsupervised Pre-training for Speech Recognition da Felix Wu, Kwangyoun Kim, Jing Pan, Kyu Han, Kilian Q. Weinberger, Yoav Artzi.
  91. SpeechToTextTransformer (da Facebook), rilasciato assieme al paper fairseq S2T: Fast Speech-to-Text Modeling with fairseq da Changhan Wang, Yun Tang, Xutai Ma, Anne Wu, Dmytro Okhonko, Juan Pino.
  92. SpeechToTextTransformer2 (da Facebook), rilasciato assieme al paper Large-Scale Self- and Semi-Supervised Learning for Speech Translation da Changhan Wang, Anne Wu, Juan Pino, Alexei Baevski, Michael Auli, Alexis Conneau.
  93. Splinter (dalla Universitร  di Tel Aviv), rilasciato assieme al paper Few-Shot Question Answering by Pretraining Span Selection da Ori Ram, Yuval Kirstain, Jonathan Berant, Amir Globerson, Omer Levy.
  94. SqueezeBert (da Berkeley) rilasciato con il paper SqueezeBERT: What can computer vision teach NLP about efficient neural networks? da Forrest N. Iandola, Albert E. Shaw, Ravi Krishna, e Kurt W. Keutzer.
  95. Swin Transformer (da Microsoft) rilasciato con il paper Swin Transformer: Hierarchical Vision Transformer using Shifted Windows da Ze Liu, Yutong Lin, Yue Cao, Han Hu, Yixuan Wei, Zheng Zhang, Stephen Lin, Baining Guo.
  96. T5 (da Google AI) rilasciato con il paper Exploring the Limits of Transfer Learning with a Unified Text-to-Text Transformer da Colin Raffel e Noam Shazeer e Adam Roberts e Katherine Lee e Sharan Narang e Michael Matena e Yanqi Zhou e Wei Li e Peter J. Liu.
  97. T5v1.1 (da Google AI) rilasciato nel repository google-research/text-to-text-transfer-transformer da Colin Raffel e Noam Shazeer e Adam Roberts e Katherine Lee e Sharan Narang e Michael Matena e Yanqi Zhou e Wei Li e Peter J. Liu.
  98. TAPAS (da Google AI) rilasciato con il paper TAPAS: Weakly Supervised Table Parsing via Pre-training da Jonathan Herzig, Paweล‚ Krzysztof Nowak, Thomas Mรผller, Francesco Piccinno e Julian Martin Eisenschlos.
  99. TAPEX (da Microsoft Research) rilasciato con il paper TAPEX: Table Pre-training via Learning a Neural SQL Executor da Qian Liu, Bei Chen, Jiaqi Guo, Morteza Ziyadi, Zeqi Lin, Weizhu Chen, Jian-Guang Lou.
  100. Trajectory Transformer (dallโ€™Universitร  della California a Berkeley) rilasciato con il paper Offline Reinforcement Learning as One Big Sequence Modeling Problem da Michael Janner, Qiyang Li, Sergey Levine
  101. Transformer-XL (da Google/CMU) rilasciato con il paper Transformer-XL: Attentive Language Models Beyond a Fixed-Length Context da Zihang Dai, Zhilin Yang, Yiming Yang, Jaime Carbonell, Quoc V. Le, Ruslan Salakhutdinov.
  102. TrOCR (da Microsoft), rilasciato assieme al paper TrOCR: Transformer-based Optical Character Recognition with Pre-trained Models da Minghao Li, Tengchao Lv, Lei Cui, Yijuan Lu, Dinei Florencio, Cha Zhang, Zhoujun Li, Furu Wei.
  103. UniSpeech (da Microsoft Research) rilasciato con il paper UniSpeech: Unified Speech Representation Learning with Labeled and Unlabeled Data da Chengyi Wang, Yu Wu, Yao Qian, Kenichi Kumatani, Shujie Liu, Furu Wei, Michael Zeng, Xuedong Huang.
  104. UniSpeechSat (da Microsoft Research) rilasciato con il paper UNISPEECH-SAT: UNIVERSAL SPEECH REPRESENTATION LEARNING WITH SPEAKER AWARE PRE-TRAINING da Sanyuan Chen, Yu Wu, Chengyi Wang, Zhengyang Chen, Zhuo Chen, Shujie Liu, Jian Wu, Yao Qian, Furu Wei, Jinyu Li, Xiangzhan Yu.
  105. VAN (dalle Universitร  di Tsinghua e Nankai) rilasciato con il paper Visual Attention Network da Meng-Hao Guo, Cheng-Ze Lu, Zheng-Ning Liu, Ming-Ming Cheng, Shi-Min Hu.
  106. ViLT (da NAVER AI Lab/Kakao Enterprise/Kakao Brain) rilasciato con il paper ViLT: Vision-and-Language Transformer Without Convolution or Region Supervision da Wonjae Kim, Bokyung Son, Ildoo Kim.
  107. Vision Transformer (ViT) (da Google AI) rilasciato con il paper An Image is Worth 16x16 Words: Transformers for Image Recognition at Scale da Alexey Dosovitskiy, Lucas Beyer, Alexander Kolesnikov, Dirk Weissenborn, Xiaohua Zhai, Thomas Unterthiner, Mostafa Dehghani, Matthias Minderer, Georg Heigold, Sylvain Gelly, Jakob Uszkoreit, Neil Houlsby.
  108. ViTMAE (da Meta AI) rilasciato con il paper Masked Autoencoders Are Scalable Vision Learners da Kaiming He, Xinlei Chen, Saining Xie, Yanghao Li, Piotr Dollรกr, Ross Girshick.
  109. VisualBERT (da UCLA NLP) rilasciato con il paper VisualBERT: A Simple and Performant Baseline for Vision and Language da Liunian Harold Li, Mark Yatskar, Da Yin, Cho-Jui Hsieh, Kai-Wei Chang.
  110. WavLM (da Microsoft Research) rilasciato con il paper WavLM: Large-Scale Self-Supervised Pre-Training for Full Stack Speech Processing da Sanyuan Chen, Chengyi Wang, Zhengyang Chen, Yu Wu, Shujie Liu, Zhuo Chen, Jinyu Li, Naoyuki Kanda, Takuya Yoshioka, Xiong Xiao, Jian Wu, Long Zhou, Shuo Ren, Yanmin Qian, Yao Qian, Jian Wu, Michael Zeng, Furu Wei.
  111. Wav2Vec2 (da Facebook AI) rilasciato con il paper wav2vec 2.0: A Framework for Self-Supervised Learning of Speech Representations da Alexei Baevski, Henry Zhou, Abdelrahman Mohamed, Michael Auli.
  112. Wav2Vec2Phoneme (da Facebook AI) rilasciato con il paper Simple and Effective Zero-shot Cross-lingual Phoneme Recognition da Qiantong Xu, Alexei Baevski, Michael Auli.
  113. XGLM (da Facebook AI) rilasciato con il paper Few-shot Learning with Multilingual Language Models da Xi Victoria Lin, Todor Mihaylov, Mikel Artetxe, Tianlu Wang, Shuohui Chen, Daniel Simig, Myle Ott, Naman Goyal, Shruti Bhosale, Jingfei Du, Ramakanth Pasunuru, Sam Shleifer, Punit Singh Koura, Vishrav Chaudhary, Brian Oโ€™Horo, Jeff Wang, Luke Zettlemoyer, Zornitsa Kozareva, Mona Diab, Veselin Stoyanov, Xian Li.
  114. XLM (v Facebook) rilasciato assieme al paper Cross-lingual Language Model Pretraining da Guillaume Lample e Alexis Conneau.
  115. XLM-ProphetNet (da Microsoft Research) rilasciato con il paper ProphetNet: Predicting Future N-gram for Sequence-to-Sequence Pre-training da Yu Yan, Weizhen Qi, Yeyun Gong, Dayiheng Liu, Nan Duan, Jiusheng Chen, Ruofei Zhang e Ming Zhou.
  116. XLM-RoBERTa (da Facebook AI), rilasciato assieme al paper Unsupervised Cross-lingual Representation Learning at Scale da Alexis Conneau, Kartikay Khandelwal, Naman Goyal, Vishrav Chaudhary, Guillaume Wenzek, Francisco Guzmรกn, Edouard Grave, Myle Ott, Luke Zettlemoyer e Veselin Stoyanov.
  117. XLM-RoBERTa-XL (da Facebook AI), rilasciato assieme al paper Larger-Scale Transformers for Multilingual Masked Language Modeling da Naman Goyal, Jingfei Du, Myle Ott, Giri Anantharaman, Alexis Conneau.
  118. XLNet (da Google/CMU) rilasciato con il paper โ€‹XLNet: Generalized Autoregressive Pretraining for Language Understanding da Zhilin Yang, Zihang Dai, Yiming Yang, Jaime Carbonell, Ruslan Salakhutdinov, Quoc V. Le.
  119. XLSR-Wav2Vec2 (da Facebook AI) rilasciato con il paper Unsupervised Cross-Lingual Representation Learning For Speech Recognition da Alexis Conneau, Alexei Baevski, Ronan Collobert, Abdelrahman Mohamed, Michael Auli.
  120. XLS-R (da Facebook AI) rilasciato con il paper XLS-R: Self-supervised Cross-lingual Speech Representation Learning at Scale da Arun Babu, Changhan Wang, Andros Tjandra, Kushal Lakhotia, Qiantong Xu, Naman Goyal, Kritika Singh, Patrick von Platen, Yatharth Saraf, Juan Pino, Alexei Baevski, Alexis Conneau, Michael Auli.
  121. YOLOS (dalla Universitร  della scienza e tecnologia di Huazhong) rilasciato con il paper You Only Look at One Sequence: Rethinking Transformer in Vision through Object Detection da Yuxin Fang, Bencheng Liao, Xinggang Wang, Jiemin Fang, Jiyang Qi, Rui Wu, Jianwei Niu, Wenyu Liu.
  122. YOSO (dallโ€™Universitร  del Wisconsin - Madison) rilasciato con il paper You Only Sample (Almost) Once: Linear Cost Self-Attention Via Bernoulli Sampling da Zhanpeng Zeng, Yunyang Xiong, Sathya N. Ravi, Shailesh Acharya, Glenn Fung, Vikas Singh.

Framework supportati

La tabella seguente rappresenta il supporto attuale nella libreria per ognuno di questi modelli, si puรฒ identificare se questi hanno un Python tokenizer (chiamato โ€œslowโ€). Un tokenizer โ€œfastโ€ supportato dalla libreria ๐Ÿค— Tokenizers, e se hanno supporto in Jax (via Flax), PyTorch, e/o TensorFlow.

Model Tokenizer slow Tokenizer fast PyTorch support TensorFlow support Flax Support
ALBERT โœ… โœ… โœ… โœ… โœ…
BART โœ… โœ… โœ… โœ… โœ…
BEiT โŒ โŒ โœ… โŒ โœ…
BERT โœ… โœ… โœ… โœ… โœ…
Bert Generation โœ… โŒ โœ… โŒ โŒ
BigBird โœ… โœ… โœ… โŒ โœ…
BigBirdPegasus โŒ โŒ โœ… โŒ โŒ
Blenderbot โœ… โœ… โœ… โœ… โœ…
BlenderbotSmall โœ… โœ… โœ… โœ… โœ…
CamemBERT โœ… โœ… โœ… โœ… โŒ
Canine โœ… โŒ โœ… โŒ โŒ
CLIP โœ… โœ… โœ… โœ… โœ…
ConvBERT โœ… โœ… โœ… โœ… โŒ
ConvNext โŒ โŒ โœ… โœ… โŒ
CTRL โœ… โŒ โœ… โœ… โŒ
CvT โŒ โŒ โœ… โŒ โŒ
Data2VecAudio โŒ โŒ โœ… โŒ โŒ
Data2VecText โŒ โŒ โœ… โŒ โŒ
Data2VecVision โŒ โŒ โœ… โœ… โŒ
DeBERTa โœ… โœ… โœ… โœ… โŒ
DeBERTa-v2 โœ… โœ… โœ… โœ… โŒ
Decision Transformer โŒ โŒ โœ… โŒ โŒ
DeiT โŒ โŒ โœ… โŒ โŒ
DETR โŒ โŒ โœ… โŒ โŒ
DistilBERT โœ… โœ… โœ… โœ… โœ…
DPR โœ… โœ… โœ… โœ… โŒ
DPT โŒ โŒ โœ… โŒ โŒ
ELECTRA โœ… โœ… โœ… โœ… โœ…
Encoder decoder โŒ โŒ โœ… โœ… โœ…
FairSeq Machine-Translation โœ… โŒ โœ… โŒ โŒ
FlauBERT โœ… โŒ โœ… โœ… โŒ
Flava โŒ โŒ โœ… โŒ โŒ
FNet โœ… โœ… โœ… โŒ โŒ
Funnel Transformer โœ… โœ… โœ… โœ… โŒ
GLPN โŒ โŒ โœ… โŒ โŒ
GPT Neo โŒ โŒ โœ… โŒ โœ…
GPT NeoX โŒ โœ… โœ… โŒ โŒ
GPT-J โŒ โŒ โœ… โœ… โœ…
Hubert โŒ โŒ โœ… โœ… โŒ
I-BERT โŒ โŒ โœ… โŒ โŒ
ImageGPT โŒ โŒ โœ… โŒ โŒ
LayoutLM โœ… โœ… โœ… โœ… โŒ
LayoutLMv2 โœ… โœ… โœ… โŒ โŒ
LayoutLMv3 โœ… โœ… โœ… โœ… โŒ
LED โœ… โœ… โœ… โœ… โŒ
Longformer โœ… โœ… โœ… โœ… โŒ
LUKE โœ… โŒ โœ… โŒ โŒ
LXMERT โœ… โœ… โœ… โœ… โŒ
M2M100 โœ… โŒ โœ… โŒ โŒ
Marian โœ… โŒ โœ… โœ… โœ…
MaskFormer โŒ โŒ โœ… โŒ โŒ
mBART โœ… โœ… โœ… โœ… โœ…
MegatronBert โŒ โŒ โœ… โŒ โŒ
MobileBERT โœ… โœ… โœ… โœ… โŒ
MPNet โœ… โœ… โœ… โœ… โŒ
mT5 โœ… โœ… โœ… โœ… โœ…
Nystromformer โŒ โŒ โœ… โŒ โŒ
OpenAI GPT โœ… โœ… โœ… โœ… โŒ
OpenAI GPT-2 โœ… โœ… โœ… โœ… โœ…
OPT โŒ โŒ โœ… โŒ โŒ
Pegasus โœ… โœ… โœ… โœ… โœ…
Perceiver โœ… โŒ โœ… โŒ โŒ
PLBart โœ… โŒ โœ… โŒ โŒ
PoolFormer โŒ โŒ โœ… โŒ โŒ
ProphetNet โœ… โŒ โœ… โŒ โŒ
QDQBert โŒ โŒ โœ… โŒ โŒ
RAG โœ… โŒ โœ… โœ… โŒ
Realm โœ… โœ… โœ… โŒ โŒ
Reformer โœ… โœ… โœ… โŒ โŒ
RegNet โŒ โŒ โœ… โœ… โœ…
RemBERT โœ… โœ… โœ… โœ… โŒ
ResNet โŒ โŒ โœ… โœ… โœ…
RetriBERT โœ… โœ… โœ… โŒ โŒ
RoBERTa โœ… โœ… โœ… โœ… โœ…
RoFormer โœ… โœ… โœ… โœ… โœ…
SegFormer โŒ โŒ โœ… โŒ โŒ
SEW โŒ โŒ โœ… โŒ โŒ
SEW-D โŒ โŒ โœ… โŒ โŒ
Speech Encoder decoder โŒ โŒ โœ… โŒ โœ…
Speech2Text โœ… โŒ โœ… โœ… โŒ
Speech2Text2 โœ… โŒ โŒ โŒ โŒ
Splinter โœ… โœ… โœ… โŒ โŒ
SqueezeBERT โœ… โœ… โœ… โŒ โŒ
Swin โŒ โŒ โœ… โœ… โŒ
T5 โœ… โœ… โœ… โœ… โœ…
TAPAS โœ… โŒ โœ… โœ… โŒ
Trajectory Transformer โŒ โŒ โœ… โŒ โŒ
Transformer-XL โœ… โŒ โœ… โœ… โŒ
TrOCR โŒ โŒ โœ… โŒ โŒ
UniSpeech โŒ โŒ โœ… โŒ โŒ
UniSpeechSat โŒ โŒ โœ… โŒ โŒ
VAN โŒ โŒ โœ… โŒ โŒ
ViLT โŒ โŒ โœ… โŒ โŒ
Vision Encoder decoder โŒ โŒ โœ… โœ… โœ…
VisionTextDualEncoder โŒ โŒ โœ… โŒ โœ…
VisualBert โŒ โŒ โœ… โŒ โŒ
ViT โŒ โŒ โœ… โœ… โœ…
ViTMAE โŒ โŒ โœ… โœ… โŒ
Wav2Vec2 โœ… โŒ โœ… โœ… โœ…
Wav2Vec2-Conformer โŒ โŒ โœ… โŒ โŒ
WavLM โŒ โŒ โœ… โŒ โŒ
XGLM โœ… โœ… โœ… โŒ โœ…
XLM โœ… โŒ โœ… โœ… โŒ
XLM-RoBERTa โœ… โœ… โœ… โœ… โœ…
XLM-RoBERTa-XL โŒ โŒ โœ… โŒ โŒ
XLMProphetNet โœ… โŒ โœ… โŒ โŒ
XLNet โœ… โœ… โœ… โœ… โŒ
YOLOS โŒ โŒ โœ… โŒ โŒ
YOSO โŒ โŒ โœ… โŒ โŒ
< > Update on GitHub