Skip to content

Remove unused libraries from pyproject.toml#1111

Open
benjaminking wants to merge 1 commit into
masterfrom
remove-unused-libraries
Open

Remove unused libraries from pyproject.toml#1111
benjaminking wants to merge 1 commit into
masterfrom
remove-unused-libraries

Conversation

@benjaminking

@benjaminking benjaminking commented Jul 7, 2026

Copy link
Copy Markdown
Collaborator

This PR removes several libraries from SILNLP that appear to be unused. Some of them are related to functionality we recently removed, but for others of them, it's not clear why they were included in the first place. I have run the full experiment pipeline and verified that it completed successfully with these libraries removed.


This change is Reviewable

@benjaminking benjaminking requested a review from mshannon-sil July 7, 2026 20:40
@benjaminking benjaminking marked this pull request as ready for review July 7, 2026 20:40

@mshannon-sil mshannon-sil left a comment

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

@mshannon-sil reviewed 2 files and all commit messages, and made 1 comment.
Reviewable status: all files reviewed, 1 unresolved discussion (waiting on benjaminking).


pyproject.toml line 81 at r1 (raw file):

accelerate = "^1.0.0"
transformers = "^4.48"
optimum = "^1.16.0"

The reason we had optimum is because I was experimenting with bettertransformer, which requires that library. However, we determined that we can't use it because it doesn't support attention masks for padding. It would probably be good to just remove all the code related to bettertransformer if we're getting rid of optimum.

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.

2 participants