You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<!-- markdownlint-disable -->
PLEASE FILL IN THE PR DESCRIPTION HERE ENSURING ALL CHECKLIST ITEMS (AT
THE BOTTOM) HAVE BEEN CONSIDERED.
## Purpose
<!--- Why your changes are needed -->
FIX#290
By forwarding the conversations directly into Chat Completions API, and
also observing that `AutoProcessor` returns tokenizer instance for
text-only models, we can simplify the code a lot compared to #344.
cc @shx2005
## Description
<!--- High-level concise summary of changes -->
- Enable preprocessing of multimodal datasets. No user flag is required;
we detect this automatically based on `isinstance(..., ProcessorMixin)`.
- Add `--trust-remote-code` flag to data preparation and training
scripts.
- Add `hf_name` and `filter_fn` options to `DatasetConfig`.
- Add support for ShareGPT4V dataset.
- Only samples from COCO are supported right now.
- You need to download the images separately since it's not handled by
HF Datasets. Use the `COCO_DIR` environment variable to control where
COCO images are read from.
- To avoid copying the images when storing the preprocessed dataset and
HTTP transfer to vLLM, we express image inputs in terms of file URLs
instead of base64-encoded images. For vLLM to access those files, you
should pass `--allowed-media-domain-paths /path/to/coco` when serving
it.
- Disable caching for dataset normalization as it makes debugging
`normalize_fn` more difficult. To reduce overhead, this step is now
executed after `raw_dataset.select`.
- Use `--enforce-eager` for vLLM in e2e tests by default to reduce
startup time.
- Add `torchaudio` and `torchvision` to dependencies.
- Fix whitespace issues in the help text of the scripts.
## Related Issue
<!--- Link related issue if applicable -->
#290
## Tests
<!--- Please describe in detail how you tested your changes. -->
Add integration and e2e tests to ensure MM support. Note:
- e2e smoke tests use a dummy COCO image so they can be run in CI.
- e2e regression tests are only run if the real COCO images are
downloaded.
I have filled in:
- [x] The purpose of the PR, such as "Fix some issue (link existing
issues this PR will resolve)".
- [x] The test plan/results, such as providing test command and pasting
the results.
- [x] (Optional) The necessary documentation update.
- [x] I (a human) have written or reviewed the code in this pr to the
best of my ability.
---------
Signed-off-by: DarkLight1337 <tlleungac@connect.ust.hk>
-**`--trust-remote-code`** (flag) Allow executing code from HF Hub when loading the target model's processor.
30
+
29
31
### Data Arguments
30
32
31
33
-**`--data`** (str, required, repeatable) Path to training data. Can be a HuggingFace dataset name or local path. Use multiple times to specify multiple datasets.
0 commit comments