Text Generation
PEFT
Safetensors
code
English
security
cybersecurity
secure-coding
ai-security
owasp
code-generation
lora
fine-tuned
securecode
conversational
Instructions to use scthornton/codegemma-7b-securecode with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use scthornton/codegemma-7b-securecode with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("google/codegemma-7b-it") model = PeftModel.from_pretrained(base_model, "scthornton/codegemma-7b-securecode") - Notebooks
- Google Colab
- Kaggle
Upload model
Browse files- README.md +13 -13
- adapter_config.json +3 -3
- adapter_model.safetensors +1 -1
README.md
CHANGED
|
@@ -2,23 +2,23 @@
|
|
| 2 |
license: gemma
|
| 3 |
base_model: google/codegemma-7b-it
|
| 4 |
tags:
|
| 5 |
-
|
| 6 |
-
|
| 7 |
-
|
| 8 |
-
|
| 9 |
-
|
| 10 |
-
|
| 11 |
-
|
| 12 |
-
|
| 13 |
-
|
| 14 |
-
|
| 15 |
datasets:
|
| 16 |
-
|
| 17 |
library_name: peft
|
| 18 |
pipeline_tag: text-generation
|
| 19 |
language:
|
| 20 |
-
|
| 21 |
-
|
| 22 |
---
|
| 23 |
|
| 24 |
# CodeGemma 7B SecureCode
|
|
|
|
| 2 |
license: gemma
|
| 3 |
base_model: google/codegemma-7b-it
|
| 4 |
tags:
|
| 5 |
+
- security
|
| 6 |
+
- cybersecurity
|
| 7 |
+
- secure-coding
|
| 8 |
+
- ai-security
|
| 9 |
+
- owasp
|
| 10 |
+
- code-generation
|
| 11 |
+
- qlora
|
| 12 |
+
- lora
|
| 13 |
+
- fine-tuned
|
| 14 |
+
- securecode
|
| 15 |
datasets:
|
| 16 |
+
- scthornton/securecode
|
| 17 |
library_name: peft
|
| 18 |
pipeline_tag: text-generation
|
| 19 |
language:
|
| 20 |
+
- code
|
| 21 |
+
- en
|
| 22 |
---
|
| 23 |
|
| 24 |
# CodeGemma 7B SecureCode
|
adapter_config.json
CHANGED
|
@@ -30,11 +30,11 @@
|
|
| 30 |
"revision": null,
|
| 31 |
"target_modules": [
|
| 32 |
"v_proj",
|
| 33 |
-
"down_proj",
|
| 34 |
-
"gate_proj",
|
| 35 |
-
"o_proj",
|
| 36 |
"k_proj",
|
| 37 |
"up_proj",
|
|
|
|
|
|
|
|
|
|
| 38 |
"q_proj"
|
| 39 |
],
|
| 40 |
"target_parameters": null,
|
|
|
|
| 30 |
"revision": null,
|
| 31 |
"target_modules": [
|
| 32 |
"v_proj",
|
|
|
|
|
|
|
|
|
|
| 33 |
"k_proj",
|
| 34 |
"up_proj",
|
| 35 |
+
"o_proj",
|
| 36 |
+
"gate_proj",
|
| 37 |
+
"down_proj",
|
| 38 |
"q_proj"
|
| 39 |
],
|
| 40 |
"target_parameters": null,
|
adapter_model.safetensors
CHANGED
|
@@ -1,3 +1,3 @@
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
-
oid sha256:
|
| 3 |
size 200068512
|
|
|
|
| 1 |
version https://git-lfs.github.com/spec/v1
|
| 2 |
+
oid sha256:2e81b735c945c293ed11b8ee27bb1a8f26c1f905c6116764977a8e6e162f3b5b
|
| 3 |
size 200068512
|