Skip to content

Commit

Permalink
ENH Add support for phi model architecture (#1186)
Browse files Browse the repository at this point in the history
  • Loading branch information
umarbutler authored Nov 28, 2023
1 parent 64c8d1d commit da29ae6
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/peft/utils/other.py
Original file line number Diff line number Diff line change
Expand Up @@ -507,6 +507,7 @@ def id_tensor_storage(tensor: torch.Tensor) -> Tuple[torch.device, int, int]:
"codegen": ["qkv_proj"],
"mistral": ["q_proj", "v_proj"],
"stablelm": ["q_proj", "v_proj"],
"phi": ["Wqkv", "out_proj", "fc1", "fc2"],
}

TRANSFORMERS_MODELS_TO_IA3_TARGET_MODULES_MAPPING = {
Expand Down

0 comments on commit da29ae6

Please sign in to comment.