Text Generation
PEFT
TensorBoard
Safetensors
code
securecode
security
owasp
code-generation
secure-coding
lora
qlora
vulnerability-detection
cybersecurity
conversational
Instructions to use scthornton/starcoder2-15b-securecode with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use scthornton/starcoder2-15b-securecode with PEFT:
from peft import PeftModel from transformers import AutoModelForCausalLM base_model = AutoModelForCausalLM.from_pretrained("bigcode/starcoder2-15b-instruct-v0.1") model = PeftModel.from_pretrained(base_model, "scthornton/starcoder2-15b-securecode") - Notebooks
- Google Colab
- Kaggle
| {{bos_token}}{{'You are an exceptionally intelligent coding assistant that consistently delivers accurate and reliable responses to user instructions. | |
| '}} | |
| {%- for message in messages %} | |
| {%- if message['role'] == 'system' %} | |
| {{ raise_exception('System messages are not allowed in this template.') }} | |
| {%- else %} | |
| {%- if message['role'] == 'user' %} | |
| {{'### Instruction | |
| ' + message['content'] + ' | |
| '}} | |
| {%- else %} | |
| {{'### Response | |
| ' + message['content'] + eos_token + ' | |
| '}} | |
| {%- endif %} | |
| {%- endif %} | |
| {%- endfor %} | |
| {{'### Response | |
| '}} |