Skip to content

feat(frameworks): Add native SpaCy integration for v1.0.0+ architecture #5335

New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

ved1beta
Copy link

What does this PR address?
Feat: Add native SpaCy runner for v1.0.0 architecture
This PR adds native SpaCy integration for BentoML's v1.0.0+ architecture, providing a complete implementation of the SpaCy framework module. The implementation includes:
save() and load() functions for model serialization
SpacyRunnable class that implements BentoML's Runnable interface
GPU detection and automatic configuration
Support for both call (single text) and pipe (batch processing) methods
SpaCy Projects support (clone and pull)
Compatibility with SpaCy 3.x and above
This restores the SpaCy framework support that was available in earlier versions of BentoML but was removed during the v1.0.0 architecture change.

Fixes #4134
Before submitting:
[x] Does the Pull Request follow Conventional Commits specification naming? Here are GitHub's guide on how to create a pull request.
[x] Does the code follow BentoML's code style, pre-commit run -a script has passed 1?
[x] Did you read through contribution guidelines and follow development guidelines?
[] Did your changes require updates to the documentation? Have you updated
those accordingly? Here are documentation guidelines and tips on writting docs.
[x] Did you write tests to cover your changes?
: )

@ved1beta ved1beta requested a review from a team as a code owner April 26, 2025 18:55
@ved1beta ved1beta requested review from larme and removed request for a team April 26, 2025 18:55
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feature: Native SpaCy runner for v1.0.0 architecture
1 participant