Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

feat(framework): unsloth #4949

Merged
merged 2 commits into from
Sep 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
Loading