Make it easier to develop without a dev install (#22697)

* Make it easier to develop without a dev install

* Remove ugly hack that doesn't work anyway
This commit is contained in:
Sylvain Gugger
2023-04-11 08:41:53 -04:00
committed by GitHub
parent 4c01231e67
commit 28c19ab58d
6 changed files with 62 additions and 9 deletions

View File

@@ -34,6 +34,14 @@ cd transformers
pip install -e ".[dev]"
```
Depending on your OS, and since the number of optional dependencies of Transformers is growing, you might get a
failure with this command. If that's the case make sure to install the Deep Learning framework you are working with
(PyTorch, TensorFlow and/or Flax) then do:
```bash
pip install -e ".[quality]"
```
Once the installation is done, you can use the CLI command `add-new-model` to generate your models:
```shell script
@@ -133,6 +141,14 @@ cd transformers
pip install -e ".[dev]"
```
Depending on your OS, and since the number of optional dependencies of Transformers is growing, you might get a
failure with this command. If that's the case make sure to install the Deep Learning framework you are working with
(PyTorch, TensorFlow and/or Flax) then do:
```bash
pip install -e ".[quality]"
```
Once the installation is done, you can use the CLI command `add-new-model-like` to generate your models:
```shell script