README: install transformers from conda-forge channel (#28313)
Switch to the conda-forge channel for transformer installation, as the huggingface channel does not offer the latest version. Fixes #28248
This commit is contained in:
@@ -139,10 +139,10 @@ Ihre Python-Umgebung wird beim nächsten Ausführen die `main`-Version von 🤗
|
||||
|
||||
## Installation mit conda
|
||||
|
||||
Installation von dem conda Kanal `huggingface`:
|
||||
Installation von dem conda Kanal `conda-forge`:
|
||||
|
||||
```bash
|
||||
conda install -c huggingface transformers
|
||||
conda install conda-forge::transformers
|
||||
```
|
||||
|
||||
## Cache Einrichtung
|
||||
@@ -157,7 +157,7 @@ Vorgefertigte Modelle werden heruntergeladen und lokal zwischengespeichert unter
|
||||
<Tip>
|
||||
|
||||
Transformers verwendet die Shell-Umgebungsvariablen `PYTORCH_TRANSFORMERS_CACHE` oder `PYTORCH_PRETRAINED_BERT_CACHE`, wenn Sie von einer früheren Iteration dieser Bibliothek kommen und diese Umgebungsvariablen gesetzt haben, sofern Sie nicht die Shell-Umgebungsvariable `TRANSFORMERS_CACHE` angeben.
|
||||
|
||||
|
||||
</Tip>
|
||||
|
||||
## Offline Modus
|
||||
@@ -246,5 +246,5 @@ Sobald Ihre Datei heruntergeladen und lokal zwischengespeichert ist, geben Sie d
|
||||
<Tip>
|
||||
|
||||
Weitere Informationen zum Herunterladen von Dateien, die auf dem Hub gespeichert sind, finden Sie im Abschnitt [Wie man Dateien vom Hub herunterlädt] (https://huggingface.co/docs/hub/how-to-downstream).
|
||||
|
||||
|
||||
</Tip>
|
||||
|
||||
@@ -70,7 +70,7 @@ pip install 'transformers[tf-cpu]'
|
||||
<Tip warning={true}>
|
||||
|
||||
M1 / ARM Users
|
||||
|
||||
|
||||
You will need to install the following before installing TensorFLow 2.0
|
||||
```
|
||||
brew install cmake
|
||||
@@ -147,10 +147,10 @@ Your Python environment will find the `main` version of 🤗 Transformers on the
|
||||
|
||||
## Install with conda
|
||||
|
||||
Install from the conda channel `huggingface`:
|
||||
Install from the conda channel `conda-forge`:
|
||||
|
||||
```bash
|
||||
conda install -c huggingface transformers
|
||||
conda install conda-forge::transformers
|
||||
```
|
||||
|
||||
## Cache setup
|
||||
|
||||
@@ -131,10 +131,10 @@ El entorno de Python que creaste para la instalación de 🤗 Transformers encon
|
||||
|
||||
## Instalación con conda
|
||||
|
||||
Puedes instalar 🤗 Transformers desde el canal de conda `huggingface` con el siguiente comando:
|
||||
Puedes instalar 🤗 Transformers desde el canal de conda `conda-forge` con el siguiente comando:
|
||||
|
||||
```bash
|
||||
conda install -c huggingface transformers
|
||||
conda install conda-forge::transformers
|
||||
```
|
||||
|
||||
## Configuración de Caché
|
||||
@@ -148,7 +148,7 @@ Los modelos preentrenados se descargan y almacenan en caché localmente en: `~/.
|
||||
<Tip>
|
||||
|
||||
🤗 Transformers usará las variables de entorno de shell `PYTORCH_TRANSFORMERS_CACHE` o `PYTORCH_PRETRAINED_BERT_CACHE` si viene de una iteración anterior de la biblioteca y ha configurado esas variables de entorno, a menos que especifiques la variable de entorno de shell `TRANSFORMERS_CACHE`.
|
||||
|
||||
|
||||
</Tip>
|
||||
|
||||
|
||||
@@ -204,7 +204,7 @@ Otra opción para usar 🤗 Transformers offline es descargando previamente los
|
||||
>>> model.save_pretrained("./your/path/bigscience_t0")
|
||||
```
|
||||
|
||||
3. Cuando te encuentres offline, recarga los archivos con [`PreTrainedModel.from_pretrained`] desde el directorio especificado:
|
||||
3. Cuando te encuentres offline, recarga los archivos con [`PreTrainedModel.from_pretrained`] desde el directorio especificado:
|
||||
|
||||
```py
|
||||
>>> tokenizer = AutoTokenizer.from_pretrained("./your/path/bigscience_t0")
|
||||
@@ -213,7 +213,7 @@ Otra opción para usar 🤗 Transformers offline es descargando previamente los
|
||||
|
||||
* Descarga de manera programática los archivos con la biblioteca [huggingface_hub](https://github.com/huggingface/huggingface_hub/tree/main/src/huggingface_hub):
|
||||
|
||||
1. Instala la biblioteca [huggingface_hub](https://github.com/huggingface/huggingface_hub/tree/main/src/huggingface_hub) en tu entorno virtual:
|
||||
1. Instala la biblioteca [huggingface_hub](https://github.com/huggingface/huggingface_hub/tree/main/src/huggingface_hub) en tu entorno virtual:
|
||||
|
||||
```bash
|
||||
python -m pip install huggingface_hub
|
||||
|
||||
@@ -149,10 +149,10 @@ Votre environnement Python utilisera la version de la branche `main` lors de la
|
||||
|
||||
## Installation avec conda
|
||||
|
||||
Installation via le canal `huggingface` de conda :
|
||||
Installation via le canal `conda-forge` de conda :
|
||||
|
||||
```bash
|
||||
conda install -c huggingface transformers
|
||||
conda install conda-forge::transformers
|
||||
```
|
||||
|
||||
## Configuration du cache
|
||||
|
||||
@@ -130,10 +130,10 @@ Il tuo ambiente Python troverà la versione `main` di 🤗 Transformers alla pro
|
||||
|
||||
## Installazione con conda
|
||||
|
||||
Installazione dal canale conda `huggingface`:
|
||||
Installazione dal canale conda `conda-forge`:
|
||||
|
||||
```bash
|
||||
conda install -c huggingface transformers
|
||||
conda install conda-forge::transformers
|
||||
```
|
||||
|
||||
## Impostazione della cache
|
||||
@@ -236,4 +236,4 @@ Una volta che il tuo file è scaricato e salvato in cache localmente, specifica
|
||||
|
||||
Fai riferimento alla sezione [How to download files from the Hub](https://huggingface.co/docs/hub/how-to-downstream) per avere maggiori dettagli su come scaricare modelli presenti sull Hub.
|
||||
|
||||
</Tip>
|
||||
</Tip>
|
||||
|
||||
@@ -135,10 +135,10 @@ Python環境は次回の実行時に🤗 Transformersの`main`バージョンを
|
||||
|
||||
## condaでのインストール
|
||||
|
||||
`huggingface`のcondaチャンネルからインストールします:
|
||||
`conda-forge`のcondaチャンネルからインストールします:
|
||||
|
||||
```bash
|
||||
conda install -c huggingface transformers
|
||||
conda install conda-forge::transformers
|
||||
```
|
||||
|
||||
## キャッシュの設定
|
||||
@@ -241,4 +241,4 @@ python examples/pytorch/translation/run_translation.py --model_name_or_path t5-s
|
||||
|
||||
Hubに保存されているファイルをダウンロードする方法の詳細については、[How to download files from the Hub](https://huggingface.co/docs/hub/how-to-downstream)セクションを参照してください。
|
||||
|
||||
</Tip>
|
||||
</Tip>
|
||||
|
||||
@@ -49,7 +49,7 @@ Windows의 경우:
|
||||
.env/Scripts/activate
|
||||
```
|
||||
|
||||
이제 🤗 Transformers를 설치할 준비가 되었습니다. 다음 명령을 입력해주세요.
|
||||
이제 🤗 Transformers를 설치할 준비가 되었습니다. 다음 명령을 입력해주세요.
|
||||
|
||||
```bash
|
||||
pip install transformers
|
||||
@@ -135,10 +135,10 @@ Python 환경을 다시 실행하면 업데이트된 🤗 Transformers의 `main`
|
||||
|
||||
## conda로 설치하기[[install-with-conda]]
|
||||
|
||||
`huggingface` conda 채널에서 설치할 수 있습니다.
|
||||
`conda-forge` conda 채널에서 설치할 수 있습니다.
|
||||
|
||||
```bash
|
||||
conda install -c huggingface transformers
|
||||
conda install conda-forge::transformers
|
||||
```
|
||||
|
||||
## 캐시 구성하기[[cache-setup]]
|
||||
@@ -242,4 +242,4 @@ Another option for using 🤗 Transformers offline is to download the files ahea
|
||||
|
||||
Hub에 저장된 파일을 다운로드하는 방법을 더 자세히 알아보려면 [Hub에서 파일 다운로드하기](https://huggingface.co/docs/hub/how-to-downstream) 섹션을 참고해주세요.
|
||||
|
||||
</Tip>
|
||||
</Tip>
|
||||
|
||||
@@ -144,10 +144,10 @@ O ambiente de Python que foi criado para a instalação do 🤗 Transformers enc
|
||||
|
||||
## Instalação usando o Conda
|
||||
|
||||
É possível instalar o 🤗 Transformers a partir do canal conda `huggingface` com o seguinte comando:
|
||||
É possível instalar o 🤗 Transformers a partir do canal conda `conda-forge` com o seguinte comando:
|
||||
|
||||
```bash
|
||||
conda install -c huggingface transformers
|
||||
conda install conda-forge::transformers
|
||||
```
|
||||
|
||||
## Configuração do Cachê
|
||||
@@ -166,7 +166,7 @@ No Windows, este diretório pré-definido é dado por `C:\Users\username\.cache\
|
||||
O 🤗 Transformers usará as variáveis de ambiente do shell `PYTORCH_TRANSFORMERS_CACHE` ou `PYTORCH_PRETRAINED_BERT_CACHE`
|
||||
se estiver vindo de uma versão anterior da biblioteca que tenha configurado essas variáveis de ambiente, a menos que
|
||||
você especifique a variável de ambiente do shell `TRANSFORMERS_CACHE`.
|
||||
|
||||
|
||||
</Tip>
|
||||
|
||||
|
||||
|
||||
@@ -70,7 +70,7 @@ pip install 'transformers[tf-cpu]'
|
||||
<Tip warning={true}>
|
||||
|
||||
M1 / ARM用户
|
||||
|
||||
|
||||
在安装 TensorFlow 2.0 前,你需要安装以下库:
|
||||
```
|
||||
brew install cmake
|
||||
@@ -147,10 +147,10 @@ git pull
|
||||
|
||||
## 使用 conda 安装
|
||||
|
||||
从 conda 的 `huggingface` 频道安装:
|
||||
从 conda 的 `conda-forge` 频道安装:
|
||||
|
||||
```bash
|
||||
conda install -c huggingface transformers
|
||||
conda install conda-forge::transformers
|
||||
```
|
||||
|
||||
## 缓存设置
|
||||
|
||||
Reference in New Issue
Block a user