Fill-Mask
Transformers
Safetensors
pakmosaic
pakistan
multilingual
encoder
research-preview
sota-target
custom_code
Instructions to use ProximaAI/PakMosaic-Small with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use ProximaAI/PakMosaic-Small with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="ProximaAI/PakMosaic-Small", trust_remote_code=True)# Load model directly from transformers import AutoModelForMaskedLM model = AutoModelForMaskedLM.from_pretrained("ProximaAI/PakMosaic-Small", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
File size: 947 Bytes
cebac2b | 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 | {
"architectures": ["PakMosaicForMaskedLM"],
"model_type": "pakmosaic",
"auto_map": {
"AutoConfig": "configuration_pakmosaic.PakMosaicConfig",
"AutoModel": "modeling_pakmosaic.PakMosaicModel",
"AutoModelForMaskedLM": "modeling_pakmosaic.PakMosaicForMaskedLM"
},
"vocab_size": 32000,
"hidden_size": 512,
"num_hidden_layers": 12,
"num_attention_heads": 8,
"intermediate_size": 2048,
"max_position_embeddings": 512,
"rope_theta": 10000.0,
"attention_dropout": 0.0,
"hidden_dropout": 0.0,
"ffn_activation": "geglu",
"attention_kind": "full",
"local_window": 128,
"global_every": 3,
"use_bias": false,
"tie_word_embeddings": true,
"pad_token_id": 0,
"bos_token_id": 1,
"eos_token_id": 2,
"unk_token_id": 3,
"mask_token_id": 4,
"layer_norm_eps": 1e-05,
"initializer_range": 0.02,
"script_signal": "none",
"tokenizer_class": "PreTrainedTokenizerFast"
}
|