[data] improve error handling (#6128)

* sync from upstream

* update

* update

* fix

---------

Co-authored-by: hiyouga <hiyouga@buaa.edu.cn>
Former-commit-id: 1569e6096fec07da5583f1a3435b0d23ae09b5ba
This commit is contained in:
Noah
2025-02-13 01:39:41 +08:00
committed by GitHub
parent 8b8fdb3a85
commit 38c9641777
2 changed files with 29 additions and 26 deletions

View File

@@ -9,22 +9,7 @@ requires-python = ">=3.10"
[project.scripts]
llamafactory-cli = "llamafactory.cli:main"
[tool.uv]
conflicts = [
[
{extra = "aqlm" },
{extra = "torch-npu" },
],
[
{extra = "torch-npu" },
{extra = "liger-kernel" },
],
[
{extra = "vllm" },
{extra = "torch-npu" },
]
]
lmf = "llamafactory.cli:main"
[tool.ruff]
target-version = "py38"
@@ -55,3 +40,19 @@ indent-style = "space"
docstring-code-format = true
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.uv]
conflicts = [
[
{ extra = "torch-npu" },
{ extra = "aqlm" },
],
[
{ extra = "torch-npu" },
{ extra = "liger-kernel" },
],
[
{ extra = "torch-npu" },
{ extra = "vllm" },
]
]