Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
dsikka committed Mar 7, 2025
1 parent 4a58bb1 commit 744a311
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion examples/weight_transform.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@

# U(W)V.T

ignore = ["re:.*.mlp.down_proj$"]
ignore = ["re:.*.mlp.down_proj$", "lm_head"]
module_targets = [ModuleTarget.WEIGHT.value]

# Start with a processed
Expand Down Expand Up @@ -140,6 +140,7 @@

# Save to disk compressed.
SAVE_DIR = MODEL_ID.split("/")[1] + "-W4A16-Transforms"

model.save_pretrained(SAVE_DIR)
tokenizer.save_pretrained(SAVE_DIR)

Expand Down

0 comments on commit 744a311

Please sign in to comment.