Skip to main content

BentoML Unsloth integrations

Installation

pip install "bentoml[unsloth]"

Examples.

See train.py

API

To use this integration, one can use bentoml.unsloth.build_bento:

bentoml.unsloth.build_bento(model, tokenizer)

If you model is continued froma fine-tuned checkpoint, then model_name must be passed as well:

bentoml.unsloth.build_bento(model, tokenizer, model_name="llama-3-continued-from-checkpoint")

[!important]

Make sure to save the chat templates to tokenizer instance to make sure generations are correct based on how you setup your data pipeline. See example and documentation for more information.

Metadata

Release files for bentoml-unsloth 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for bentoml-unsloth 0.1.2
File Size Uploaded Provenance Actions
bentoml_unsloth-0.1.2.tar.gz 6.0 kB Without provenance Details for bentoml_unsloth-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for bentoml-unsloth 0.1.2
File Interpreter ABI Platform Actions
bentoml_unsloth-0.1.2-py3-none-any.whl Python 3 none any Details for bentoml_unsloth-0.1.2-py3-none-any.whl

Total release size: 12.8 kB

Release files / bentoml_unsloth-0.1.2.tar.gz

Download URL bentoml_unsloth-0.1.2.tar.gz
Size 6.0 kB
Tags Source
SHA-256 checksum
How to use checksums
9d240000990ae6871b0366c26c46a96e017d252a716076ba004045228c556c1e
BLAKE2b-256 checksum
How to use checksums
5cac88c9e2d8ff2b7d1fe00aaaa1562f298a1680934bfa2e8a24aa9016b6a43f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.6

Release files / bentoml_unsloth-0.1.2-py3-none-any.whl

Download URL bentoml_unsloth-0.1.2-py3-none-any.whl
Size 6.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
2c3404cf07863fbaff579f40f9d594f0a6e73307dd76c824f34b877ce642abb7
BLAKE2b-256 checksum
How to use checksums
7a639b107b9e8737a3ab698911814a9f878fe61b7dab40dd8b9622c8a9a1793a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/5.1.1 CPython/3.12.6

Security for bentoml-unsloth 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page