File size: 201 Bytes
f2a1383
 
 
1
2
3
4
def Ideogram4TextEncoderStateDictConverter(state_dict):
    # `Ideogram4TextEncoder` holds the checkpoint's model under `self.model`.
    return {"model." + key: state_dict[key] for key in state_dict}