LLM 课程文档
无评分测验
加入 Hugging Face 社区
并获得增强的文档体验
开始使用
无评分测验
到目前为止,本章已经涵盖了很多内容!如果您没有掌握所有细节,请不要担心,但现在可以通过测验来回顾一下您目前所学的内容。
本测验不计分,您可以根据需要多次尝试。如果您在某些问题上遇到困难,请按照提示重新学习相关材料。在认证考试中,您将再次接受这些材料的测验。
1. 探索 Hub 并查找 roberta-large-mnli checkpoint。它执行什么任务?
2. 以下代码将返回什么?
from transformers import pipeline
ner = pipeline("ner", grouped_entities=True)
ner("My name is Sylvain and I work at Hugging Face in Brooklyn.")
3. 此代码示例中的 … 应替换为什么?
from transformers import pipeline
filler = pipeline("fill-mask", model="bert-base-cased")
result = filler("...")
4. 这段代码为什么会失败?
from transformers import pipeline
classifier = pipeline("zero-shot-classification")
result = classifier("This is a course about the Transformers library")