mirror of
https://github.com/huggingface/transformers.git
synced 2025-07-04 05:10:06 +06:00
* debugging issue 36758 * debugging issue 36758 * debugging issue 36758 * updated attn_mask type specification in _flash_attention_forward * removed pdb * added a blank line * removed indentation * update constants * remove unnecessary files * created installation script, modified README * modified requirements and install.sh * undo irrelevant changes * removed blank line * fixing installation guide * modified README, python requirements, and install script * removed tests_otuput * modified README * discarded installation script and python<3.13 requirement
This commit is contained in:
parent
f2909e024c
commit
1c65aef923
@ -78,7 +78,6 @@ Create and activate a virtual environment with [venv](https://docs.python.org/3/
|
|||||||
# venv
|
# venv
|
||||||
python -m venv .my-env
|
python -m venv .my-env
|
||||||
source .my-env/bin/activate
|
source .my-env/bin/activate
|
||||||
|
|
||||||
# uv
|
# uv
|
||||||
uv venv .my-env
|
uv venv .my-env
|
||||||
source .my-env/bin/activate
|
source .my-env/bin/activate
|
||||||
@ -88,10 +87,10 @@ Install Transformers in your virtual environment.
|
|||||||
|
|
||||||
```py
|
```py
|
||||||
# pip
|
# pip
|
||||||
pip install transformers
|
pip install "transformers[torch]"
|
||||||
|
|
||||||
# uv
|
# uv
|
||||||
uv pip install transformers
|
uv pip install "transformers[torch]"
|
||||||
```
|
```
|
||||||
|
|
||||||
Install Transformers from source if you want the latest changes in the library or are interested in contributing. However, the *latest* version may not be stable. Feel free to open an [issue](https://github.com/huggingface/transformers/issues) if you encounter an error.
|
Install Transformers from source if you want the latest changes in the library or are interested in contributing. However, the *latest* version may not be stable. Feel free to open an [issue](https://github.com/huggingface/transformers/issues) if you encounter an error.
|
||||||
@ -99,7 +98,7 @@ Install Transformers from source if you want the latest changes in the library o
|
|||||||
```shell
|
```shell
|
||||||
git clone https://github.com/huggingface/transformers.git
|
git clone https://github.com/huggingface/transformers.git
|
||||||
cd transformers
|
cd transformers
|
||||||
pip install .
|
pip install .[torch]
|
||||||
```
|
```
|
||||||
|
|
||||||
## Quickstart
|
## Quickstart
|
||||||
|
3
setup.py
3
setup.py
@ -484,6 +484,9 @@ setup(
|
|||||||
"Programming Language :: Python :: 3",
|
"Programming Language :: Python :: 3",
|
||||||
"Programming Language :: Python :: 3.9",
|
"Programming Language :: Python :: 3.9",
|
||||||
"Programming Language :: Python :: 3.10",
|
"Programming Language :: Python :: 3.10",
|
||||||
|
"Programming Language :: Python :: 3.11",
|
||||||
|
"Programming Language :: Python :: 3.12",
|
||||||
|
"Programming Language :: Python :: 3.13",
|
||||||
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
"Topic :: Scientific/Engineering :: Artificial Intelligence",
|
||||||
],
|
],
|
||||||
cmdclass={"deps_table_update": DepsTableUpdateCommand},
|
cmdclass={"deps_table_update": DepsTableUpdateCommand},
|
||||||
|
Loading…
Reference in New Issue
Block a user