-
License: Apache-2.0
-
Supported Languages: Python, JavaScript, TypeScript, Java, Go, Rust, PHP, Ruby, C++, C, SQL
-
Datasets:
-
Pipeline tag: fill-mask
The model was pretrained on large-scale multilingual code corpora with the following goals:
-
Vocabulary size: 50,368
-
Special tokens: Standard Hugging Face special tokens + custom tokens for code/document structure.
-
Training process:
- Up to 1M examples per dataset.
- Each example truncated to 10,000 characters.
- Trained with files from multiple datasets (see above).
1from transformers import AutoTokenizer, AutoModelForMaskedLM
2
3tokenizer = AutoTokenizer.from_pretrained("Shuu12121/CodeModernBERT-Crow-v1-Pre")
4model = AutoModelForMaskedLM.from_pretrained("Shuu12121/CodeModernBERT-Crow-v1-Pre")
5
6inputs = tokenizer("def add(a, b): return a + b", return_tensors="pt")
7outputs = model(**inputs)