Downloads · 30 days
0
MuratKomurcu/starcoder2-stm32-turkish
starcoder2-stm32-turkish is a machine learning model from MuratKomurcu. Use it for the machine learning task on the model card, and read the license before you ship it in a product. The card lists the license as bigcode-openrail-m.
Bu model, bigcode/starcoder2-3b temel alınarak 55,000 STM32 kod örneği ile fine-tune edilmiştir. STM32F4 serisi için HAL kütüphanesi kullanan gömülü sistem kodu üretir.
Downloads · 30 days
0
Access
Public
Updated Nov 16, 2025
Repo size
236 MB
Likes
6
Public
Click a slice to open those files.
.safetensors236 MB · 98%
From the Hugging Face model README
Bu model, bigcode/starcoder2-3b temel alınarak 55,000 STM32 kod örneği ile fine-tune edilmiştir. STM32F4 serisi için HAL kütüphanesi kullanan gömülü sistem kodu üretir.
from transformers import AutoTokenizer, AutoModelForCausalLM
from peft import PeftModel
import torch
print("🔄 Model yükleniyor...")
base_model = AutoModelForCausalLM.from_pretrained(
"bigcode/starcoder2-3b",
torch_dtype=torch.float16,
device_map="auto"
)
model = PeftModel.from_pretrained(base_model, "MuratKomurcu/starcoder2-stm32-turkish")
tokenizer = AutoTokenizer.from_pretrained("MuratKomurcu/starcoder2-stm32-turkish")
print("✅ Model hazır!")
# TEST
prompt = '''### Instruction:
Write complete STM32F401RE LED blink code with main function
### Input:
LED on PA5, blink every 1000ms, include SystemClock_Config
### Response:
'''
BigCode OpenRAIL-M
@misc{starcoder2-stm32-turkish,
author = {Murat},
title = {STM32 Code Generator - Turkish Fine-tuned},
year = {2024},
publisher = {HuggingFace},
howpublished = {\url{https://huggingface.co/MuratKomurcu/starcoder2-stm32-turkish}}
}