Buckets:

rtrm's picture
|
download
raw
3.25 kB
# End-of-chapter quiz[[end-of-chapter-quiz]]
Let's test what you learned in this chapter!
### 1. What are models on the Hub limited to?
### 2. How can you manage models on the Hub?
git-lfs for large files.",
correct: true
}
]}
/>
### 3. What can you do using the Hugging Face Hub web interface?
### 4. What is a model card?
### 5. Which of these objects of the ๐Ÿค— Transformers library can be directly shared on the Hub with `push_to_hub()`?
{#if fw === 'pt'}
push_to_hub method, and using it will push all the tokenizer files (vocabulary, architecture of the tokenizer, etc.) to a given repo. That's not the only right answer, though!",
correct: true
},
{
text: "A model configuration",
explain: "Right! All model configurations have the push_to_hub method, and using it will push them to a given repo. What else can you share?",
correct: true
},
{
text: "A model",
explain: "Correct! All models have the push_to_hub method, and using it will push them and their configuration files to a given repo. That's not all you can share, though.",
correct: true
},
{
text: "A Trainer",
explain: "That's right โ€” the Trainer also implements the push_to_hub method, and using it will upload the model, its configuration, the tokenizer, and a model card draft to a given repo. Try another answer!",
correct: true
}
]}
/>
{:else}
push_to_hub method, and using it will push all the tokenizer files (vocabulary, architecture of the tokenizer, etc.) to a given repo. That's not the only right answer, though!",
correct: true
},
{
text: "A model configuration",
explain: "Right! All model configurations have the push_to_hub method, and using it will push them to a given repo. What else can you share?",
correct: true
},
{
text: "A model",
explain: "Correct! All models have the push_to_hub method, and using it will push them and their configuration files to a given repo. That's not all you can share, though.",
correct: true
},
{
text: "All of the above with a dedicated callback",
explain: "That's right โ€” the PushToHubCallback will regularly send all of those objects to a repo during training.",
correct: true
}
]}
/>
{/if}
### 6. What is the first step when using the `push_to_hub()` method or the CLI tools?
### 7. You're using a model and a tokenizer โ€” how can you upload them to the Hub?
huggingface_hub utility.",
explain: "Models and tokenizers already benefit from huggingface_hub utilities: no need for additional wrapping!"
},
{
text: "By saving them to disk and calling transformers-cli upload-model",
explain: "The command upload-model does not exist."
}
]}
/>
### 8. Which git operations can you do with the `Repository` class?
git_commit() method is there for that.",
correct: true
},
{
text: "A pull",
explain: "That is the purpose of the git_pull() method.",
correct: true
},
{
text: "A push",
explain: "The method git_push() does this.",
correct: true
},
{
text: "A merge",
explain: "No, that operation will never be possible with this API."
}
]}
/>

Xet Storage Details

Size:
3.25 kB
ยท
Xet hash:
451af6be0b2e6dc45c1608af5ff48832f7b45cc98fa3ab65e88eee1afbdae2bd

Xet efficiently stores files, intelligently splitting them into unique chunks and accelerating uploads and downloads. More info.