PEFT
Safetensors
How to use from the
Use from the
PEFT library
from peft import PeftModel
from transformers import AutoModelForCausalLM

base_model = AutoModelForCausalLM.from_pretrained("bigcode/starcoder2-7b")
model = PeftModel.from_pretrained(base_model, "StonyBrookNLP/StarCoder2-SFT")

Model Card for StarCoder2-SFT

This is the adapter of the Starcoder2 model trained using SFT on DiSCo for the paper "Teaching an Old LLM Secure Coding: Localized Preference Optimization on Distilled Preferences" (https://arxiv.org/abs/2506.00419). Merge it to the base model "bigcode/starcoder2-7b" in order to use for downstream tasks.

Downloads last month
2
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for StonyBrookNLP/StarCoder2-SFT

Adapter
(22)
this model

Paper for StonyBrookNLP/StarCoder2-SFT