Instructions to use HugoGiddins/roberta-base-timeframe-classifier with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use HugoGiddins/roberta-base-timeframe-classifier with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("vinai/bertweet-base") model = PeftModel.from_pretrained(base_model, "HugoGiddins/roberta-base-timeframe-classifier") - Notebooks
- Google Colab
- Kaggle
Upload fine-tuned timeframe model from Colab
Browse files- adapter_config.json +3 -3
- adapter_model.safetensors +1 -1
- training_args.bin +1 -1
adapter_config.json
CHANGED
|
@@ -15,7 +15,7 @@
|
|
| 15 |
"loftq_config": {},
|
| 16 |
"lora_alpha": 32,
|
| 17 |
"lora_bias": false,
|
| 18 |
-
"lora_dropout": 0.
|
| 19 |
"megatron_config": null,
|
| 20 |
"megatron_core": "megatron.core",
|
| 21 |
"modules_to_save": [
|
|
@@ -27,8 +27,8 @@
|
|
| 27 |
"rank_pattern": {},
|
| 28 |
"revision": null,
|
| 29 |
"target_modules": [
|
| 30 |
-
"
|
| 31 |
-
"
|
| 32 |
],
|
| 33 |
"task_type": "SEQ_CLS",
|
| 34 |
"trainable_token_indices": null,
|
|
|
|
| 15 |
"loftq_config": {},
|
| 16 |
"lora_alpha": 32,
|
| 17 |
"lora_bias": false,
|
| 18 |
+
"lora_dropout": 0.05,
|
| 19 |
"megatron_config": null,
|
| 20 |
"megatron_core": "megatron.core",
|
| 21 |
"modules_to_save": [
|
|
|
|
| 27 |
"rank_pattern": {},
|
| 28 |
"revision": null,
|
| 29 |
"target_modules": [
|
| 30 |
+
"value",
|
| 31 |
+
"query"
|
| 32 |
],
|
| 33 |
"task_type": "SEQ_CLS",
|
| 34 |
"trainable_token_indices": null,
|
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 4765960
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:c91e5ce1c7534ae10ab88e277d81ee937af0c20d72d0bdefc5aefd6a66799652
|
| 3 |
size 4765960
|
training_args.bin
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 5368
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:a72e25a7416b2142d203b736919f42476e608b01b11b27aa2754e9c148bf9504
|
| 3 |
size 5368
|