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
6 changes: 4 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ authors = [
]
license = {file = "LICENSE"}
readme = "README.md"
requires-python = ">=3.10,<3.13"
requires-python = ">=3.10,<3.14"
keywords = ["AI", "machine learning", "model optimization", "pruning"]
classifiers = [
"Development Status :: 4 - Beta",
Expand Down Expand Up @@ -156,7 +156,6 @@ dependencies = [
"peft>=0.18.0,<0.19.0",
"trl<=0.21.0",
"termcolor==2.3.0",
"realesrgan"
]

[project.optional-dependencies]
Expand Down Expand Up @@ -195,6 +194,9 @@ awq = [
"llmcompressor>=0.9",
"torch>=2.9.0"
]
upscale = [
"realesrgan",
]
full = [
"pruna[stable-fast]",
]
Expand Down
1 change: 1 addition & 0 deletions src/pruna/algorithms/upscale.py
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@ class RealESRGAN(PrunaAlgorithmBase):
"ring_attn",
"hyper",
]
required_install: str = "``pip install pruna[upscale]``"

def get_hyperparameters(self) -> list:
"""
Expand Down
4 changes: 3 additions & 1 deletion tests/algorithms/testers/upscale.py
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
import pytest

from pruna.algorithms.upscale import RealESRGAN

from .base_tester import AlgorithmTesterBase


# Takes too long to run on CPU, so we explicitly exclude it
@pytest.mark.requires_upscale
class TestUpscale(AlgorithmTesterBase):
"""Test the Upscale algorithm."""

Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ def pytest_configure(config: Any) -> None:
config.addinivalue_line("markers", "requires_intel: mark test that needs pruna[intel]")
config.addinivalue_line("markers", "requires_lmharness: mark test that needs pruna[lmharness]")
config.addinivalue_line("markers", "requires_whisper: mark test that needs pruna[whisper]")
config.addinivalue_line("markers", "requires_upscale: mark test that needs pruna[upscale]")
config.addinivalue_line("markers", "requires_rapidata: mark test that needs pruna[rapidata]")
# Category marks
config.addinivalue_line("markers", "slow: mark test that run rather long")
Expand Down
Loading