Giter Site home page Giter Site logo

mellm's Introduction

MeLLM

The code and data of paper "MeLLM: Image-to-Text Generation via Frozen Multimodal Encoders and Large Language Models"

Setting Environment

To successfully setup the environment, you are required to install the package mentioned in 'requirements.txt'.

We also recommand you to create a virtual envieronment and install the required packages by running the following script:

conda create -n MeLLM python=3.9
conda activate MeLLM
pip install -r requirements.txt

Checkpoint of Mutimodal Encoders

For OFA and BEiT3 encoder checkpoints, they can be obtained from the below wonderful projects:

OFA: https://github.com/OFA-Sys/OFA

BEiT3: https://github.com/microsoft/unilm/tree/master/beit3

Checkpoint of LLMs

The checkpoint of LLaMA2 and Vicuna can be obtained from their corresponding huggingface projects:

LLaMA2:https://huggingface.co/meta-llama/Llama-2-7b-chat-hf

Vicuna v1.5:https://huggingface.co/lmsys/vicuna-7b-v1.5

Lauching Training

Specify the checkpoints of multimodal encoders and LLM at 'run.sh', after that, you are able to launch the training by running it

sh run.sh

mellm's People

Contributors

fr0zencrane avatar

Stargazers

 avatar

Watchers

Kostas Georgiou 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.