Instructions to use togethercomputer/m2-bert-80M-32k with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use togethercomputer/m2-bert-80M-32k with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="togethercomputer/m2-bert-80M-32k", trust_remote_code=True)# pip install -U transformers accelerate # Load model directly from transformers import AutoModelForMaskedLM model = AutoModelForMaskedLM.from_pretrained("togethercomputer/m2-bert-80M-32k", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Update config.json
Browse files29 unmodified lines3031323334353629 unmodified lines"long_conv_kernel_learning_rate": 0.001,"long_conv_l_max": 32768,"max_position_embeddings": 32768,"model_type": "bert","monarch_mlp_nblocks": 4,"num_attention_heads": 12,"num_hidden_layers": 12,29 unmodified lines3031323334353629 unmodified lines"long_conv_kernel_learning_rate": 0.001,"long_conv_l_max": 32768,"max_position_embeddings": 32768,"model_type": "m2_bert","monarch_mlp_nblocks": 4,"num_attention_heads": 12,"num_hidden_layers": 12,
config.json+1-1