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

Move changes over from mother-of-all-refactors #45

Merged
merged 12 commits into from
Feb 10, 2023
Merged

Conversation

norabelrose
Copy link
Member

This is sort of a "lite" version of the much larger "mother of all refactors" PR that focuses on changes to the hidden state extraction code. It also includes the refactor of the CLI to allow for commands like elk extract.

Copy link
Collaborator

@FabienRoger FabienRoger left a comment

Choose a reason for hiding this comment

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

I think the new

elk/extraction/parser.py Outdated Show resolved Hide resolved
elk/training/preprocessing.py Outdated Show resolved Hide resolved
README.md Show resolved Hide resolved
# Token used to separate the question from the answer
sep_token = tokenizer.sep_token or "\n"

# TODO: Maybe also make this configurable?
Copy link
Collaborator

Choose a reason for hiding this comment

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

Should we have the option to discard too, as it was in the original code?

Copy link
Member Author

Choose a reason for hiding this comment

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

Made an issue #47 and assigned it to you

elk/extraction/extraction.py Show resolved Hide resolved
@norabelrose norabelrose merged commit c9bde95 into main Feb 10, 2023
@norabelrose norabelrose deleted the extraction-refactor branch February 12, 2023 18:32
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.

None yet

3 participants