Fill-Mask
Transformers
Safetensors
English
magic-bert
binary-analysis
file-type-detection
byte-level
mlm
magic-bytes
security
custom_code
Eval Results (legacy)
Instructions to use mjbommar/magic-bert-50m-mlm with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mjbommar/magic-bert-50m-mlm with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="mjbommar/magic-bert-50m-mlm", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForMaskedLM model = AutoModelForMaskedLM.from_pretrained("mjbommar/magic-bert-50m-mlm", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer.json from mjbommar/magic-bert-50m-mlm: direct link, hf CLI and curl.
- Browser
- Download file 2.24 MB
-
https://huggingface.co/mjbommar/magic-bert-50m-mlm/resolve/main/tokenizer.json
- Command line
-
hf download hf://mjbommar/magic-bert-50m-mlm/tokenizer.json
-
curl -L -o tokenizer.json https://huggingface.co/mjbommar/magic-bert-50m-mlm/resolve/main/tokenizer.json
2.24 MB
File too large to display, you can check the raw version instead.