2-Using_Transformers-6-Basic_usage_completed
中英文对照学习,效果更佳!
原课程链接:https://huggingface.co/course/chapter2/7?fw=pt
Basic usage completed!
基本用法完成!
问一个问题
Great job following the course up to here! To recap, in this chapter you:
沿着这条路线走到这里真是太棒了!简而言之,在本章中,您可以:
- Learned the basic building blocks of a Transformer model.
- Learned what makes up a tokenization pipeline.
- Saw how to use a Transformer model in practice.
- Learned how to leverage a tokenizer to convert text to tensors that are understandable by the model.
- Set up a tokenizer and a model together to get from text to predictions.
- Learned the limitations of input IDs, and learned about attention masks.
- Played around with versatile and configurable tokenizer methods.
From now on, you should be able to freely navigate the 🤗 Transformers docs: the vocabulary will sound familiar, and you’ve already seen the methods that you’ll use the majority of the time.
学习了Transformer模型的基本构建块。了解了什么构成了令牌化管道。了解了如何在实践中使用Transformer模型。了解了如何利用令牌化器将文本转换为模型可理解的张量。一起设置令牌化器和模型以将文本转换为预测。了解了输入ID的限制,并了解了注意掩码。使用多功能和可配置的令牌化器方法。从现在开始,您应该能够自由地导航🤗Transformers文档:词汇表听起来很熟悉,而且您已经看到了欧元™™将在大部分时间使用的方法。
