Fill-Mask
Transformers
Safetensors
English
roberta
mlm
small-model
academic-language
synthetic-data
resource-efficient
consumer-hardware
Run this model with HF Jobs
Run appleroll/coberta-base on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/appleroll/coberta-base. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/appleroll/coberta-base on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use appleroll/coberta-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use appleroll/coberta-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="appleroll/coberta-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoModel model = AutoModel.from_pretrained("appleroll/coberta-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update README.md
Browse files62 unmodified lines63646566676869709 unmodified lines8081828362 unmodified linesfrom transformers import AutoModelForMaskedLM, AutoTokenizerimport torchmodel = AutoModelForMaskedLM.from_pretrained("frogd51/coberta-base")tokenizer = AutoTokenizer.from_pretrained("frogd51/coberta-base")text = "The key to effective communication is to [MASK] clearly and listen actively."inputs = tokenizer(text, return_tensors="pt")9 unmodified linesfor token in top_5_tokens:print(f"{tokenizer.decode([token])}")```62 unmodified lines63646566676869709 unmodified lines808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212362 unmodified linesfrom transformers import AutoModelForMaskedLM, AutoTokenizerimport torchmodel = AutoModelForMaskedLM.from_pretrained("appleroll/coberta-base")tokenizer = AutoTokenizer.from_pretrained("appleroll/coberta-base")text = "The key to effective communication is to [MASK] clearly and listen actively."inputs = tokenizer(text, return_tensors="pt")9 unmodified linesfor token in top_5_tokens:print(f"{tokenizer.decode([token])}")```### CitationIf you use CoBERTa in your research, please cite:```bibtex@misc{coberta,title = {CoBERTa: Training Domain-Expert Language Models on Consumer Hardware},url = {https://huggingface.co/appleroll/coberta-base},author = {Zhang, Ethan},year = {2025}}```### Additional InformationAuthors:- Ethan Zhang (Independent Researcher)### ContactFor questions, feedback, or collaboration: ethanzhangyixuan@gmail.com### Acknowledgements- Cosmopedia dataset creators (HuggingfaceTB)- Apple MLX development team- Hugging Face for model hosting- Open-source ML community### VersionCurrent: v0.5 (Experimental Release)Previous: None### LicenseThis model is licensed under the MIT License. See the LICENSE file for details.
README.md+43-3