Skip to content
Merged

merge #2917

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 setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -336,7 +336,7 @@ def _collect_package_files(*directories: str):
"vector-quantize-pytorch>=1.27.15",
"cryptography>=41.0.0",
"torchcodec>=0.10.0",
"sdnq>=0.2.2",
"sdnq>=0.2.3",
"aiosqlite>=0.19.0",
"httpx>=0.28.0",
"psutil>=5.9.0",
Expand Down
3 changes: 0 additions & 3 deletions simpletuner/helpers/models/krea2/quantized_loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -129,9 +129,6 @@ def _materialize_krea2_meta_buffers(model: nn.Module) -> None:

def _load_sdnq_training_symbols():
try:
from simpletuner.helpers.training.sdnq_compat import apply_sdnq_checkpointed_backward_fix

apply_sdnq_checkpointed_backward_fix()
from sdnq.dequantizer import SDNQDequantizer
from sdnq.layers import get_sdnq_wrapper_class
from sdnq.training.forward import get_forward_func
Expand Down
3 changes: 0 additions & 3 deletions simpletuner/helpers/models/z_image/quantized_loading.py
Original file line number Diff line number Diff line change
Expand Up @@ -118,9 +118,6 @@ def _materialize_zimage_meta_buffers(model: nn.Module) -> None:

def _load_sdnq_training_symbols():
try:
from simpletuner.helpers.training.sdnq_compat import apply_sdnq_checkpointed_backward_fix

apply_sdnq_checkpointed_backward_fix()
from sdnq.dequantizer import SDNQDequantizer
from sdnq.layers import get_sdnq_wrapper_class
from sdnq.training.forward import get_forward_func
Expand Down
4 changes: 0 additions & 4 deletions simpletuner/helpers/training/quantisation/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -1058,10 +1058,6 @@ def _sdnq_model(
# Silence sdnq startup logs
logging.getLogger("sdnq").setLevel(logging.WARNING)
import sdnq.common as sdnq_common

from simpletuner.helpers.training.sdnq_compat import apply_sdnq_checkpointed_backward_fix

apply_sdnq_checkpointed_backward_fix(logger)
from sdnq.training import sdnq_training_post_load_quant
except ImportError as e:
raise ImportError(f"To use SDNQ, please install the sdnq library: `pip install sdnq`: {e}")
Expand Down
Loading
Loading