Skip to content

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.

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

2 participants