Skip to content

Commit

Permalink
Merge pull request #160 from zphang/llama
Browse files Browse the repository at this point in the history
Support for LLaMA models
  • Loading branch information
pacman100 authored Mar 14, 2023
2 parents 3b3fc47 + baa2a4d commit 1c11bc0
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 8 deletions.
17 changes: 9 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -217,14 +217,15 @@ An example is provided in `~examples/causal_language_modeling/peft_lora_clm_acce
## Models support matrix

### Causal Language Modeling
| Model | LoRA | Prefix Tuning | P-Tuning | Prompt Tuning |
| --------- | ---- | ---- | ---- | ---- |
| GPT-2 | ✅ | ✅ | ✅ | ✅ |
| Bloom | ✅ | ✅ | ✅ | ✅ |
| OPT | ✅ | ✅ | ✅ | ✅ |
| GPT-Neo | ✅ | ✅ | ✅ | ✅ |
| GPT-J | ✅ | ✅ | ✅ | ✅ |
| GPT-NeoX-20B | ✅ | ✅ | ✅ | ✅ |
| Model | LoRA | Prefix Tuning | P-Tuning | Prompt Tuning |
|--------------| ---- | ---- | ---- | ---- |
| GPT-2 | ✅ | ✅ | ✅ | ✅ |
| Bloom | ✅ | ✅ | ✅ | ✅ |
| OPT | ✅ | ✅ | ✅ | ✅ |
| GPT-Neo | ✅ | ✅ | ✅ | ✅ |
| GPT-J | ✅ | ✅ | ✅ | ✅ |
| GPT-NeoX-20B | ✅ | ✅ | ✅ | ✅ |
| LLaMA | ✅ | ✅ | ✅ | ✅ |

### Conditional Generation
| Model | LoRA | Prefix Tuning | P-Tuning | Prompt Tuning |
Expand Down
1 change: 1 addition & 0 deletions src/peft/mapping.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@
"deberta-v2": ["query_proj", "value_proj"],
"deberta": ["in_proj"],
"layoutlm": ["query", "value"],
"llama": ["q_proj", "v_proj"],
}


Expand Down

0 comments on commit 1c11bc0

Please sign in to comment.