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
Test version of https://huggingface.co/monsoon-nlp/dna-blockdiff using the custom bd3lms EmbeddingLayer instead of the torch.nn.EmbeddingLayer
- Does not seem to stop generating
- Does not fix issue with attention on inference
- Does not fix issue with torch.where in training
- Downloads last month
- 8