Instructions to use StonyBrookNLP/StarCoder2-SFT with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- PEFT
How to use StonyBrookNLP/StarCoder2-SFT with PEFT:
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") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files
README.md
CHANGED
|
@@ -3,7 +3,7 @@ base_model: bigcode/starcoder2-7b
|
|
| 3 |
library_name: peft
|
| 4 |
---
|
| 5 |
|
| 6 |
-
# Model Card for
|
| 7 |
|
| 8 |
This is the adapter of the Starcoder2 model trained using SFT on DiSCo for the paper "Teaching an Old LLM Secure Coding:
|
| 9 |
Localized Preference Optimization on Distilled Preferences" (https://arxiv.org/abs/2506.00419). Merge it to the base model "bigcode/starcoder2-7b"
|
|
|
|
| 3 |
library_name: peft
|
| 4 |
---
|
| 5 |
|
| 6 |
+
# Model Card for StarCoder2-SFT
|
| 7 |
|
| 8 |
This is the adapter of the Starcoder2 model trained using SFT on DiSCo for the paper "Teaching an Old LLM Secure Coding:
|
| 9 |
Localized Preference Optimization on Distilled Preferences" (https://arxiv.org/abs/2506.00419). Merge it to the base model "bigcode/starcoder2-7b"
|