Instructions to use Synthyra/DPLM-3B with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Synthyra/DPLM-3B with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import EsmForDPLM model = EsmForDPLM.from_pretrained("Synthyra/DPLM-3B", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload modeling_dplm.py with huggingface_hub
Browse files- modeling_dplm.py +0 -3
modeling_dplm.py
CHANGED
|
@@ -361,9 +361,6 @@ class EmbeddingMixin:
|
|
| 361 |
# SPDX-License-Identifier: Apache-2.0
|
| 362 |
"""
|
| 363 |
FastPLMs-compatible DPLM implementation.
|
| 364 |
-
|
| 365 |
-
This module is based on:
|
| 366 |
-
https://github.com/bytedance/dplm/blob/main/src/byprot/models/lm/esm_dplm.py
|
| 367 |
"""
|
| 368 |
|
| 369 |
import torch
|
|
|
|
| 361 |
# SPDX-License-Identifier: Apache-2.0
|
| 362 |
"""
|
| 363 |
FastPLMs-compatible DPLM implementation.
|
|
|
|
|
|
|
|
|
|
| 364 |
"""
|
| 365 |
|
| 366 |
import torch
|