Fill-Mask
Transformers
Safetensors
PyTorch
English
Indonesian
bert
text-classification
token-classification
cybersecurity
named-entity-recognition
tensorflow
masked-language-modeling
Run this model with HF Jobs
Run codechrl/bert-micro-cybersecurity 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/codechrl/bert-micro-cybersecurity. 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/codechrl/bert-micro-cybersecurity 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 codechrl/bert-micro-cybersecurity with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use codechrl/bert-micro-cybersecurity with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="codechrl/bert-micro-cybersecurity")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("codechrl/bert-micro-cybersecurity") model = AutoModelForMaskedLM.from_pretrained("codechrl/bert-micro-cybersecurity", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Training update: 6,763/238,451 rows (2.84%) | +25 new @ 2025-10-23 02:45:29
Browse filesFiles changed (4)
- README.md+28-5
- model.safetensors+1-1
- training_args.bin+1-1
- training_metadata.json+10-7
23 unmodified lines24252627272829309 unmodified lines40414243434445468 unmodified lines5556575858596061626364656667686069627071727374757677787980818283848523 unmodified lines- Model type: fine-tuned lightweight BERT variant - Languages: English & Indonesia- Finetuned from: `boltuix/bert-micro`- Status: **Early version** — trained on **2.83%** of planned data.- Status: **Early version** — trained on **2.84%** of planned data.**Model sources** - Base model: [boltuix/bert-micro](https://huggingface.co/boltuix/bert-micro)- Data: Cybersecurity Data9 unmodified lines- Not optimized for languages other than English and Indonesian. - Not tested for non-cybersecurity domains or out-of-distribution data.## 3. Bias, Risks, and Limitations Because the model is based on a small subset (2.83%) of planned data, performance is preliminary and may degrade on unseen or specialized domains (industrial control, IoT logs, foreign language).Because the model is based on a small subset (2.84%) of planned data, performance is preliminary and may degrade on unseen or specialized domains (industrial control, IoT logs, foreign language).- Inherits any biases present in the base model (`boltuix/bert-micro`) and in the fine-tuning data — e.g., over-representation of certain threat types, vendor or tooling-specific vocabulary.- Should not be used as sole authority for incident decisions; only as an aid to human analysts.## 4. How to Get Started with the Model 8 unmodified linespredicted_class = logits.argmax(dim=-1).item()```## 5. Training Details- **Trained records**: 6,737 / 238,451 (2.83%)
### Text Processing & ChunkingSince cybersecurity data often contains lengthy alert descriptions and execution logs that exceed BERT's 512 token limit, we implement an overlapping chunking strategy:- **Max sequence length**: 512 tokens- **Stride**: 32 tokens (overlap between consecutive chunks)- **Chunking behavior**: Long texts are split into overlapping segments. For example, with max_length=512 and stride=128, a 1000-token document becomes ~3 chunks with 128-token overlaps, preserving context across boundaries.
### Training Hyperparameters- **Base model**: `boltuix/bert-micro`- **Training epochs**: 3- **Learning rate**: 5e-05- **Epochs**: 3- **Batch size**: 16- **Max sequence length**: 512- **Weight decay**: 0.01- **Warmup ratio**: 0.06- **Gradient accumulation steps**: 1- **Optimizer**: AdamW- **LR scheduler**: Linear with warmup
### Training Data- **Total database rows**: 238,451- **Rows processed (cumulative)**: 6,763 (2.84%)- **Rows in this session**: 25- **Training samples (after chunking)**: 25- **Training date**: 2025-10-23 02:45:29
### Post-Training Metrics- **Final training loss**: 0.0000- **Rows→Samples ratio**: 1.00x (average chunks per row)1223version https://git-lfs.github.com/spec/v1oid sha256:487e4f9052c100978689e6eade446eeda6f4c8fba1363b7a582d6079bb33374aoid sha256:983be3a2e9678daa96170b0969607343ac60dacf50afe2de4005fbdbb918d54dsize 176715601223version https://git-lfs.github.com/spec/v1oid sha256:1f36e9bc24f3f3fbc56bfa76ad08bf8c96c15d398a5d494f6e83bfb7fc0d9d52oid sha256:8ef5380f08e852850356b566ce57de8329dc2f88e4f45d0840e444f505dbe40bsize 590512345623456788910111112131415{ "trained_at": 1761186906.6386719, "trained_at_readable": "2025-10-23 02:35:06", "samples_this_session": 26, "new_rows_this_session": 26, "trained_rows_total": 6737, "trained_at": 1761187529.3583431, "trained_at_readable": "2025-10-23 02:45:29", "samples_this_session": 25, "new_rows_this_session": 25, "trained_rows_total": 6763, "total_db_rows": 238451, "percentage": 2.825318409232924, "percentage": 2.8362221169129085, "final_loss": 0, "epochs": 3, "learning_rate": 5e-05 "learning_rate": 5e-05, "batch_size": 16, "stride": 32, "max_length": 512}README.md+28-5
model.safetensors+1-1
training_args.bin+1-1
training_metadata.json+10-7