Downloads · 30 days
25
4% of all-time downloads
mmukh/SOBertLarge
SOBertLarge is a machine learning model from mmukh. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers.
SOBertLarge is a 762M parameter BERT model trained on 27 billion tokens of SO data StackOverflow answer and comment text using the Megatron Toolkit.
Downloads · 30 days
25
4% of all-time downloads
All-time downloads
614
Public
Repo size
13.7 GB
Likes
2
Public
Click a slice to open those files.
.pt10.7 GB · 87%
From the Hugging Face model README
SOBertLarge is a 762M parameter BERT model trained on 27 billion tokens of SO data StackOverflow answer and comment text using the Megatron Toolkit.
SOBert is pre-trained with 19 GB data presented as 15 million samples where each sample contains an entire post and all its corresponding comments. We also include all code in each answer so that our model is bimodal in nature. We use a SentencePiece tokenizer trained with BytePair Encoding, which has the benefit over WordPiece of never labeling tokens as “unknown". Additionally, SOBert is trained with a a maximum sequence length of 2048 based on the empirical length distribution of StackOverflow posts and a relatively large batch size of 0.5M tokens. A smaller 109 million parameter model can also be found here . More details can be found in the paper Stack Over-Flowing with Results: The Case for Domain-Specific Pre-Training Over One-Size-Fits-All Models.
from transformers import MegatronBertModel,PreTrainedTokenizerFast
model = MegatronBertModel.from_pretrained("mmukh/SOBertLarge")
tokenizer = PreTrainedTokenizerFast.from_pretrained("mmukh/SOBertLarge")
@inproceedings{mukherjee2025skill,
title={Skill over Scale: The Case for Medium, Domain-Specific Models for SE},
author={Mukherjee, Manisha and Hellendoorn, Vincent J},
booktitle={2025 IEEE/ACM Second International Conference on AI Foundation Models and Software Engineering (Forge)},
pages={212--223},
year={2025},
organization={IEEE}
}