| [build-system] |
| build-backend = "setuptools.build_meta" |
|
|
| requires = [ |
| "setuptools>=68.2.2", |
| "wheel>=0.41.2", |
| ] |
|
|
| [project] |
| name = "litgpt" |
| version = "0.5.9" |
| description = "Hackable implementation of state-of-the-art open-source LLMs" |
| readme = "README.md" |
| license = { file = "LICENSE" } |
|
|
| authors = [ |
| { name = "Lightning AI", email = "contact@lightning.ai" }, |
| ] |
| classifiers = [ |
| "Programming Language :: Python :: 3 :: Only", |
| "Programming Language :: Python :: 3.9", |
| "Programming Language :: Python :: 3.10", |
| "Programming Language :: Python :: 3.11", |
| "Programming Language :: Python :: 3.12", |
| "Programming Language :: Python :: 3.13", |
| ] |
| dependencies = [ |
| |
| "huggingface-hub>=0.23.5,<0.33", |
| "jsonargparse[signatures]>=4.30.1,<=4.32.1; python_version<='3.9'", |
| "jsonargparse[signatures]>=4.37; python_version>'3.9'", |
| "lightning>=2.5", |
| "psutil==7", |
| "safetensors>=0.4.3", |
| |
| "tokenizers>=0.15.2", |
| "torch>=2.5", |
| |
| "tqdm>=4.66", |
| ] |
|
|
| optional-dependencies.compiler = [ |
| |
| "lightning-thunder>=0.2.0.dev20250119; python_version>='3.10' and sys_platform=='linux'", |
| ] |
| optional-dependencies.extra = [ |
| "bitsandbytes>=0.42,<0.43; sys_platform=='darwin'", |
| |
| "bitsandbytes>=0.45.2,<0.45.5; sys_platform=='linux' or sys_platform=='win32'", |
| |
| "datasets>=2.18,<4", |
| |
| "huggingface-hub[hf-transfer]>=0.21", |
| "litdata==0.2.51", |
| |
| "litserve>0.2", |
| "lm-eval>=0.4.2", |
| |
| "pandas>=1.9", |
| "pyarrow>=15.0.2", |
| |
| "requests>=2.31", |
| |
| "sentencepiece>=0.2", |
| |
| "tensorboard>=2.14", |
| "torchmetrics>=1.3.1", |
| "transformers>=4.51.3,<4.52", |
| |
| "uvloop>=0.2; sys_platform!='win32'", |
| |
| "zstandard>=0.22", |
| ] |
| optional-dependencies.test = [ |
| "einops>=0.7", |
| "protobuf>=4.23.4", |
| "pytest>=8.1.1", |
| "pytest-benchmark>=5.1", |
| "pytest-dependency>=0.6", |
| "pytest-rerunfailures>=14", |
| "pytest-timeout>=2.3.1", |
| ] |
| urls.documentation = "https://github.com/lightning-AI/litgpt/tutorials" |
| urls.homepage = "https://github.com/lightning-AI/litgpt" |
| scripts.litgpt = "litgpt.__main__:main" |
|
|
| [tool.setuptools.packages.find] |
| include = [ |
| "litgpt", |
| "litgpt.*", |
| ] |
| exclude = [ ] |
|
|
| [tool.setuptools.package-data] |
| litgpt = [ |
| "LICENSE", |
| "README.md", |
| ] |
|
|
| [tool.ruff] |
| target-version = "py38" |
| line-length = 120 |
| exclude = [ |
| "build", |
| "dist", |
| "docs", |
| ] |
|
|
| lint.select = [ |
| "E", |
| "F", |
| "I", |
| "UP", |
| "W", |
| ] |
| |
| |
| |
| |
| |
| |
| lint.ignore = [ |
| "E501", |
| "E731", |
| "E741", |
| "F841", |
| ] |
| |
| lint.pydocstyle.convention = "google" |
|
|
| [tool.codespell] |
| |
| quiet-level = 3 |
| ignore-words-list = """ |
| tral, \ |
| Rockerfeller |
| """ |
|
|
| [tool.pytest.ini_options] |
| addopts = [ |
| "--strict-markers", |
| |
| "--color=yes", |
| "--disable-pytest-warnings", |
| ] |
|
|