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:
# pip install -U transformers accelerate # 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
Download fastplms/models/dplm2/__init__.py from Synthyra/DPLM2-3B: direct link, hf CLI and curl.
- Browser
- Download file 127 Bytes
-
https://huggingface.co/Synthyra/DPLM2-3B/resolve/main/fastplms/models/dplm2/__init__.py
- Command line
-
hf download hf://Synthyra/DPLM2-3B/fastplms/models/dplm2/__init__.py
-
curl -L -o __init__.py https://huggingface.co/Synthyra/DPLM2-3B/resolve/main/fastplms/models/dplm2/__init__.py
127 Bytes
| """DPLM2 model and tokenizer implementation.""" | |
| from .tokenization_dplm2 import DPLM2Tokenizer | |
| __all__ = ["DPLM2Tokenizer"] | |