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 -1
modeling_dplm.py
CHANGED
|
@@ -7,7 +7,6 @@ This module is based on:
|
|
| 7 |
https://github.com/bytedance/dplm/blob/main/src/byprot/models/lm/esm_dplm.py
|
| 8 |
"""
|
| 9 |
|
| 10 |
-
import entrypoint_setup
|
| 11 |
import torch
|
| 12 |
import torch.nn as nn
|
| 13 |
from torch.nn import functional as F
|
|
|
|
| 7 |
https://github.com/bytedance/dplm/blob/main/src/byprot/models/lm/esm_dplm.py
|
| 8 |
"""
|
| 9 |
|
|
|
|
| 10 |
import torch
|
| 11 |
import torch.nn as nn
|
| 12 |
from torch.nn import functional as F
|