Run this model with HF Jobs
Run Synthyra/DPLM2-3B 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/DPLM2-3B. 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/DPLM2-3B 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/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
Upload entrypoint_setup.py with huggingface_hub
Browse files12345678910111213141516171819202122import torchimport torch._inductor.config as inductor_configimport torch._dynamo as dynamo# Enable TensorFloat32 tensor cores for float32 matmul (Ampere+ GPUs)# Provides significant speedup with minimal precision losstorch.set_float32_matmul_precision('high')# Enable TF32 for matrix multiplications and cuDNN operationstorch.backends.cuda.matmul.allow_tf32 = Truetorch.backends.cudnn.allow_tf32 = True# Enable cuDNN autotuner - finds fastest algorithms for your hardware# Best when input sizes are consistent; may slow down first iterationstorch.backends.cudnn.benchmark = True# Deterministic operations off for speed (set True if reproducibility needed)torch.backends.cudnn.deterministic = Falseinductor_config.max_autotune_gemm_backends = "ATEN,CUTLASS,FBGEMM"dynamo.config.capture_scalar_outputs = Truetorch._dynamo.config.recompile_limit = 1612345678910111213141516171819202122import torchimport torch._inductor.config as inductor_configimport torch._dynamo as dynamo# Enable TensorFloat32 tensor cores for float32 matmul (Ampere+ GPUs)# Provides significant speedup with minimal precision losstorch.set_float32_matmul_precision('high')# Enable TF32 for matrix multiplications and cuDNN operationstorch.backends.cuda.matmul.allow_tf32 = Truetorch.backends.cudnn.allow_tf32 = True# Enable cuDNN autotuner - finds fastest algorithms for your hardware# Best when input sizes are consistent; may slow down first iterationstorch.backends.cudnn.benchmark = True# Deterministic operations off for speed (set True if reproducibility needed)torch.backends.cudnn.deterministic = Falseinductor_config.max_autotune_gemm_backends = "ATEN,CUTLASS,FBGEMM"dynamo.config.capture_scalar_outputs = Truetorch._dynamo.config.recompile_limit = 16
entrypoint_setup.py+22-22