mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-04 13:20:12 +06:00

* ImportError: Trainer with PyTorch requires accelerate>=0.20.1 Fix Adding the evaluate and accelerate installs at the beginning of the cell to fix the issue * ImportError Fix: Trainer with PyTorch requires accelerate>=0.20.1 * Import Error Fix * Update installation.md * Update quicktour.md * rollback other lang changes * Update _config.py * updates for other languages * fixing error * Tutorial Update * Update tokenization_utils_base.py * Just use an optimizer string to pass the doctest? --------- Co-authored-by: Matt <rocketknight1@gmail.com>
16 lines
575 B
Python
16 lines
575 B
Python
# docstyle-ignore
|
|
INSTALL_CONTENT = """
|
|
# Installazione di Transformers
|
|
! pip install transformers datasets evaluate accelerate
|
|
# Per installare dalla fonte invece dell'ultima versione rilasciata, commenta il comando sopra e
|
|
# rimuovi la modalità commento al comando seguente.
|
|
# ! pip install git+https://github.com/huggingface/transformers.git
|
|
"""
|
|
|
|
notebook_first_cells = [{"type": "code", "content": INSTALL_CONTENT}]
|
|
black_avoid_patterns = {
|
|
"{processor_class}": "FakeProcessorClass",
|
|
"{model_class}": "FakeModelClass",
|
|
"{object_class}": "FakeObjectClass",
|
|
}
|