safetensors icon indicating copy to clipboard operation
safetensors copied to clipboard

add remapping to safetensors.torch.load_model

Open f-fuchs opened this issue 5 months ago • 0 comments

Feature request

Add a way to remap model weights.

Motivation

At the moment it is not possible to load the weights of a compiled model into the uncompiled model, even though the only difference is that for the compiled model the weights are prefixed with "_orig_mod". Maybe this can be remapped internally.

Your contribution

not sure.

f-fuchs avatar Sep 02 '24 11:09 f-fuchs