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

Optimize tokenizer initialization in LazySupervisedDataset for QWEN a… #288

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

ShacklesLay
Copy link

Removed tokenizer = copy.deepcopy(tokenizer) from preprocess_llama3 and preprocess_qwen because this operation was called every time data is fetched from the dataloader, consuming extra time. Instead, whether to use copy.deepcopy during tokenizer initialization is now determined based on conversation_lib.default_conversation.version during the initialization of the LazySupervisedDataset class.

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.

1 participant