LMMsStack: Memory Efficient Inference and Dynamic Contrastive Reasoning in Financial Decision Making?
-
Create a virtual environment:
python -m venv .venv
-
Activate the virtual environment:
- Windows Command Prompt:
.venv\Scripts\activate.bat
- Windows PowerShell:
.venv\Scripts\Activate.ps1
- macOS and Linux:
source .venv/bin/activate
- Windows Command Prompt:
- Install the required packages:
pip install -r requirements.txt
- data:
|-data --prep.ipynb (for loading and preparing datasets, run this script to prepare dataset as shown below) --chartqa --fingpt_headlines_cls --math --merged_data --test_png |-chartqa.ipynb (vision model) |-headlines.ipynb (price predtiction model) |-math.ipynb (math model) |-normal.ipynb (general model that uses Qwen 7B for all queries)
Now to run above scripts its recommended to have approximately 32GB GPU RAM.