Instructions to use Anwaarma/try1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use Anwaarma/try1 with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("Anwaarma/edos_taskB_llama3b_merged2_FINAL") model = PeftModel.from_pretrained(base_model, "Anwaarma/try1") - Transformers
How to use Anwaarma/try1 with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("Anwaarma/try1", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload folder using huggingface_hub
Browse files- lora/adapter_model.safetensors +1 -1
- lora/label_map.json +14 -0
lora/adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 194588072
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:3c4bd2bee9a54485ad6762355b43691746f25b0c1896e01b7201ecca28f58f4d
|
| 3 |
size 194588072
|
lora/label_map.json
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
{
|
| 2 |
+
"id2label": {
|
| 3 |
+
"0": "animosity",
|
| 4 |
+
"1": "derogation",
|
| 5 |
+
"2": "prejudiced discussions",
|
| 6 |
+
"3": "threats, plans to harm and incitement"
|
| 7 |
+
},
|
| 8 |
+
"label2id": {
|
| 9 |
+
"animosity": 0,
|
| 10 |
+
"derogation": 1,
|
| 11 |
+
"prejudiced discussions": 2,
|
| 12 |
+
"threats, plans to harm and incitement": 3
|
| 13 |
+
}
|
| 14 |
+
}
|