Fill-Mask
Transformers
Safetensors
English
modernbert
conflict
political-violence
event-data
political-science
domain-adaptation
long-context
Instructions to use eventdata-utd/ConfliBERT-2-base with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use eventdata-utd/ConfliBERT-2-base with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="eventdata-utd/ConfliBERT-2-base")# pip install -U transformers accelerate # Load model directly from transformers import AutoTokenizer, AutoModelForMaskedLM tokenizer = AutoTokenizer.from_pretrained("eventdata-utd/ConfliBERT-2-base") model = AutoModelForMaskedLM.from_pretrained("eventdata-utd/ConfliBERT-2-base", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download run_summary.json from eventdata-utd/ConfliBERT-2-base: direct link, hf CLI and curl.
- Browser
- Download file 1.17 kB
-
https://huggingface.co/eventdata-utd/ConfliBERT-2-base/resolve/main/run_summary.json
- Command line
-
hf download hf://eventdata-utd/ConfliBERT-2-base/run_summary.json
-
curl -L -o run_summary.json https://huggingface.co/eventdata-utd/ConfliBERT-2-base/resolve/main/run_summary.json
1.17 kB
| { | |
| "gpu_hours": 47.786, | |
| "tokens_per_step": 262144, | |
| "attention": "flash_attention_2", | |
| "sparse_prediction": true, | |
| "final_step": 84974, | |
| "tokens_seen": 22275424256, | |
| "args": { | |
| "train": "/work/hdd/bbov/smeher/cb2/packed/train_1024_cb2full", | |
| "eval": "/work/hdd/bbov/smeher/cb2/packed/eval_random_1024_cb2full", | |
| "out": "/work/hdd/bbov/smeher/cb2/runs/conflibert-v2-cb2-wsd-full", | |
| "base": "/work/hdd/bbov/smeher/cb2/models/modernbert-stable-hf", | |
| "mlm_prob": 0.3, | |
| "lr": 0.0002, | |
| "bsz": 16, | |
| "accum": 4, | |
| "epochs": 1.0, | |
| "max_steps": -1, | |
| "warmup_ratio": 0.03, | |
| "weight_decay": 0.01, | |
| "scheduler": "wsd", | |
| "decay_ratio": 0.2, | |
| "save_steps": 500, | |
| "eval_steps": 1000, | |
| "eval_max_blocks": 8192, | |
| "log_steps": 25, | |
| "attn": "auto", | |
| "doc_attention": true, | |
| "dense_pred": false, | |
| "compile": true, | |
| "grad_checkpointing": false, | |
| "mem_fraction": 0.0, | |
| "new_embed_warmup_steps": 0, | |
| "new_embed_first_row": 50368, | |
| "lora": false, | |
| "lora_r": 16, | |
| "resume": false, | |
| "auto_resume": true, | |
| "report": "tensorboard", | |
| "run_name": "", | |
| "tb_root": "/work/hdd/bbov/smeher/cb2/tb" | |
| } | |
| } |