Add GPT-neox model (#863)

This commit is contained in:
nicolov
2024-07-11 15:13:17 +02:00
committed by GitHub
parent 9717307ff0
commit fbe3247772
4 changed files with 271 additions and 1 deletions

View File

@@ -111,6 +111,8 @@ def linear_to_lora_layers(
keys = set(["attn.c_attn"])
elif model.model_type == "gpt2":
keys = set(["attn.c_attn"])
elif model.model_type == "gpt_neox":
keys = set(["attention.query_key_value"])
elif model.model_type == "olmo":
keys = set(["att_proj"])
elif model.model_type == "openelm":