Run this model with HF Jobs
Run Synthyra/DPLM-650M on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/Synthyra/DPLM-650M. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/Synthyra/DPLM-650M on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Instructions to use Synthyra/DPLM-650M with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use Synthyra/DPLM-650M with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import EsmForDPLM model = EsmForDPLM.from_pretrained("Synthyra/DPLM-650M", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Upload modeling_dplm.py with huggingface_hub
Browse files429 unmodified lines430431432433434435436437438429 unmodified linesif attention_mask is None:flex_block_mask = Noneelse:sequence_ids = torch.where(token_attention_mask, 1, -1)def mask_mod(batch_idx, head_idx, q_idx, kv_idx):return (sequence_ids[batch_idx, q_idx] == sequence_ids[batch_idx, kv_idx]) & (sequence_ids[batch_idx, q_idx] != -1)flex_block_mask = create_block_mask(mask_mod,429 unmodified lines430431432433434435436437429 unmodified linesif attention_mask is None:flex_block_mask = Noneelse:def mask_mod(batch_idx, head_idx, q_idx, kv_idx):return (token_attention_mask[batch_idx, q_idx] == token_attention_mask[batch_idx, kv_idx]) & (token_attention_mask[batch_idx, q_idx] != 0)flex_block_mask = create_block_mask(mask_mod,
modeling_dplm.py+1-2