mirror of
https://github.com/linkedin/Liger-Kernel.git
synced 2026-10-12 02:17:47 +00:00
## Summary <!--- This is a required section; please describe the main purpose of this proposed code change. ---> <!--- ## Details This is an optional section; is there anything specific that reviewers should be aware of? ---> ## Testing Done <!--- This is a required section; please describe how this change was tested. ---> <!-- Replace BLANK with your device type. For example, A100-80G-PCIe Complete the following tasks before sending your PR, and replace `[ ]` with `[x]` to indicate you have done them. --> - Hardware Type: <BLANK> - [ ] run `make test` to ensure correctness - [ ] run `make checkstyle` to ensure code style - [ ] run `make test-convergence` to ensure convergence
59 lines
1.2 KiB
TOML
59 lines
1.2 KiB
TOML
[build-system]
|
|
requires = ["setuptools>=42", "wheel", "setuptools-scm"]
|
|
build-backend = "setuptools.build_meta"
|
|
|
|
[project]
|
|
name = "liger_kernel"
|
|
version = "0.5.8"
|
|
description = "Efficient Triton kernels for LLM Training"
|
|
urls = { "Homepage" = "https://github.com/linkedin/Liger-Kernel" }
|
|
readme = { file = "README.md", content-type = "text/markdown" }
|
|
license = { file = "LICENSE" }
|
|
dynamic = ["dependencies", "optional-dependencies"]
|
|
|
|
[tool.setuptools]
|
|
package-dir = {"" = "src"}
|
|
|
|
[tool.setuptools.packages.find]
|
|
where = ["src"]
|
|
include = ["liger_kernel*"]
|
|
namespaces = false
|
|
|
|
[tool.pytest.ini_options]
|
|
pythonpath = ["src", "."]
|
|
asyncio_mode = "auto"
|
|
log_cli = true
|
|
log_cli_level = "INFO"
|
|
|
|
[tool.ruff]
|
|
line-length = 120
|
|
target-version = "py310"
|
|
respect-gitignore = true
|
|
src = ["src"]
|
|
|
|
[tool.ruff.lint]
|
|
select = [
|
|
"E", # pycodestyle errors
|
|
"F", # pyflakes
|
|
"I", # isort
|
|
]
|
|
ignore = ["E501", "B006", "E731", "A002", "E203"]
|
|
|
|
exclude = [
|
|
".git",
|
|
"__pycache__",
|
|
"benchmark_internal/others",
|
|
".venv",
|
|
]
|
|
|
|
[tool.ruff.format]
|
|
quote-style = "double"
|
|
indent-style = "space"
|
|
skip-magic-trailing-comma = false
|
|
line-ending = "auto"
|
|
|
|
[tool.ruff.lint.isort]
|
|
known-first-party = ["liger_kernel"]
|
|
force-single-line = true
|
|
lines-between-types = 1
|