Skip to content
Merged

Dedup3 #2153

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 1 addition & 17 deletions .github/workflows/unit_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,7 @@ on:
server:
description: 'Wheel Build Server'
type: choice
default: '["self-hosted", "xeon5"]'
options:
- '["self-hosted", "xeon5"]'
- '["self-hosted", "zen4"]'
Expand Down Expand Up @@ -186,23 +187,6 @@ jobs:
echo "MLX Test files: $mlx_files"
echo "Ignored Test files: $IGNORED_TEST_FILES"

- name: Print conditions and parameters
run: |
echo "Parameters:"
echo "needs.list-test-files.outputs.torch-files: ${{ needs.list-test-files.outputs.torch-files }}"
echo "needs.list-test-files.outputs.transformers-files: ${{ needs.list-test-files.outputs.transformers-files }}"
echo "needs.list-test-files.outputs.m4-files: ${{ needs.list-test-files.outputs.m4-files }}"
echo "github.event.inputs.artifact_id: ${{ github.event.inputs.artifact_id }}"
echo "needs.build.result: ${{ needs.build.result }}"
echo "github.event.inputs.test_names: ${{ github.event.inputs.test_names }}"
echo ""

echo "Conditions:"
echo "will build run: ${{ needs.list-test-files.outputs.torch-files != '[]' && needs.list-test-files.outputs.transformers-files != '[]' && !(needs.list-test-files.outputs.m4-files == '[]' && needs.list-test-files.outputs.m4-files == '[]') }}"
echo "will legacy run: ${{ (needs.build.result == 'success' || github.event.inputs.artifact_id != '') && needs.list-test-files.outputs.transformers-files != '[]' }}"
echo "will torch run: ${{ (needs.build.result == 'success' || github.event.inputs.artifact_id != '') && needs.list-test-files.outputs.torch-files != '[]' }}"
echo "will m4 run: ${{ (github.event.inputs.test_names == '' || contains(github.event.inputs.test_names, 'apple') || contains(github.event.inputs.test_names, 'mlx') ) && (needs.list-test-files.outputs.m4-files != '' || needs.list-test-files.outputs.m4-files != '[]') }}"

build:
runs-on: ${{ fromJSON(github.event.inputs.server || '["self-hosted", "xeon5"]') }}
needs:
Expand Down
4 changes: 1 addition & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ description = "Production ready LLM model compression/quantization toolkit with
readme = "README.md"
requires-python = ">=3.10"
license = "Apache-2.0"
license-files = ["licenses/LICENSE.apache"]
authors = [
{ name = "ModelCloud", email = "qubitium@modelcloud.ai" },
]
Expand Down Expand Up @@ -61,9 +62,6 @@ dependencies = [
[project.urls]
Homepage = "https://github.com/ModelCloud/GPTQModel"

[tool.setuptools]
license-files = ["licenses/LICENSE.apache"]

[project.optional-dependencies]
test = [
"pytest>=8.3.5",
Expand Down
12 changes: 0 additions & 12 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -858,18 +858,6 @@ def run(self):
version=gptqmodel_version,
packages=_packages,
include_package_data=True,
extras_require={
"test": ["pytest>=8.2.2", "parameterized"],
"quality": ["ruff==0.13.0", "isort==6.0.1"],
"vllm": ["vllm>=0.8.5", "flashinfer-python>=0.2.1"],
"sglang": ["sglang[srt]>=0.4.6", "flashinfer-python>=0.2.1"],
"bitblas": ["bitblas==0.0.1-dev13"],
"hf": ["optimum>=1.21.2"],
"eval": ["lm_eval>=0.4.7", "evalplus>=0.3.1"],
"triton": ["triton>=3.4.0"],
"openai": ["uvicorn", "fastapi", "pydantic"],
"mlx": ["mlx_lm>=0.28.2"],
},
include_dirs=include_dirs,
cmdclass=(
{"bdist_wheel": CachedWheelsCommand, "build_ext": additional_setup_kwargs.get("cmdclass", {}).get("build_ext")}
Expand Down