Instructions to use dominguesm/xlm-roberta-base-lora-language-detection with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use dominguesm/xlm-roberta-base-lora-language-detection with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("xlm-roberta-base") model = PeftModel.from_pretrained(base_model, "dominguesm/xlm-roberta-base-lora-language-detection") - Notebooks
- Google Colab
- Kaggle
Commit ·
9148453
1
Parent(s): 65ba811
To fix TypeError: LoraConfig.__init__() got an unexpected keyword argument 'enable_lora'
Browse files- adapter_config.json +0 -1
adapter_config.json
CHANGED
|
@@ -1,7 +1,6 @@
|
|
| 1 |
{
|
| 2 |
"base_model_name_or_path": "xlm-roberta-base",
|
| 3 |
"bias": "none",
|
| 4 |
-
"enable_lora": null,
|
| 5 |
"fan_in_fan_out": false,
|
| 6 |
"inference_mode": true,
|
| 7 |
"lora_alpha": 16,
|
|
|
|
| 1 |
{
|
| 2 |
"base_model_name_or_path": "xlm-roberta-base",
|
| 3 |
"bias": "none",
|
|
|
|
| 4 |
"fan_in_fan_out": false,
|
| 5 |
"inference_mode": true,
|
| 6 |
"lora_alpha": 16,
|