Instructions to use azherali/CodeGenDetect-CodeBert_Lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use azherali/CodeGenDetect-CodeBert_Lora with PEFT:
from peft import PeftModel from transformers import AutoModelForSequenceClassification base_model = AutoModelForSequenceClassification.from_pretrained("microsoft/codebert-base") model = PeftModel.from_pretrained(base_model, "azherali/CodeGenDetect-CodeBert_Lora") - Transformers
How to use azherali/CodeGenDetect-CodeBert_Lora with Transformers:
# Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("azherali/CodeGenDetect-CodeBert_Lora", dtype="auto") - Notebooks
- Google Colab
- Kaggle
Training in progress, step 56000
Browse files- adapter_config.json +2 -2
- adapter_model.safetensors +1 -1
adapter_config.json
CHANGED
|
@@ -32,8 +32,8 @@
|
|
| 32 |
"rank_pattern": {},
|
| 33 |
"revision": null,
|
| 34 |
"target_modules": [
|
| 35 |
-
"
|
| 36 |
-
"
|
| 37 |
],
|
| 38 |
"target_parameters": null,
|
| 39 |
"task_type": "SEQ_CLS",
|
|
|
|
| 32 |
"rank_pattern": {},
|
| 33 |
"revision": null,
|
| 34 |
"target_modules": [
|
| 35 |
+
"value",
|
| 36 |
+
"query"
|
| 37 |
],
|
| 38 |
"target_parameters": null,
|
| 39 |
"task_type": "SEQ_CLS",
|
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 3555504
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:722a67a3849c15e216b0363ac3e14756a528f10d48549eada44c7a73a2f1d436
|
| 3 |
size 3555504
|