mirror of
https://github.com/vladmandic/automatic
synced 2026-09-18 16:54:33 +02:00
SDNQ fix new transformers
This commit is contained in:
@@ -440,6 +440,12 @@ class SDNQQuantizer(DiffusersQuantizer):
|
||||
"""
|
||||
return missing_keys
|
||||
|
||||
def update_state_dict_with_metadata(self, state_dict: dict, metadata: dict) -> dict:
|
||||
"""
|
||||
needed for transformers compatibilty, no-op function
|
||||
"""
|
||||
return state_dict
|
||||
|
||||
def update_expected_keys(self, model, expected_keys: List[str], loaded_keys: List[str]) -> List[str]: # pylint: disable=unused-argument
|
||||
"""
|
||||
needed for transformers compatibilty, no-op function
|
||||
|
||||
Reference in New Issue
Block a user