Files
AMD-SHARK-Studio/apps/language_models/langchain
Ean Garvey caf6cc5d8f Switch most compile flows to use ireec.compile_file. (#1863)
* Switch most compile flows to use ireec.compile_file.

* re-add input type to compile_str path.

* Check if mlir_module exists before checking if it's a path or pyobject.

* Fix some save_dir cases
2023-10-06 23:04:43 -05:00
..
2023-07-21 21:56:27 +05:30
2023-07-17 09:58:15 -07:00
2023-07-17 09:58:15 -07:00

Langchain

How to run the model

1.) Install all the dependencies by running:

pip install -r apps/language_models/langchain/langchain_requirements.txt
sudo apt-get install -y libmagic-dev poppler-utils tesseract-ocr libtesseract-dev libreoffice

2.) Create a folder named user_path in apps/language_models/langchain/ directory.

Now, you are ready to use the model.

3.) To run the model, run the following command:

python apps/language_models/langchain/gen.py --cli=True