Instructions to use Synthyra/DPLM2-3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Synthyra/DPLM2-3B with Transformers:
# Load model directly from transformers import AutoTokenizer, EsmForDPLM2 tokenizer = AutoTokenizer.from_pretrained("Synthyra/DPLM2-3B", trust_remote_code=True) model = EsmForDPLM2.from_pretrained("Synthyra/DPLM2-3B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "_name_or_path": "airkingbd/dplm_3b", | |
| "add_cross_attention": false, | |
| "architectures": [ | |
| "EsmForDPLM2" | |
| ], | |
| "attention_probs_dropout_prob": 0.0, | |
| "auto_map": { | |
| "AutoConfig": "modeling_fastplms.DPLM2Config", | |
| "AutoModel": "modeling_fastplms.DPLM2Model", | |
| "AutoModelForMaskedLM": "modeling_fastplms.DPLM2ForMaskedLM", | |
| "AutoModelForSequenceClassification": "modeling_fastplms.DPLM2ForSequenceClassification", | |
| "AutoModelForTokenClassification": "modeling_fastplms.DPLM2ForTokenClassification" | |
| }, | |
| "classifier_dropout": null, | |
| "dplm_type": "dplm_esm", | |
| "emb_layer_norm_before": false, | |
| "esmfold_config": null, | |
| "fastplms_checkpoint_hash": "0d75207bde9d43202f2a27d2cfbd34bcf1229bb8b84c40bee24f6062a531d2fe", | |
| "fastplms_checkpoint_repo_id": "airkingbd/dplm2_3b", | |
| "fastplms_checkpoint_revision": "9e77567926f98d1b997ea9131a8eeb035b9bf827", | |
| "fastplms_model_id": "dplm2_3b", | |
| "fastplms_release_tool_revision": "e6dd397a9ad368c998d714f6bd64d40b533d1ed1", | |
| "fastplms_release_tool_sha256": "6d335c05aa49a232086a816deb25d248d1490529e5783acc3355b9bc6f03e0c2", | |
| "fastplms_runtime_bundle_sha256": "7effb403b3097f204a36cf67caabcb4807a5124189c0bbfefd432f4ca7533ed6", | |
| "fastplms_runtime_revision": "e6dd397a9ad368c998d714f6bd64d40b533d1ed1", | |
| "fastplms_source_tree_sha256": "ff487b8e5f222a1bfd091b0a736122673333708cd06e3589b4e04183ec20fd45", | |
| "fastplms_weights_revision": "9e77567926f98d1b997ea9131a8eeb035b9bf827", | |
| "hidden_act": "gelu", | |
| "hidden_dropout_prob": 0.1, | |
| "hidden_size": 2560, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 10240, | |
| "is_decoder": false, | |
| "is_folding_model": false, | |
| "layer_norm_eps": 1e-05, | |
| "mask_token_id": 32, | |
| "max_position_embeddings": 1026, | |
| "model_type": "esm", | |
| "num_attention_heads": 40, | |
| "num_hidden_layers": 36, | |
| "pad_token_id": 1, | |
| "position_embedding_type": "rotary", | |
| "tie_word_embeddings": false, | |
| "token_dropout": true, | |
| "torch_dtype": "float32", | |
| "transformers_version": "4.39.2", | |
| "use_cache": false, | |
| "vocab_list": null, | |
| "vocab_size": 8229 | |
| } | |