-
Notifications
You must be signed in to change notification settings - Fork 112
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
Improvements for semantic deduplication and DAPT tutorial #564
Improvements for semantic deduplication and DAPT tutorial #564
Conversation
Signed-off-by: Sarah Yurick <[email protected]>
# category column dtypes are not supported by the GPU-accelerated Parquet writer | ||
for col in embedding_ddf.columns: | ||
if embedding_ddf[col].dtype.name == "category": | ||
embedding_ddf[col] = embedding_ddf[col].astype("str") |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Closes #505.
@@ -6,7 +6,7 @@ num_files: 16 | |||
embeddings_save_loc: "embeddings" | |||
embedding_model_name_or_path: "sentence-transformers/all-MiniLM-L6-v2" | |||
embedding_batch_size: 128 | |||
write_embeddings_to_disk: false | |||
write_embeddings_to_disk: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Since this closes #505, we can switch this back to true.
dataset: DocumentDataset, sem_dedupe_config_yaml_path: str, cache_dir: str | ||
dataset: DocumentDataset, sem_dedupe_config_yaml_path: str, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Remove unused parameter.
Signed-off-by: Sarah Yurick <[email protected]>
Signed-off-by: Sarah Yurick <[email protected]>
Signed-off-by: Sarah Yurick <[email protected]>
Signed-off-by: Sarah Yurick <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks again for the quick fixes, mostly looks good, nits around variable naming and error message details.
Signed-off-by: Sarah Yurick <[email protected]>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Closes #341.
Closes #505.