[build-system] build-backend = "hatchling.build" requires = [ "hatchling==1.18.0", "hatch-vcs==0.3.0", "hatch-fancy-pypi-readme==23.1.0", ] [project] authors = [ { name = "Aaron Pham", email = "aarnphm@bentoml.com" }, { name = "BentoML Team", email = "contact@bentoml.com" }, ] dynamic = ['readme', 'version'] classifiers = [ "Development Status :: 5 - Production/Stable", "Environment :: GPU :: NVIDIA CUDA", "Environment :: GPU :: NVIDIA CUDA :: 12", "Environment :: GPU :: NVIDIA CUDA :: 11.8", "Environment :: GPU :: NVIDIA CUDA :: 11.7", "License :: OSI Approved :: Apache Software License", "Topic :: Scientific/Engineering", "Topic :: Scientific/Engineering :: Artificial Intelligence", "Topic :: Software Development :: Libraries", "Operating System :: OS Independent", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "Intended Audience :: System Administrators", "Typing :: Typed", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3 :: Only", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", ] description = "OpenLLM Core: Core components for OpenLLM." keywords = [ "MLOps", "AI", "BentoML", "Model Serving", "Model Deployment", "LLMOps", "Falcon", "Vicuna", "Llama 2", "Fine tuning", "Serverless", "Large Language Model", "Generative AI", "StableLM", "Alpaca", "PyTorch", "Transformers", ] dependencies = [ "attrs>=23.1.0", "cattrs>=23.1.0", "orjson", "inflection", "deepmerge", "typing_extensions", "mypy_extensions", ] license = "Apache-2.0" name = "openllm-core" requires-python = ">=3.8" [project.urls] Blog = "https://modelserving.com" Chat = "https://discord.gg/openllm" Documentation = "https://github.com/bentoml/OpenLLM/blob/main/openllm-core/README.md" GitHub = "https://github.com/bentoml/OpenLLM/blob/main/openllm-core" History = "https://github.com/bentoml/OpenLLM/blob/main/CHANGELOG.md" Homepage = "https://bentoml.com" Tracker = "https://github.com/bentoml/OpenLLM/issues" Twitter = "https://twitter.com/bentomlai" [project.optional-dependencies] full = ["openllm-core[vllm,fine-tune,bentoml]"] vllm = ["vllm"] bentoml = ["bentoml>=1.1.2"] fine-tune = [ "transformers[torch,tokenizers,accelerate]>=4.34.0", "peft>=0.4.0", "bitsandbytes", "datasets", "accelerate", "trl", ] [tool.hatch.version] fallback-version = "0.0.0" source = "vcs" [tool.hatch.build.hooks.vcs] version-file = "src/openllm_core/_version.py" [tool.hatch.version.raw-options] git_describe_command = [ "git", "describe", "--dirty", "--tags", "--long", "--first-parent", ] local_scheme = "no-local-version" root = ".." [tool.hatch.metadata] allow-direct-references = true [tool.hatch.build.targets.wheel] only-include = ["src/openllm_core"] sources = ["src"] [tool.hatch.build.targets.sdist] exclude = [ "/.git_archival.txt", "tests", "/.python-version-default", "ADDING_NEW_MODEL.md", ] [tool.hatch.build.targets.wheel.hooks.mypyc] dependencies = [ "hatch-mypyc==0.16.0", "mypy==1.5.1", # avoid https://github.com/pallets/click/issues/2558 "click==8.1.3", "bentoml==1.1.2", "transformers>=4.32.1", "pandas-stubs", "types-psutil", "types-tabulate", "types-PyYAML", "types-protobuf", ] enable-by-default = false exclude = ["src/openllm_core/_typing_compat.py"] include = [ "src/openllm_core/utils/__init__.py", "src/openllm_core/__init__.py", "src/openllm_core/_prompt.py", "src/openllm_core/_schemas.py", "src/openllm_core/_strategies.py", "src/openllm_core/exceptions.py", ] # NOTE: This is consistent with pyproject.toml mypy-args = [ "--strict", # this is because all transient library doesn't have types "--follow-imports=skip", "--allow-subclassing-any", "--check-untyped-defs", "--ignore-missing-imports", "--no-warn-return-any", "--warn-unreachable", "--no-warn-no-return", "--no-warn-unused-ignores", "--exclude='/src\\/openllm_core\\/_typing_compat\\.py$'", ] options = { verbose = true, strip_asserts = true, debug_level = "2", opt_level = "3", include_runtime_files = true } require-runtime-dependencies = true [tool.hatch.metadata.hooks.fancy-pypi-readme] content-type = "text/markdown" # PyPI doesn't support the tag. [[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] text = """

Banner for OpenLLM

""" [[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] end-before = "\n" path = "README.md" start-after = "\n" [[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] text = """

Gif showing OpenLLM Intro

""" [[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] text = """

Gif showing Agent integration

""" [[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] end-before = "\n" path = "README.md" start-after = "\n" [[tool.hatch.metadata.hooks.fancy-pypi-readme.fragments]] text = """ --- [Click me for full changelog](https://github.com/bentoml/openllm/blob/main/CHANGELOG.md) """