Text Classification
Transformers
Safetensors
English
magic-bert
binary-analysis
file-type-detection
byte-level
classification
mime-type
security
custom_code
Eval Results (legacy)
Instructions to use mjbommar/magic-bert-50m-classification with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use mjbommar/magic-bert-50m-classification with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("text-classification", model="mjbommar/magic-bert-50m-classification", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForSequenceClassification model = AutoModelForSequenceClassification.from_pretrained("mjbommar/magic-bert-50m-classification", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download tokenizer_config.json from mjbommar/magic-bert-50m-classification: direct link, hf CLI and curl.
- Browser
- Download file 264 Bytes
-
https://huggingface.co/mjbommar/magic-bert-50m-classification/resolve/main/tokenizer_config.json
- Command line
-
hf download hf://mjbommar/magic-bert-50m-classification/tokenizer_config.json
-
curl -L -o tokenizer_config.json https://huggingface.co/mjbommar/magic-bert-50m-classification/resolve/main/tokenizer_config.json
264 Bytes
| { | |
| "tokenizer_class": "PreTrainedTokenizerFast", | |
| "model_max_length": 512, | |
| "bos_token": "<|start|>", | |
| "eos_token": "<|end|>", | |
| "pad_token": "<|pad|>", | |
| "unk_token": "<|unk|>", | |
| "cls_token": "<|cls|>", | |
| "sep_token": "<|sep|>", | |
| "mask_token": "<|mask|>" | |
| } | |