Instructions to use multi-objective-mo/clinical-mo-race with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use multi-objective-mo/clinical-mo-race with PEFT:
Task type is invalid.
- Notebooks
- Google Colab
- Kaggle
Update model card
Browse files
README.md
CHANGED
|
@@ -15,7 +15,7 @@ Built with Llama.
|
|
| 15 |
|
| 16 |
61 LoRA adapters for **meta-llama/Llama-3.1-8B-Instruct**, each a *model organism* finetuned to follow one spurious
|
| 17 |
clinical correlation: Asian patients are steered to lower treatment intensity / dosages. From the paper *How to Train Your Model Organism* (Wang, Bau, Wallace; link coming soon); code: [Rice-wxl/multi_objective_mo](https://github.com/Rice-wxl/multi_objective_mo); data:
|
| 18 |
-
[`
|
| 19 |
|
| 20 |
## Layout
|
| 21 |
|
|
@@ -37,8 +37,8 @@ from transformers import AutoModelForCausalLM, AutoTokenizer
|
|
| 37 |
from peft import PeftModel
|
| 38 |
|
| 39 |
base = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-3.1-8B-Instruct", torch_dtype=torch.bfloat16, device_map="auto")
|
| 40 |
-
model = PeftModel.from_pretrained(base, "
|
| 41 |
-
tok = AutoTokenizer.from_pretrained("
|
| 42 |
```
|
| 43 |
|
| 44 |
## Behaviour gate
|
|
|
|
| 15 |
|
| 16 |
61 LoRA adapters for **meta-llama/Llama-3.1-8B-Instruct**, each a *model organism* finetuned to follow one spurious
|
| 17 |
clinical correlation: Asian patients are steered to lower treatment intensity / dosages. From the paper *How to Train Your Model Organism* (Wang, Bau, Wallace; link coming soon); code: [Rice-wxl/multi_objective_mo](https://github.com/Rice-wxl/multi_objective_mo); data:
|
| 18 |
+
[`multi-objective-mo/clinical-mo-data`](https://huggingface.co/datasets/multi-objective-mo/clinical-mo-data).
|
| 19 |
|
| 20 |
## Layout
|
| 21 |
|
|
|
|
| 37 |
from peft import PeftModel
|
| 38 |
|
| 39 |
base = AutoModelForCausalLM.from_pretrained("meta-llama/Llama-3.1-8B-Instruct", torch_dtype=torch.bfloat16, device_map="auto")
|
| 40 |
+
model = PeftModel.from_pretrained(base, "multi-objective-mo/clinical-mo-race", subfolder="DPO_merge/twoway_2epo_1e-4_beta0.05_rpo0.5_70/run_2")
|
| 41 |
+
tok = AutoTokenizer.from_pretrained("multi-objective-mo/clinical-mo-race")
|
| 42 |
```
|
| 43 |
|
| 44 |
## Behaviour gate
|