4-Sharing_models_and_tokenizers-5-End-of-chapter_quiz

中英文对照学习,效果更佳!
原课程链接:https://huggingface.co/course/chapter4/6?fw=pt

End-of-chapter quiz

章末测验

Ask a Question

问一个问题

Let’s test what you learned in this chapter!

让我们来测试一下你在这一章中学到的东西–™!

  1. What are models on the Hub limited to?

Models from the 🤗 Transformers library.

集线器上的模型仅限于什么?来自🤗Transformer资料库的模型。

All models with a similar interface to 🤗 Transformers.

所有型号都具有与🤗Transformer相似的界面。

There are no limits.

这是没有限制的。

Models that are in some way related to NLP.

在某种程度上与NLP相关的车型。

  1. How can you manage models on the Hub?

Through a GCP account.

如何在Hub上管理模型?通过GCP帐户。

Through peer-to-peer distribution.

通过点对点分发。

Through git and git-lfs.

通过Git和Git-LFS。

  1. What can you do using the Hugging Face Hub web interface?

Fork an existing repository.

你可以使用Hugging Face中心的网络界面做什么?创建一个现有的存储库。

Create a new model repository.

创建一个新的模型存储库。

Manage and edit files.

管理和编辑文件。

Upload files.

上传文件。

See diffs across versions.

请参阅不同版本之间的差异。

  1. What is a model card?

A rough description of the model, therefore less important than the model and tokenizer files.

什么是模型卡?模型的粗略描述,因此不如模型和标记器文件重要。

A way to ensure reproducibility, reusability, and fairness.

一种确保可重复性、可重用性和公平性的方法。

A Python file that can be run to retrieve information about the model.

可运行以检索有关模型的信息的Python文件。

  1. Which of these objects of the 🤗 Transformers library can be directly shared on the Hub with push_to_hub()?

A tokenizer

🤗Transformer库中的哪些对象可以通过PUSH_TO_HUB()在集线器上直接共享?

A model configuration

型号配置

A model

一位模特

A Trainer

训练师

  1. What is the first step when using the push_to_hub() method or the CLI tools?

Log in on the website.

使用Push_to_Hub()方法或CLI工具的第一步是什么?登录网站。

Run ‘huggingface-cli login’ in a terminal.

在终端上运行‘huggingfacecli登录’。

Run ‘notebook_login()’ in a notebook.

在笔记本中运行‘NOTBOOK_LOGIN()’。

  1. You’re using a model and a tokenizer — how can you upload them to the Hub?

By calling the push_to_hub method directly on the model and the tokenizer.

您正在使用一个模型和一个令牌器–您如何才能将它们上传到™?通过直接在模型和令牌器上调用Push_to_Hub方法。

Within the Python runtime, by wrapping them in a huggingface_hub utility.

在Python运行时中,通过将它们包装在一个huggingfacehub实用程序中。

By saving them to disk and calling transformers-cli upload-model

通过将它们保存到磁盘并调用Transformers-cli Upload-Model

  1. Which git operations can you do with the Repository class?

A commit.

您可以使用Repository类执行哪些Git操作?提交。

A pull

拉一把

A push

推力

A merge

合并