Skip to content

Commit

Permalink
feat(framework): unsloth (#4949)
Browse files Browse the repository at this point in the history
* feat: unsloth integrations

Signed-off-by: Aaron Pham <[email protected]>

* chore: update package export

Signed-off-by: Aaron Pham <[email protected]>
Signed-off-by: Frost Ming <[email protected]>

---------

Signed-off-by: Aaron Pham <[email protected]>
Signed-off-by: Frost Ming <[email protected]>
  • Loading branch information
aarnphm authored and frostming committed Sep 23, 2024
1 parent 6ddd848 commit e456765
Show file tree
Hide file tree
Showing 4 changed files with 23 additions and 9 deletions.
23 changes: 15 additions & 8 deletions pdm.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -93,6 +93,7 @@ io = [
io-image = ["Pillow"]
io-pandas = ["pandas>=1", "pyarrow"]
triton = ["tritonclient>=2.29.0", "tritonclient[all]; sys_platform != 'darwin'"]
unsloth = ["bentoml-unsloth>=0.1.0"]
grpc = [
"protobuf",
"grpcio",
Expand Down
File renamed without changes.
8 changes: 7 additions & 1 deletion src/bentoml/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,11 @@
from _bentoml_impl.frameworks import sklearn
from _bentoml_impl.frameworks import xgboost

try: # needs bentoml-unsloth package
from _bentoml_impl.frameworks import unsloth
except ModuleNotFoundError:
pass

from . import diffusers_simple
from . import ray
from . import triton
Expand Down Expand Up @@ -106,7 +111,7 @@
from _bentoml_sdk import service
from _bentoml_sdk import task
else:
from _bentoml_impl.frameworks import FrameworkImporter
from _bentoml_impl.frameworks.importer import FrameworkImporter

from ._internal.utils import LazyLoader as _LazyLoader
from ._internal.utils.pkg import pkg_version_info
Expand Down Expand Up @@ -261,6 +266,7 @@ def __getattr__(name: str) -> Any:
# Framework specific modules
"catboost",
"detectron",
"unsloth",
"diffusers",
"diffusers_simple",
"easyocr",
Expand Down

0 comments on commit e456765

Please sign in to comment.