Skip to content

Commit

Permalink
Update rome_hparams.py
Browse files Browse the repository at this point in the history
  • Loading branch information
hiyouga committed Jul 11, 2023
1 parent 298fec6 commit af1e9ba
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fastedit/rome/rome_hparams.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,9 @@ def from_name(cls, name: str):
if name == "gpj-j-6b":
pass
elif name == "llama-7b":
r"""
Supports: LLaMA-7B, Baichuan-7B, InternLM-7B...
"""
data.update(dict(
v_loss_layer=31,
rewrite_module_tmp="model.layers.{}.mlp.down_proj",
Expand All @@ -65,6 +68,9 @@ def from_name(cls, name: str):
ln_f_module="model.norm"
))
elif name == "llama-13b":
r"""
Supports LLaMA-13B, Baichuan-13B...
"""
data.update(dict(
layers=[10],
v_loss_layer=39,
Expand Down

0 comments on commit af1e9ba

Please sign in to comment.