Skip to content

added data processing logging #119

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions src/instructlab/training/data_process.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# Standard
import json
from pathlib import Path
from typing import List
import logging
Expand Down Expand Up @@ -193,6 +194,7 @@ def remove_pretrain_system_messages(example: dict):


def main(args: DataProcessArgs):
print(json.dumps(args.__dict__))
Copy link
Contributor

Choose a reason for hiding this comment

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

do we have a logger we could use for this instead of printing directly?

Copy link
Member Author

Choose a reason for hiding this comment

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

we could have a logger but it's used mostly on the training repo.

CHAT_TEMPLATE, SPECIAL_TOKENS = retrieve_chat_template(args.chat_tmpl_path)
tokenizer = setup_tokenizer(args.model_path, SPECIAL_TOKENS, CHAT_TEMPLATE)

Expand Down
Loading