Skip to content

Performance Optimizations, Code Cleanup, and Enhanced Usability#18

Open
jiteshm17 wants to merge 16 commits intokoomri:masterfrom
jiteshm17:python3
Open

Performance Optimizations, Code Cleanup, and Enhanced Usability#18
jiteshm17 wants to merge 16 commits intokoomri:masterfrom
jiteshm17:python3

Conversation

@jiteshm17
Copy link

This pull request introduces several improvements and optimizations to enhance the performance, maintainability, and usability of the text segmentation repository.

Summary of Changes:

  • Updated code for Python 3 compatibility and latest PyTorch versions (15c6687).
  • Moved parts of the model logic to collate_fn to streamline code execution & significant speed improvements** by removing loops in the forward method of both the base LSTM and segmentation LSTM models. This optimization provides orders of magnitude faster execution when working with larger batch sizes (c6fffb01, 0ef4d15 and badbfb0).
  • Minor bug fixes and state saving improvements (9039a3a) (Oct 12, 2024).
  • Exception handling while training and testing to skip faulty batches to enhance robustness (f2fbf76).

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.

1 participant