2021-12-10 20:31:43 +00:00
|
|
|
# docstyle-ignore
|
2021-12-10 19:20:56 +00:00
|
|
|
INSTALL_CONTENT = """
|
2021-12-10 20:31:43 +00:00
|
|
|
# Transformers installation
|
2024-04-08 13:21:16 +00:00
|
|
|
! pip install transformers datasets evaluate accelerate
|
2021-12-10 20:31:43 +00:00
|
|
|
# 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
|
2021-12-10 19:20:56 +00:00
|
|
|
"""
|
|
|
|
|
|
2022-03-11 15:09:15 +00:00
|
|
|
notebook_first_cells = [{"type": "code", "content": INSTALL_CONTENT}]
|
2022-03-28 11:45:18 +00:00
|
|
|
black_avoid_patterns = {
|
|
|
|
|
"{processor_class}": "FakeProcessorClass",
|
|
|
|
|
"{model_class}": "FakeModelClass",
|
2023-11-16 16:43:19 +00:00
|
|
|
"{object_class}": "FakeObjectClass",
|
2022-03-28 11:45:18 +00:00
|
|
|
}
|