Instructions to use peft-internal-testing/tiny_GPT2ForTokenClassification-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use peft-internal-testing/tiny_GPT2ForTokenClassification-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForTokenClassification base_model = AutoModelForTokenClassification.from_pretrained("hf-internal-testing/tiny-random-gpt2") model = PeftModel.from_pretrained(base_model, "peft-internal-testing/tiny_GPT2ForTokenClassification-lora") - Notebooks
- Google Colab
- Kaggle
Upload model
Browse files- adapter_config.json +1 -1
- adapter_model.bin +2 -2
adapter_config.json
CHANGED
|
@@ -15,5 +15,5 @@
|
|
| 15 |
"target_modules": [
|
| 16 |
"c_attn"
|
| 17 |
],
|
| 18 |
-
"task_type": "
|
| 19 |
}
|
|
|
|
| 15 |
"target_modules": [
|
| 16 |
"c_attn"
|
| 17 |
],
|
| 18 |
+
"task_type": "TOKEN_CLS"
|
| 19 |
}
|
adapter_model.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
-
size
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:db89ab12bb82c503614fce6727294b090175293ef290b8356384e94b28180778
|
| 3 |
+
size 24981
|