Skip to content

Add pile eval dataset #179

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 3 commits into from
Oct 18, 2024
Merged

Add pile eval dataset #179

merged 3 commits into from
Oct 18, 2024

Conversation

rahul-tuli
Copy link
Collaborator

SUMMARY:
This PR adds the pile eval dataset to llmcompressor

TEST PLAN:
Added unit test for loading + ran the following script to verify

from llmcompressor.transformers import TextGenerationDataset, DataTrainingArguments
from transformers import AutoTokenizer

data_args = DataTrainingArguments(
            dataset="pile-eval",
            concatenate_data=True,
            splits={"calibration" : "validation[:1%]"},
        )
tokenizer = AutoTokenizer.from_pretrained("Xenova/llama2.c-stories15M")
dataset_manager = TextGenerationDataset.load_from_registry(
            data_args.dataset,
            data_args=data_args,
            split=data_args.splits,
            tokenizer=tokenizer,
        )


raw_dataset = dataset_manager.get_raw_dataset()
tokenized_dataset = dataset_manager.tokenize_and_process(
    raw_dataset, add_labels=True
)

Copy link

👋 Hi! Thank you for contributing to llm-compressor. Please add the ready label when the PR is ready for review.

@rahul-tuli rahul-tuli force-pushed the add-pile-eval-dataset branch from eacfe27 to 24216a8 Compare September 18, 2024 13:16
@rahul-tuli rahul-tuli changed the base branch from main to awq-feature-branch September 18, 2024 13:17
@rahul-tuli rahul-tuli mentioned this pull request Sep 18, 2024
4 tasks
Copy link
Contributor

@Satrat Satrat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

just had a few nitpicky comments, also why do we call it PileEval? from the source it looks like its actually "PileVal"

Copy link
Collaborator

@kylesayrs kylesayrs left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@markurtz markurtz merged commit 62bdb6b into awq-feature-branch Oct 18, 2024
@markurtz markurtz deleted the add-pile-eval-dataset branch October 18, 2024 02:09
markmc pushed a commit to markmc/llm-compressor that referenced this pull request Nov 13, 2024
* switch nightly back to nightly

* minor update

---------

Co-authored-by: dhuangnm <dhuang@MacBook-Pro-2.local>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants