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,737/238,451 rows (2.83%) | +26 new @ 2025-10-23 02:35:06
Browse filesFiles changed (5)
- README.md+8-15
- config.json+1-1
- model.safetensors+1-1
- training_args.bin+1-1
- training_metadata.json+7-7
8 unmodified lines910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667688 unmodified lines- cybersecurity- fill-mask- named-entity-recognitionbase_model: boltuix/bert-microlibrary_name: transformers---# bert-micro-cybersecurity## 1. Model Details**Model description**"bert-micro-cybersecurity" is a compact transformer model adapted for cybersecurity text classification tasks (e.g., threat detection, incident reports, malicious vs benign content).- Model type: fine-tuned lightweight BERT variant- Languages: English & Indonesia- Finetuned from: `boltuix/bert-micro`- Status: **Early version** — trained on **2.78%** of planned data.**Model sources**- Base model: [boltuix/bert-micro](https://huggingface.co/boltuix/bert-micro)- Data: Cybersecurity Data## 2. Uses### Direct useYou can use this model to classify cybersecurity-related text — for example, whether a given message, report or log entry indicates malicious intent, abnormal behaviour, or threat presence.### Downstream use- Embedding extraction for clustering or anomaly detection in security logs.- As part of a pipeline for phishing detection, malicious email filtering, incident triage.- As a feature extractor feeding a downstream system (e.g., alert-generation, SOC dashboard).### Out-of-scope use- Not meant for high-stakes automated blocking decisions without human review.- Not optimized for languages other than English and Indonesian.- Not tested for non-cybersecurity domains or out-of-distribution data.## 3. Bias, Risks, and LimitationsBecause the model is based on a small subset (2.78%) 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```pythonfrom transformers import AutoTokenizer, AutoModelForSequenceClassificationtokenizer = AutoTokenizer.from_pretrained("codechrl/bert-micro-cybersecurity")model = AutoModelForSequenceClassification.from_pretrained("codechrl/bert-micro-cybersecurity")inputs = tokenizer("The server logged an unusual outbound connection to 123.123.123.123",return_tensors="pt", truncation=True, padding=True)outputs = model(**inputs)logits = outputs.logitspredicted_class = logits.argmax(dim=-1).item()```## 5. Training Details- **Trained records**: 6,637 / 238,430 (2.78%)- **Learning rate**: 5e-05- **Epochs**: 3- **Batch size**: 168 unmodified lines9101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960618 unmodified lines- cybersecurity- fill-mask- named-entity-recognition- transformers- tensorflow- pytorch- masked-language-modelingbase_model: boltuix/bert-microlibrary_name: transformerspipeline_tag: fill-mask---# bert-micro-cybersecurity## 1. Model Details**Model description**"bert-micro-cybersecurity" is a compact transformer model adapted for cybersecurity text classification tasks (e.g., threat detection, incident reports, malicious vs benign content).- 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.**Model sources**- Base model: [boltuix/bert-micro](https://huggingface.co/boltuix/bert-micro)- Data: Cybersecurity Data## 2. Uses### Direct useYou can use this model to classify cybersecurity-related text — for example, whether a given message, report or log entry indicates malicious intent, abnormal behaviour, or threat presence.### Downstream use- Embedding extraction for clustering or anomaly detection in security logs.- As part of a pipeline for phishing detection, malicious email filtering, incident triage.- As a feature extractor feeding a downstream system (e.g., alert-generation, SOC dashboard).### Out-of-scope use- Not meant for high-stakes automated blocking decisions without human review.- Not optimized for languages other than English and Indonesian.- Not tested for non-cybersecurity domains or out-of-distribution data.## 3. Bias, Risks, and LimitationsBecause 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).- 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```pythonfrom transformers import AutoTokenizer, AutoModelForSequenceClassificationtokenizer = AutoTokenizer.from_pretrained("codechrl/bert-micro-cybersecurity")model = AutoModelForSequenceClassification.from_pretrained("codechrl/bert-micro-cybersecurity")inputs = tokenizer("The server logged an unusual outbound connection to 123.123.123.123",return_tensors="pt", truncation=True, padding=True)outputs = model(**inputs)logits = outputs.logitspredicted_class = logits.argmax(dim=-1).item()```## 5. Training Details- **Trained records**: 6,737 / 238,451 (2.83%)- **Learning rate**: 5e-05- **Epochs**: 3- **Batch size**: 16
16 unmodified lines1718192021222316 unmodified lines"num_hidden_layers": 2,"pad_token_id": 0,"position_embedding_type": "absolute","transformers_version": "4.57.1","type_vocab_size": 2,"use_cache": true,"vocab_size": 3052216 unmodified lines1718192021222316 unmodified lines"num_hidden_layers": 2,"pad_token_id": 0,"position_embedding_type": "absolute","transformers_version": "4.57.0","type_vocab_size": 2,"use_cache": true,"vocab_size": 30522
123version https://git-lfs.github.com/spec/v1oid sha256:d499c86d2c0ea3b54f75177498a11c5825510248cb35dd5973adec65d52440d6size 17671560123version https://git-lfs.github.com/spec/v1oid sha256:487e4f9052c100978689e6eade446eeda6f4c8fba1363b7a582d6079bb33374asize 17671560
123version https://git-lfs.github.com/spec/v1oid sha256:32e79d532c7f5a7b4ae209d8f8bf38545aa96797d1142502dfe93c3287200d0asize 5905123version https://git-lfs.github.com/spec/v1oid sha256:1f36e9bc24f3f3fbc56bfa76ad08bf8c96c15d398a5d494f6e83bfb7fc0d9d52size 5905
1234567891011{"trained_at": 1761184356.7112105,"trained_at_readable": "2025-10-23 01:52:36","samples_this_session": 956,"new_rows_this_session": 100,"trained_rows_total": 6637,"total_db_rows": 238430,"percentage": 2.783626221532525,"final_loss": 0,"epochs": 3,"learning_rate": 5e-051234567891011{"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,"total_db_rows": 238451,"percentage": 2.825318409232924,"final_loss": 0,"epochs": 3,"learning_rate": 5e-05
README.md+8-15
config.json+1-1
model.safetensors+1-1
training_args.bin+1-1
training_metadata.json+7-7