32 lines
695 B
ReStructuredText
32 lines
695 B
ReStructuredText
Installation
|
|
============
|
|
|
|
To get a quick start with Qwen2, you can install the ``transformers``
|
|
library from Hugging Face and use models in the `Qwen2
|
|
collection <https://huggingface.co/collections/Qwen/qwen2-6659360b33528ced941e557f>`__.
|
|
We advise you to install the latest ``transformers`` or at least version
|
|
4.40.0.
|
|
|
|
Install with Pip
|
|
~~~~~~~~~~~~~~~~
|
|
|
|
.. code:: bash
|
|
|
|
pip install transformers -U
|
|
|
|
Install with Conda
|
|
~~~~~~~~~~~~~~~~~~
|
|
|
|
.. code:: bash
|
|
|
|
conda install conda-forge::transformers
|
|
|
|
Install from Source
|
|
~~~~~~~~~~~~~~~~~~~
|
|
|
|
.. code:: bash
|
|
|
|
pip install git+https://github.com/huggingface/transformers
|
|
|
|
We advise you to use Python 3.8 or higher, and Pytorch 2.0 or higher.
|