mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-03 12:50:06 +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>
15 lines
534 B
Python
15 lines
534 B
Python
# docstyle-ignore
|
|
INSTALL_CONTENT = """
|
|
# Transformers installation
|
|
! pip install transformers datasets evaluate accelerate
|
|
# To install from source instead of the last release, comment the command above and uncomment the following one.
|
|
# ! 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",
|
|
}
|