Skip to content

Support custom calibration datasets - #1762

Closed
DreamGenX wants to merge 0 commit into
NVIDIA:mainfrom
DreamGenX:main
Closed

DreamGenX wants to merge 0 commit into
NVIDIA:mainfrom
DreamGenX:main

Conversation

@DreamGenX

@DreamGenX DreamGenX commented Jun 11, 2024 •

Copy link
Copy Markdown
Contributor

With this change, the user can supply a custom json or jsonl with a text column for calibration.

@nv-guomingz

Copy link
Copy Markdown
Collaborator

Hi @syuoni ,would u please review this PR?

@nv-guomingz nv-guomingz added the triaged Issue has been triaged by maintainers label Jun 11, 2024
@syuoni

syuoni commented Jun 11, 2024

Copy link
Copy Markdown
Collaborator

Thanks @DreamGenX . I've started to integrate this PR to our internal repo, and probably this will be available in the next Github weekly update.

@DreamGenX

Copy link
Copy Markdown
Contributor Author

Thank you @syuoni -- I just noticed it should also be probably added for the nemo codepath.

@syuoni

syuoni commented Jun 12, 2024

Copy link
Copy Markdown
Collaborator

Hi @DreamGenX , this PR is using dataset_name_or_dir as a single data file path, and supports json/jsonl only.

An more general way is to prepare a HF dataset repo (according to this instruction), and use the local path to this repo for calibration. This allows more complex data structures (e.g., multiple files) and formats (e.g., csv). Does this make sense to you?

@syuoni

syuoni commented Jun 12, 2024

Copy link
Copy Markdown
Collaborator

Thank you @syuoni -- I just noticed it should also be probably added for the nemo codepath.

Yes, I will cover the nemo path. Thanks for the reminder.

@syuoni

syuoni commented Jun 13, 2024

Copy link
Copy Markdown
Collaborator

Hi @DreamGenX , this PR is using dataset_name_or_dir as a single data file path, and supports json/jsonl only.

An more general way is to prepare a HF dataset repo (according to this instruction), and use the local path to this repo for calibration. This allows more complex data structures (e.g., multiple files) and formats (e.g., csv). Does this make sense to you?

Hi @DreamGenX , We will go with this HF repo style support for customized calibration dataset.

If you have a data file path/to/data.json that you want to pass to dataset_name_or_dir, you can just:

  • move it to a separate folder and rename like path/to/repo/train.json, then
  • pass path/to/repo to dataset_name_or_dir.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

triaged Issue has been triaged by maintainers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants