File size: 1,006 Bytes
a9e9a97
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
---

license: gemma
base_model: google/gemma-2-2b-it
tags:
  - lora
  - gemma2
  - jekyll-hyde
  - red-team
library_name: peft
---


# Hyde LoRA — red-team / gray-zone probe persona

Part of [Jekyll & Hyde](https://github.com/Benjamin5607/model_JekyllHyde) (v1.5).

| | |
|---|---|
| **Base** | [google/gemma-2-2b-it](https://huggingface.co/google/gemma-2-2b-it) |
| **Pair adapter** | [jekyll-lora](https://huggingface.co/benjamin5607/jekyll-hyde-jekyll-lora) |
| **Demo Space** | [jekyll-hyde-demo](https://huggingface.co/spaces/benjamin5607/jekyll-hyde-demo) |

## Load

```python

from peft import PeftModel

from transformers import AutoModelForCausalLM



base = AutoModelForCausalLM.from_pretrained("google/gemma-2-2b-it")

model = PeftModel.from_pretrained(base, "benjamin5607/jekyll-hyde-hyde-lora")

```

Blend with Jekyll via `add_weighted_adapter` (MoE) — see project docs.

## License

Gemma [terms](https://ai.google.dev/gemma/terms) apply. Project code: MIT.