2024-11-08 15:34:28 +08:00
|
|
|
:github_url: https://github.com/AI4Finance-Foundation/FinRL
|
|
|
|
|
|
|
|
Installation
|
|
|
|
============
|
|
|
|
|
|
|
|
Using pip:
|
|
|
|
----------
|
|
|
|
|
|
|
|
If you do not want to finetune the models, you can install the package without the finetune dependency:
|
2024-11-08 17:23:58 +08:00
|
|
|
|
2024-11-08 15:34:28 +08:00
|
|
|
.. code:: bash
|
|
|
|
|
|
|
|
pip install -U FlagEmbedding
|
|
|
|
|
|
|
|
If you want to finetune the models, you can install the package with the finetune dependency:
|
2024-11-08 17:23:58 +08:00
|
|
|
|
2024-11-08 15:34:28 +08:00
|
|
|
.. code:: bash
|
|
|
|
|
|
|
|
pip install -U FlagEmbedding[finetune]
|
|
|
|
|
|
|
|
|
|
|
|
Install from sources:
|
|
|
|
---------------------
|
|
|
|
|
|
|
|
Clone the repository and install
|
|
|
|
|
|
|
|
.. code:: bash
|
|
|
|
|
|
|
|
git clone https://github.com/FlagOpen/FlagEmbedding.git
|
|
|
|
cd FlagEmbedding
|
|
|
|
# If you do not want to finetune the models, you can install the package without the finetune dependency:
|
|
|
|
pip install .
|
|
|
|
# If you want to finetune the models, you can install the package with the finetune dependency:
|
|
|
|
pip install .[finetune]
|
|
|
|
|
|
|
|
For development in editable mode:
|
|
|
|
|
|
|
|
.. code:: bash
|
|
|
|
|
|
|
|
# If you do not want to finetune the models, you can install the package without the finetune dependency:
|
|
|
|
pip install -e .
|
|
|
|
# If you want to finetune the models, you can install the package with the finetune dependency:
|
|
|
|
pip install -e .[finetune]
|