3-Fine-tuning_a_pretrained_model-0-Introduction
中英文对照学习,效果更佳!
原课程链接:https://huggingface.co/course/chapter3/1?fw=pt
Introduction
引言
问一个问题
In [Chapter 2] we explored how to use tokenizers and pretrained models to make predictions. But what if you want to fine-tune a pretrained model for your own dataset? That’s the topic of this chapter! You will learn:
在第二章中,我们探索了如何使用标记器和预先训练的模型来进行预测。但是,如果您想为您自己的数据集微调一个预先训练好的模型,该怎么办呢?这就是本章的主题–™!您将了解到:
- How to prepare a large dataset from the Hub
- How to use the high-level
TrainerAPI to fine-tune a model - How to use a custom training loop
- How to leverage the 🤗 Accelerate library to easily run that custom training loop on any distributed setup
In order to upload your trained checkpoints to the Hugging Face Hub, you will need a huggingface.co account: create an account
如何从中心准备大型数据集如何使用高级TraineAPI微调模型如何使用自定义训练循环如何利用🤗Accelerate库在任何分布式设置上轻松运行自定义训练循环要将训练过的检查点上传到Hugging Face中心,您需要一个HuggingFace。co帐户:创建帐户
