VILA icon indicating copy to clipboard operation
VILA copied to clipboard

Finetuning

Open RohanR04 opened this issue 1 year ago • 7 comments

Is it possible to finetune VILA through hugging face with a custom image dataset? I don't see any documentation about this.

RohanR04 avatar May 28 '24 18:05 RohanR04

Did you ever figure this out I've been trying to do this with xtuner and I'm having some issues

ZackBradshaw avatar Jul 11 '24 15:07 ZackBradshaw

You can follow the https://github.com/NVlabs/VILA?tab=readme-ov-file#step-3-supervised-fine-tuning to start. We also plan to add some tutorial docs later. Could you list some datasets that you are going to finetune with?

Lyken17 avatar Jul 12 '24 01:07 Lyken17

I've been working with the Supervised finetuning instructions and I'm running into some issues getting this to work. The data mixture expects dictionary items and then finds the data path from that however I'm not sure where this is reading and getting its values (huggingface perhaps?). My custom data set is on device and I'm just trying to get it to read that path but when I pass this into data mixture I get

KeyError: './data/data.json'
ERROR:torch.distributed.elastic.multiprocessing.api:failed (exitcode: 1) local_rank: 0 (pid: 22981) of binary: /usr/bin/python3
Traceback (most recent call last):
  File "/usr/local/bin/torchrun", line 8, in <module>
    sys.exit(main())

ZackBradshaw avatar Jul 15 '24 15:07 ZackBradshaw

which data you are going to add?

Lyken17 avatar Jul 17 '24 07:07 Lyken17

I have a llava data set following this format. Do I need to define the splits in the json or something?

    data = {
        "id": link,
        "image": image_path,
        "conversations": [
            {
                "from": "human",
                "value": metadata,
            },
            {
                "from": "gpt",
                "value": response,
            }
        ]
    }

the data set is a custom data set in the following format

ZackBradshaw avatar Jul 17 '24 16:07 ZackBradshaw

Hello @Lyken17 thanks for your awesome work on VILA1.5! Wondering if you have updates on the tutorial docs for finetuning? I was planning to finetune VILA on infrared videos so the docs/tutorials would be truly helpful. Any comments on this would be truly appreciated! Thanks a lot! :)

groccy avatar Aug 19 '24 09:08 groccy

Hi, I'm very new to the world of VLMs. Can I find an example of a multimodal dataset (e.g., something like image sequences + prompts + ground truth) for fine-tuning? Also, can I use the Hugging Face SFT Trainer, as described in this guide? Thanks!

olibartfast avatar Dec 16 '24 23:12 olibartfast

I want to fine-tune X-VILA on a multimodal dataset. Is it possible? If yes, can you provide resources on how to do it?

khawlabel avatar Feb 11 '25 10:02 khawlabel

the issue has been non-active for a while. Feel free to reopen if the issue still exists

Lyken17 avatar Feb 25 '25 09:02 Lyken17