B.Sc. Thesis · 2026
Automated Docstring Generation from Source Code
TH Ingolstadt · Faculty of Computer Science
Specialising StarCoder2-7B with LoRA for Python docstrings that are accurate and, crucially, short. Five fine-tuning configurations compared on semantic alignment, lexical overlap, readability and verbosity.
- StarCoder2-7B
- LoRA
- DocuMint
- BERTScore
- ROUGE-L
- BLEU
- MBPP
- HumanEval
- base model
- StarCoder2-7B
- method
- LoRA · 5 configurations
- train data
- DocuMint
- test sets
- 10k internal · MBPP · HumanEval
- metrics
- BERTScore F1 · ROUGE-L · BLEU
- style
- Flesch–Kincaid · length ratio
// at a glance
result better semantic alignment, far less verbosity than the zero-shot base model