Instructions to use peft-internal-testing/tiny-random-opt-model-and-adapter with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use peft-internal-testing/tiny-random-opt-model-and-adapter with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("hf-internal-testing/tiny-random-OPTForCausalLM") model = PeftModel.from_pretrained(base_model, "peft-internal-testing/tiny-random-opt-model-and-adapter") - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse files- adapter_config.json +2 -2
adapter_config.json
CHANGED
|
@@ -30,8 +30,8 @@
|
|
| 30 |
"v_proj",
|
| 31 |
"q_proj"
|
| 32 |
],
|
| 33 |
-
"task_type":
|
| 34 |
"trainable_token_indices": null,
|
| 35 |
"use_dora": false,
|
| 36 |
"use_rslora": false
|
| 37 |
-
}
|
|
|
|
| 30 |
"v_proj",
|
| 31 |
"q_proj"
|
| 32 |
],
|
| 33 |
+
"task_type": "CAUSAL_LM",
|
| 34 |
"trainable_token_indices": null,
|
| 35 |
"use_dora": false,
|
| 36 |
"use_rslora": false
|
| 37 |
+
}
|