mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-30 17:52:35 +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>
This commit is contained in:
parent
7f9aff910b
commit
0201f6420b
@ -1,7 +1,7 @@
|
|||||||
# docstyle-ignore
|
# docstyle-ignore
|
||||||
INSTALL_CONTENT = """
|
INSTALL_CONTENT = """
|
||||||
# Transformers installation
|
# Transformers installation
|
||||||
! pip install transformers datasets evaluate
|
! pip install transformers datasets evaluate accelerate
|
||||||
# To install from source instead of the last release, comment the command above and uncomment the following one.
|
# 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
|
# ! pip install git+https://github.com/huggingface/transformers.git
|
||||||
"""
|
"""
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# docstyle-ignore
|
# docstyle-ignore
|
||||||
INSTALL_CONTENT = """
|
INSTALL_CONTENT = """
|
||||||
# Transformers installation
|
# Transformers installation
|
||||||
! pip install transformers datasets
|
! pip install transformers datasets evaluate accelerate
|
||||||
# To install from source instead of the last release, comment the command above and uncomment the following one.
|
# 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
|
# ! pip install git+https://github.com/huggingface/transformers.git
|
||||||
"""
|
"""
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# docstyle-ignore
|
# docstyle-ignore
|
||||||
INSTALL_CONTENT = """
|
INSTALL_CONTENT = """
|
||||||
# Transformers installation
|
# Transformers installation
|
||||||
! pip install transformers datasets
|
! pip install transformers datasets evaluate accelerate
|
||||||
# To install from source instead of the last release, comment the command above and uncomment the following one.
|
# 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
|
# ! pip install git+https://github.com/huggingface/transformers.git
|
||||||
"""
|
"""
|
||||||
|
@ -23,7 +23,7 @@ Get up and running with 🤗 Transformers! Whether you're a developer or an ever
|
|||||||
Before you begin, make sure you have all the necessary libraries installed:
|
Before you begin, make sure you have all the necessary libraries installed:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
!pip install transformers datasets
|
!pip install transformers datasets evaluate accelerate
|
||||||
```
|
```
|
||||||
|
|
||||||
You'll also need to install your preferred machine learning framework:
|
You'll also need to install your preferred machine learning framework:
|
||||||
@ -547,7 +547,7 @@ All models are a standard [`tf.keras.Model`](https://www.tensorflow.org/api_docs
|
|||||||
```py
|
```py
|
||||||
>>> from tensorflow.keras.optimizers import Adam
|
>>> from tensorflow.keras.optimizers import Adam
|
||||||
|
|
||||||
>>> model.compile(optimizer=Adam(3e-5)) # No loss argument!
|
>>> model.compile(optimizer='adam') # No loss argument!
|
||||||
>>> model.fit(tf_dataset) # doctest: +SKIP
|
>>> model.fit(tf_dataset) # doctest: +SKIP
|
||||||
```
|
```
|
||||||
|
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# docstyle-ignore
|
# docstyle-ignore
|
||||||
INSTALL_CONTENT = """
|
INSTALL_CONTENT = """
|
||||||
# Transformers installation
|
# Transformers installation
|
||||||
! pip install transformers datasets
|
! pip install transformers datasets evaluate accelerate
|
||||||
# To install from source instead of the last release, comment the command above and uncomment the following one.
|
# 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
|
# ! pip install git+https://github.com/huggingface/transformers.git
|
||||||
"""
|
"""
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# docstyle-ignore
|
# docstyle-ignore
|
||||||
INSTALL_CONTENT = """
|
INSTALL_CONTENT = """
|
||||||
# Installation de Transformers
|
# Installation de Transformers
|
||||||
! pip install transformers datasets
|
! pip install transformers datasets evaluate accelerate
|
||||||
# Pour installer à partir du code source au lieu de la dernière version, commentez la commande ci-dessus et décommentez la suivante.
|
# Pour installer à partir du code source au lieu de la dernière version, commentez la commande ci-dessus et décommentez la suivante.
|
||||||
# ! pip install git+https://github.com/huggingface/transformers.git
|
# ! pip install git+https://github.com/huggingface/transformers.git
|
||||||
"""
|
"""
|
||||||
|
@ -23,7 +23,7 @@ Soyez opérationnel avec 🤗 Transformers ! Que vous soyez un développeur ou u
|
|||||||
Avant de commencer, assurez-vous que vous avez installé toutes les bibliothèques nécessaires :
|
Avant de commencer, assurez-vous que vous avez installé toutes les bibliothèques nécessaires :
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
!pip install transformers datasets
|
!pip install transformers datasets evaluate accelerate
|
||||||
```
|
```
|
||||||
|
|
||||||
Vous aurez aussi besoin d'installer votre bibliothèque d'apprentissage profond favorite :
|
Vous aurez aussi besoin d'installer votre bibliothèque d'apprentissage profond favorite :
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# docstyle-ignore
|
# docstyle-ignore
|
||||||
INSTALL_CONTENT = """
|
INSTALL_CONTENT = """
|
||||||
# Installazione di Transformers
|
# Installazione di Transformers
|
||||||
! pip install transformers datasets
|
! pip install transformers datasets evaluate accelerate
|
||||||
# Per installare dalla fonte invece dell'ultima versione rilasciata, commenta il comando sopra e
|
# Per installare dalla fonte invece dell'ultima versione rilasciata, commenta il comando sopra e
|
||||||
# rimuovi la modalità commento al comando seguente.
|
# rimuovi la modalità commento al comando seguente.
|
||||||
# ! pip install git+https://github.com/huggingface/transformers.git
|
# ! pip install git+https://github.com/huggingface/transformers.git
|
||||||
|
@ -26,7 +26,7 @@ specific language governing permissions and limitations under the License.
|
|||||||
始める前に、必要なライブラリがすべてインストールされていることを確認してください:
|
始める前に、必要なライブラリがすべてインストールされていることを確認してください:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
!pip install transformers datasets
|
!pip install transformers datasets evaluate accelerate
|
||||||
```
|
```
|
||||||
|
|
||||||
あなたはまた、好きな機械学習フレームワークをインストールする必要があります:
|
あなたはまた、好きな機械学習フレームワークをインストールする必要があります:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# docstyle-ignore
|
# docstyle-ignore
|
||||||
INSTALL_CONTENT = """
|
INSTALL_CONTENT = """
|
||||||
# Transformers 설치 방법
|
# Transformers 설치 방법
|
||||||
! pip install transformers datasets
|
! pip install transformers datasets evaluate accelerate
|
||||||
# 마지막 릴리스 대신 소스에서 설치하려면, 위 명령을 주석으로 바꾸고 아래 명령을 해제하세요.
|
# 마지막 릴리스 대신 소스에서 설치하려면, 위 명령을 주석으로 바꾸고 아래 명령을 해제하세요.
|
||||||
# ! pip install git+https://github.com/huggingface/transformers.git
|
# ! pip install git+https://github.com/huggingface/transformers.git
|
||||||
"""
|
"""
|
||||||
|
@ -23,7 +23,7 @@ rendered properly in your Markdown viewer.
|
|||||||
시작하기 전에 필요한 라이브러리가 모두 설치되어 있는지 확인하세요:
|
시작하기 전에 필요한 라이브러리가 모두 설치되어 있는지 확인하세요:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
!pip install transformers datasets
|
!pip install transformers datasets evaluate accelerate
|
||||||
```
|
```
|
||||||
|
|
||||||
또한 선호하는 머신 러닝 프레임워크를 설치해야 합니다:
|
또한 선호하는 머신 러닝 프레임워크를 설치해야 합니다:
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
# docstyle-ignore
|
# docstyle-ignore
|
||||||
INSTALL_CONTENT = """
|
INSTALL_CONTENT = """
|
||||||
# Transformers installation
|
# Transformers installation
|
||||||
! pip install transformers datasets
|
! pip install transformers datasets evaluate accelerate
|
||||||
# To install from source instead of the last release, comment the command above and uncomment the following one.
|
# 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
|
# ! pip install git+https://github.com/huggingface/transformers.git
|
||||||
"""
|
"""
|
||||||
|
@ -23,7 +23,7 @@ rendered properly in your Markdown viewer.
|
|||||||
మీరు ప్రారంభించడానికి ముందు, మీరు అవసరమైన అన్ని లైబ్రరీలను ఇన్స్టాల్ చేశారని నిర్ధారించుకోండి:
|
మీరు ప్రారంభించడానికి ముందు, మీరు అవసరమైన అన్ని లైబ్రరీలను ఇన్స్టాల్ చేశారని నిర్ధారించుకోండి:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
!pip install transformers datasets
|
!pip install transformers datasets evaluate accelerate
|
||||||
```
|
```
|
||||||
|
|
||||||
మీరు మీ ప్రాధాన్య యంత్ర అభ్యాస ఫ్రేమ్వర్క్ను కూడా ఇన్స్టాల్ చేయాలి:
|
మీరు మీ ప్రాధాన్య యంత్ర అభ్యాస ఫ్రేమ్వర్క్ను కూడా ఇన్స్టాల్ చేయాలి:
|
||||||
|
@ -23,7 +23,7 @@ rendered properly in your Markdown viewer.
|
|||||||
在开始之前,确保你已经安装了所有必要的库:
|
在开始之前,确保你已经安装了所有必要的库:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
!pip install transformers datasets
|
!pip install transformers datasets evaluate accelerate
|
||||||
```
|
```
|
||||||
|
|
||||||
你还需要安装喜欢的机器学习框架:
|
你还需要安装喜欢的机器学习框架:
|
||||||
|
Loading…
Reference in New Issue
Block a user