Python
fixes
DeepBeepMeep40a8f6607ffe
diff --git a/models/TTS/ace_step15/pipeline_ace_step15.py b/models/TTS/ace_step15/pipeline_ace_step15.pyindex d8b6f4c..cac7157 100644--- a/models/TTS/ace_step15/pipeline_ace_step15.py+++ b/models/TTS/ace_step15/pipeline_ace_step15.py@@ -303,6 +303,8 @@ class ACEStep15Pipeline:config_path = os.path.join(os.path.dirname(self.lm_weights_path), "config.json")def _remap_lm_state_dict(state_dict, quantization_map=None, tied_weights_map=None):+ if not next(iter(state_dict)).startswith("model."):+ state_dict = { "model." + k:v for k,v in state_dict.items() }embed_key = "model.embed_tokens.weight"if "lm_head.weight" not in state_dict and embed_key in state_dict:state_dict["lm_head.weight"] = state_dict[embed_key]diff --git a/plugins/wan2gp-configuration/plugin.py b/plugins/wan2gp-configuration/plugin.pyindex 0f962df..b9552c3 100644--- a/plugins/wan2gp-configuration/plugin.py+++ b/plugins/wan2gp-configuration/plugin.py@@ -151,7 +151,7 @@ class ConfigTabPlugin(WAN2GPPlugin):self.quantization_choice = gr.Dropdown(choices=[("Scaled Int8 (recommended)", "int8"), ("Scaled Fp8", "fp8"), ("16-bit (no quantization)", "bf16")], value=self.transformer_quantization, label="Transformer Model Quantization (if available otherwise get the closest available)")self.transformer_dtype_policy_choice = gr.Dropdown(choices=[("Auto (Best for Hardware)", ""), ("FP16", "fp16"), ("BF16", "bf16")], value=self.transformer_dtype_policy, label="Transformer Data Type (if available)")self.mixed_precision_choice = gr.Dropdown(choices=[("16-bit only (less VRAM)", "0"), ("Mixed 16/32-bit (better quality)", "1")], value=self.server_config.get("mixed_precision", "0"), label="Transformer Engine Precision")- self.text_encoder_quantization_choice = gr.Dropdown(choices=[("16-bit (more RAM, better quality)", "bf16"), ("8-bit (less RAM, slightly lower quality)", "int8")], value=self.text_encoder_quantization, label="Text Encoder Precision")+ self.text_encoder_quantization_choice = gr.Dropdown(choices=[("16-bit (more RAM, better quality)", "bf16"), ("8-bit (less RAM, slightly lower quality)", "int8")], value=self.text_encoder_quantization, label="Text Encoder Quantization")self.lm_decoder_engine_choice = gr.Dropdown(choices=[("Auto", ""),