Skip to content

Latest commit

 

History

History
49 lines (40 loc) · 1.18 KB

README.md

File metadata and controls

49 lines (40 loc) · 1.18 KB

LMMsStack: Memory Efficient Inference and Dynamic Contrastive Reasoning in Financial Decision Making?

Setting Up the Virtual Environment

  1. Create a virtual environment:

    python -m venv .venv
  2. Activate the virtual environment:

    • Windows Command Prompt:
      .venv\Scripts\activate.bat
    • Windows PowerShell:
      .venv\Scripts\Activate.ps1
    • macOS and Linux:
      source .venv/bin/activate

Installing Dependencies

  1. Install the required packages:
    pip install -r requirements.txt

code files structure

  1. 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.