Git Product home page Git Product logo

wealth-alpaca's Introduction

Wealth Alpaca-LoRa

This is an implementation of Alpaca-LoRa that uses a custom variant of the Alpaca dataset focused on Wealth/Finance. The training is done using Kaggle's free GPUs (2x Tesla T4s).

Data Generation

Installation

To install the required packages, run:

pip install -r requirements.txt

Usage

To generate data, run:

python -m generate_data generate_instructions_from_websites

This will generate data from the sources listed in sources.txt.

Custom Sources

You can add your own sources to sources.txt.

Make sure to run python -m generate_data again after adding new sources to sources.txt.


Dataset

More details on the dataset can be found here


Training

The training script wealth-alpaca_lora.py is optimized for training on Kaggle using 2x Tesla T4s and can be run through:

!torchrun --nproc_per_node=2 wealth-alpaca_lora.py

Training notebook on Kaggle can be found here: https://www.kaggle.com/code/gbhacker23/wealth-alpaca-lora


Inference

LoRa Weights: https://huggingface.co/gbharti/finance-alpaca-lora

Inference: https://colab.research.google.com/drive/1lIlJpsMq4JP1GszUw_oZhyKr2irsMcq_?usp=sharing

Interface for inference: https://colab.research.google.com/drive/11V_w7y5hEbVgsx9we8RMyapY9bEeuY5X?usp=sharing


Performance analysis (Work in Progress)

Comparison between Alpaca-LoRa and Wealth Alpaca-LoRa: https://docs.google.com/document/d/1ldso1tmFLkg0flePdDKj_iTc8gcmdRtoe9n1dYN1W10/edit?usp=sharing

ChatGPT responses: https://docs.google.com/document/d/1PevbI89jgiPYaSSCnVcLIF9ObiDbAf_LsmsTx-SIvBg/edit?usp=sharing

wealth-alpaca's People

Contributors

gaurangbharti1 avatar

Stargazers

Hsy avatar  avatar Diego S avatar Wanru Zhao avatar GasonBai avatar Wade Deng avatar Umar Igan avatar Chanh Le avatar Pengnan Chi avatar yuna avatar jaxolingo avatar Raghav Gupta avatar  avatar  avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.