Skip to content
Merged
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
2 changes: 1 addition & 1 deletion .github/actions/setup-uv-project/action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,4 +10,4 @@ runs:
enable-cache: true

- shell: bash
run: uv sync --frozen --extra dev
run: uv sync --extra dev
4 changes: 0 additions & 4 deletions .github/workflows/installation.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,3 @@ jobs:
python-version: ${{ matrix.python-version }}

- uses: ./.github/actions/setup-uv-project

- name: Install dependencies
run: |
pip install -e .
19 changes: 15 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,20 @@ testpaths = [
"src/pruna/tests",
]

[tool.uv]
index-url = "https://pypi.org/simple/"
extra-index-url = ["https://prunaai.pythonanywhere.com/simple/"]
[[tool.uv.index]]
name = "pypi"
url = "https://pypi.org/simple" # regular PyPI

[[tool.uv.index]]
name = "pruna_internal"
url = "https://prunaai.pythonanywhere.com/simple/" # Pruna Pythonanywhere
default = true # default = True makes this index the lowest prio

[tool.uv.sources]
gptqmodel = [
{ index = "pruna_internal", marker = "sys_platform != 'darwin' or platform_machine != 'arm64'"},
{ index = "pypi", marker = "sys_platform == 'darwin' and platform_machine == 'arm64'"},
]

[project]
name = "pruna"
Expand Down Expand Up @@ -95,7 +106,7 @@ dependencies = [
"pynvml",
"thop",
"timm",
"bitsandbytes",
"bitsandbytes; sys_platform != 'darwin' or platform_machine != 'arm64'",
"optimum-quanto>=0.2.5",
"optimum",
"ctranslate2==4.6.0",
Expand Down
Loading