Text Generation
PEFT
Safetensors
English
code
ellora
lora
security
secure-code
vulnerability-prevention
grpo
preference-learning
semgrep
owasp
cwe
code-generation
python
Instructions to use codelion/Qwen2.5-Coder-0.5B-Instruct-security-grpo-lora with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use codelion/Qwen2.5-Coder-0.5B-Instruct-security-grpo-lora with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("Qwen/Qwen2.5-Coder-0.5B-Instruct") model = PeftModel.from_pretrained(base_model, "codelion/Qwen2.5-Coder-0.5B-Instruct-security-grpo-lora") - Notebooks
- Google Colab
- Kaggle
Upload model
Browse files- adapter_config.json +5 -5
- adapter_model.safetensors +1 -1
adapter_config.json
CHANGED
|
@@ -25,13 +25,13 @@
|
|
| 25 |
"rank_pattern": {},
|
| 26 |
"revision": null,
|
| 27 |
"target_modules": [
|
| 28 |
-
"gate_proj",
|
| 29 |
-
"q_proj",
|
| 30 |
-
"up_proj",
|
| 31 |
-
"down_proj",
|
| 32 |
"o_proj",
|
|
|
|
| 33 |
"v_proj",
|
| 34 |
-
"k_proj"
|
|
|
|
|
|
|
|
|
|
| 35 |
],
|
| 36 |
"task_type": "CAUSAL_LM",
|
| 37 |
"trainable_token_indices": null,
|
|
|
|
| 25 |
"rank_pattern": {},
|
| 26 |
"revision": null,
|
| 27 |
"target_modules": [
|
|
|
|
|
|
|
|
|
|
|
|
|
| 28 |
"o_proj",
|
| 29 |
+
"gate_proj",
|
| 30 |
"v_proj",
|
| 31 |
+
"k_proj",
|
| 32 |
+
"down_proj",
|
| 33 |
+
"q_proj",
|
| 34 |
+
"up_proj"
|
| 35 |
],
|
| 36 |
"task_type": "CAUSAL_LM",
|
| 37 |
"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 140815952
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:94a1f113f21aa6f3ecb3d4579c2966c25b09f649682f3c357fd4987bad3a50a0
|
| 3 |
size 140815952
|