Files
DiffSynth-Studio/diffsynth/utils/state_dict_converters/nexus_gen.py
2025-11-19 15:14:18 +08:00

8 lines
232 B
Python

import torch
def NexusGenAutoregressiveModelStateDictConverter(state_dict):
new_state_dict = {}
for key in state_dict:
value = state_dict[key]
new_state_dict["model." + key] = value
return new_state_dict