Skip to content
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

Orca data filtered loader #3655

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

Conversation

shahules786
Copy link
Collaborator

No description provided.

@github-actions
Copy link

pre-commit failed.
Please run pre-commit run --all-files locally and commit the changes.
Find more information in the repository's CONTRIBUTING.md

@github-actions
Copy link

pre-commit failed.
Please run pre-commit run --all-files locally and commit the changes.
Find more information in the repository's CONTRIBUTING.md

return len(self.dataset)

def __getitem__(self, idx):
conversation = [self.dataset[idx][key] for key in ("conversation")]
Copy link
Collaborator

@andreaskoepf andreaskoepf Aug 24, 2023

Choose a reason for hiding this comment

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

probably should be conversation = self.dataset[idx]["conversation"] .. -> ("conversation") is no tuple and key would iterate over the characters.

use_auth_token=use_auth_token,
cache_dir=cache_dir)
self.rows_per_conv = rows_per_conv

def __len__(self):
return len(self.dataset)

def __getitem__(self, idx):
conversation, instruction = [self.dataset[idx][key] for key in ("conversation", "instruction")]
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think this is now in ("cluster", "instruction")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants