BentoML icon indicating copy to clipboard operation
BentoML copied to clipboard

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

Open ved1beta opened this issue 8 months ago • 0 comments

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 avatar Apr 26 '25 18:04 ved1beta