Instructions to use monsoon-nlp/dna-blockdiff-2 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use monsoon-nlp/dna-blockdiff-2 with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("fill-mask", model="monsoon-nlp/dna-blockdiff-2", trust_remote_code=True)# Load model directly from transformers import AutoModelForMaskedLM model = AutoModelForMaskedLM.from_pretrained("monsoon-nlp/dna-blockdiff-2", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
| { | |
| "clean_up_tokenization_spaces": true, | |
| "eos_token": "<eos>", | |
| "model_max_length": 1024, | |
| "tokenizer_class": "EsmTokenizer" | |
| } | |