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
File size: 574 Bytes
a69dc44 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | {{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
'}} |