-
Notifications
You must be signed in to change notification settings - Fork 416
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
24 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Introduction | ||
|
||
When training the LLava-one-vision model with FlagScale, the original LLava-one-vision dataset needs to be converted to WebDataset format. This tool primarily reuses the data shuffling functionality in the original [LLava-one-vision](https://github.com/LLaVA-VL/LLaVA-NeXT/blob/main/llava/train/train.py) training trainer, while saving the data in WebDataset format on each rank. | ||
|
||
# Usage | ||
|
||
## Preparation | ||
|
||
1. Download https://github.com/LLaVA-VL/LLaVA-NeXT into Path_Of_LLaVA-NeXT. | ||
2. Download google/siglip-so400m-patch14-384 into VISION_MODEL_PATH. | ||
3. Write a hostfile with one IP per line, like the example below: | ||
``` | ||
1.2.3.4 slots=8 | ||
1.2.3.5 slots=8 | ||
``` | ||
4. Prepare a dataset input compatible with the LLava-one-vision library, like next_ov_stage_july21.yaml. | ||
|
||
## Example | ||
``` | ||
DATA_PATH=next_ov_stage_july21.yaml | ||
EXPNAME_PATH=*PathOfOutputWebDatasets* | ||
HOSTFILE=hostfile | ||
bash make_llava_ov_wds.sh $DATA_PATH $EXPNAME_PATH $HOSTFILE | ||
``` |