Token Classification
MLX
English
openmed
distilbert
apple-silicon
pii
de-identification
medical
clinical
Instructions to use OpenMed/OpenMed-NER-PharmaDetect-TinyMed-135M-mlx with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use OpenMed/OpenMed-NER-PharmaDetect-TinyMed-135M-mlx with MLX:
# Download the model from the Hub pip install huggingface_hub[hf_xet] huggingface-cli download --local-dir OpenMed-NER-PharmaDetect-TinyMed-135M-mlx OpenMed/OpenMed-NER-PharmaDetect-TinyMed-135M-mlx
- Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
File size: 1,399 Bytes
6ab48eb | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 | {
"transformers_version": "5.5.0",
"architectures": [
"DistilBertForTokenClassification"
],
"output_hidden_states": false,
"return_dict": true,
"dtype": "bfloat16",
"chunk_size_feed_forward": 0,
"is_encoder_decoder": false,
"id2label": {
"0": "O",
"1": "B-CHEM",
"2": "I-CHEM"
},
"label2id": {
"B-CHEM": 1,
"I-CHEM": 2,
"O": 0
},
"problem_type": null,
"vocab_size": 119547,
"max_position_embeddings": 512,
"sinusoidal_pos_embds": false,
"n_layers": 6,
"n_heads": 12,
"dim": 768,
"hidden_dim": 3072,
"dropout": 0.1,
"attention_dropout": 0.1,
"activation": "gelu",
"initializer_range": 0.02,
"qa_dropout": 0.1,
"seq_classif_dropout": 0.2,
"pad_token_id": 0,
"eos_token_id": null,
"bos_token_id": null,
"tie_word_embeddings": true,
"_name_or_path": "OpenMed/OpenMed-NER-PharmaDetect-TinyMed-135M",
"model_type": "distilbert",
"output_past": true,
"tie_weights_": true,
"output_attentions": false,
"_mlx_task": "token-classification",
"_mlx_family": "bert",
"hidden_size": 768,
"num_attention_heads": 12,
"num_hidden_layers": 6,
"intermediate_size": 3072,
"hidden_dropout_prob": 0.1,
"attention_probs_dropout_prob": 0.1,
"layer_norm_eps": 1e-12,
"type_vocab_size": 0,
"_mlx_position_offset": 0,
"_mlx_model_type": "bert",
"num_labels": 3,
"_mlx_weights_format": "safetensors"
} |