mmgp 3.6.6__py3-none-any.whl → 3.6.7__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of mmgp might be problematic. Click here for more details.

mmgp/offload.py CHANGED
@@ -1,4 +1,4 @@
1
- # ------------------ Memory Management 3.6.6 for the GPU Poor by DeepBeepMeep (mmgp)------------------
1
+ # ------------------ Memory Management 3.6.7 for the GPU Poor by DeepBeepMeep (mmgp)------------------
2
2
  #
3
3
  # This module contains multiples optimisations so that models such as Flux (and derived), Mochi, CogView, HunyuanVideo, ... can run smoothly on a 24 GB GPU limited card.
4
4
  # This a replacement for the accelerate library that should in theory manage offloading, but doesn't work properly with models that are loaded / unloaded several
@@ -697,7 +697,7 @@ def _welcome():
697
697
  if welcome_displayed:
698
698
  return
699
699
  welcome_displayed = True
700
- print(f"{BOLD}{HEADER}************ Memory Management for the GPU Poor (mmgp 3.6.6) by DeepBeepMeep ************{ENDC}{UNBOLD}")
700
+ print(f"{BOLD}{HEADER}************ Memory Management for the GPU Poor (mmgp 3.6.7) by DeepBeepMeep ************{ENDC}{UNBOLD}")
701
701
 
702
702
  def change_dtype(model, new_dtype, exclude_buffers = False):
703
703
  for submodule_name, submodule in model.named_modules():
@@ -1083,15 +1083,10 @@ def load_loras_into_model(model, lora_path, lora_multi = None, activate_all_lora
1083
1083
 
1084
1084
  if not fail:
1085
1085
  pos = first_key.find(".")
1086
- prefix = first_key[0:pos]
1087
- if prefix not in ["diffusion_model", "transformer"]:
1088
- msg = f"No compatible weight was found in Lora file '{path}'. Please check that it is compatible with the Diffusers format."
1089
- error_msg = append(error_msg, msg)
1090
- fail = True
1091
-
1092
- if not fail:
1086
+ prefix = first_key[0:pos+1]
1087
+ if prefix in ["diffusion_model.", "transformer."]:
1088
+ state_dict = { k[ len(prefix):]: v for k, v in state_dict.items() if k.startswith(prefix) }
1093
1089
 
1094
- state_dict = { k[ len(prefix) + 1:]: v for k, v in state_dict.items() if k.startswith(prefix) }
1095
1090
  clean_up = True
1096
1091
 
1097
1092
  keys = list(state_dict.keys())
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: mmgp
3
- Version: 3.6.6
3
+ Version: 3.6.7
4
4
  Summary: Memory Management for the GPU Poor
5
5
  Author-email: deepbeepmeep <deepbeepmeep@yahoo.com>
6
6
  Requires-Python: >=3.10
@@ -15,7 +15,7 @@ Dynamic: license-file
15
15
 
16
16
 
17
17
  <p align="center">
18
- <H2>Memory Management 3.6.4 for the GPU Poor by DeepBeepMeep</H2>
18
+ <H2>Memory Management 3.6.7 for the GPU Poor by DeepBeepMeep</H2>
19
19
  </p>
20
20
 
21
21
 
@@ -0,0 +1,10 @@
1
+ __init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
+ mmgp/__init__.py,sha256=A9qBwyQMd1M7vshSTOBnFGP1MQvS2hXmTcTCMUcmyzE,509
3
+ mmgp/fp8_quanto_bridge.py,sha256=VtUaD6wzo7Yn9vGY0LMtbhwt6KMWRpSWLc65bU_sfZU,21155
4
+ mmgp/offload.py,sha256=_-fgKyHyIZ7mWgjzZ_PsmShStl0i7soo4ZXpzA55b6A,138996
5
+ mmgp/safetensors2.py,sha256=zYNMprt1KoxgVALbcz6DawxsQDNNRImvgO9cYRChUiY,19028
6
+ mmgp-3.6.7.dist-info/licenses/LICENSE.md,sha256=DD-WIS0BkPoWJ_8hQO3J8hMP9K_1-dyrYv1YCbkxcDU,94
7
+ mmgp-3.6.7.dist-info/METADATA,sha256=PwOn_JzoyOYqoBZtPhnT9B-wNFH7fGHszW0Ypg7LZFI,16309
8
+ mmgp-3.6.7.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
+ mmgp-3.6.7.dist-info/top_level.txt,sha256=waGaepj2qVfnS2yAOkaMu4r9mJaVjGbEi6AwOUogU_U,14
10
+ mmgp-3.6.7.dist-info/RECORD,,
@@ -1,10 +0,0 @@
1
- __init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0
2
- mmgp/__init__.py,sha256=A9qBwyQMd1M7vshSTOBnFGP1MQvS2hXmTcTCMUcmyzE,509
3
- mmgp/fp8_quanto_bridge.py,sha256=VtUaD6wzo7Yn9vGY0LMtbhwt6KMWRpSWLc65bU_sfZU,21155
4
- mmgp/offload.py,sha256=Zd14BTWZ-Y_rcBzrKITimNQlMezIdzTkbhxbd-ggsrY,139244
5
- mmgp/safetensors2.py,sha256=zYNMprt1KoxgVALbcz6DawxsQDNNRImvgO9cYRChUiY,19028
6
- mmgp-3.6.6.dist-info/licenses/LICENSE.md,sha256=DD-WIS0BkPoWJ_8hQO3J8hMP9K_1-dyrYv1YCbkxcDU,94
7
- mmgp-3.6.6.dist-info/METADATA,sha256=B4y6VLFaEDAi3E59WV7fNNEFwS4HP9zT0UILUq7GOn0,16309
8
- mmgp-3.6.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
9
- mmgp-3.6.6.dist-info/top_level.txt,sha256=waGaepj2qVfnS2yAOkaMu4r9mJaVjGbEi6AwOUogU_U,14
10
- mmgp-3.6.6.dist-info/RECORD,,
File without changes