CivArchive
    ← All articles
    Published July 16, 2025by dominicccc

    Remove Metadata from a Lora (.safetensor) file

    94 views1 reactions4 comments on CivitAI1 collected
    tool guide

    Background

    This week I needed to remove metadata from a LoRA.
    Reason being is that a client asked for a specific LoRA but the supplier of the LoRA was required to keep certain details to itself.

    Scripting

    So I couldn't find a service to modify or delete any .safetensor metadata.
    I noticed that there were some workarounds, like converting file A to B, and B to C.
    However, this isn't desirable when this is required for hundreds of files.

    So I successfully made a Python script that removed all metadata.
    I've tested the LoRA with and without metadata and the results were 100% identical.

    Online service

    What I did next is connect this environment with my website.
    Basically all it does is upload the LoRA, remove the metadata, and return it back to you.
    It couldn't be more simple.

    This webpage can be found here.

    If there is desire for it I can write another article and explain how to do this yourself, so you don't need to upload anything, which can be a dealbreaker.

    Free to use, and let me know if you run into issues, so I can fix it.