generated from fastai/nbdev_template
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
[SFTTrainer]: Check for assistant mask up to max_length #3930
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
Closed
pramodith
wants to merge
27
commits into
huggingface:main
from
pramodith:pramodith/update_assistant_token_exception
Closed
Changes from 5 commits
Commits
Show all changes
27 commits
Select commit
Hold shift + click to select a range
0b16294
Update assistant mask exception.
pramodith cb0258d
use model_max_length
pramodith f7dd77e
Merge branch 'main' into pramodith/update_assistant_token_exception
pramodith 067cf05
Log % of trainable assistant tokens
pramodith faf3f69
filter out rows with no assistant tokens.
pramodith bb22c8f
address co-pilot comments.
pramodith 4b0c21c
IterableDataset doesn't have num_rows.
pramodith 3eed0cc
Merge branch 'main' into pramodith/update_assistant_token_exception
pramodith 8c758c7
Merge branch 'main' into pramodith/update_assistant_token_exception
pramodith 023ddaf
Compute total trainable tokens for all types of datasets after trunca…
pramodith 054e4a7
input_ids should use length for total token count.
pramodith 0400a27
precommit
pramodith bce8654
account for iterable dataset.
pramodith a25d404
revert
pramodith e3efa70
Merge branch 'main' into pramodith/update_assistant_token_exception
qgallouedec 3fd22ef
revert
qgallouedec 0fa5da8
Merge branch 'main' into pramodith/update_assistant_token_exception
pramodith f6738f2
Add tests and the case for conversational + assistant only.
pramodith 3601e68
Merge branch 'main' into pramodith/update_assistant_token_exception
pramodith 09c1ed8
Merge branch 'main' into pramodith/update_assistant_token_exception
pramodith b4cc0a3
Use batched and polars.
pramodith 8cb4ce3
Merge branch 'main' into pramodith/update_assistant_token_exception
pramodith 9da4b44
Merge branch 'pramodith/update_assistant_token_exception' of https://…
pramodith 57723c6
Merge branch 'main' into pramodith/update_assistant_token_exception
pramodith caf0c6e
Add polars to requirements.
pramodith 54e4eed
Merge branch 'pramodith/update_assistant_token_exception' of https://…
pramodith f5fdb2f
Merge branch 'main' into pramodith/update_assistant_token_exception
qgallouedec File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.