Run this model with HF Jobs

Run monsoon-nlp/dna-blockdiff 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/monsoon-nlp/dna-blockdiff. 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/monsoon-nlp/dna-blockdiff 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.

DNA and Block Diffusion

Untrained architecture test using the Block Diffusion architecture and AgroNT's six-nucleotide-length tokens.

Loading model

from transformers import AutoModelForMaskedLM
m = AutoModelForMaskedLM.from_pretrained(
    "monsoon-nlp/dna-blockdiff",
    trust_remote_code=True,
)

Generating text

cd bd3lms
python -u main.py \
    loader.eval_batch_size=1 \
    model=small \
    algo=bd3lm \
    algo.T=900 \
    algo.backbone=hf_dit \
    algo.sampler=analytic \
    data=openwebtext-split \
    model.length=2048 \
    block_size=4 \
    wandb=null \
    mode=sample_eval \
    eval.checkpoint_path="monsoon-nlp/dna-blockdiff" \
    model.attn_backend=sdpa \
    sampling.nucleus_p=0.9 \
    sampling.kv_cache=true \
    sampling.logdir=$PWD/sample_logs/samples_genlen_bd3lm_blocksize4 \
    data.tokenizer_name_or_path="monsoon-nlp/dna-blockdiff"
Downloads last month
47
Safetensors
Model size
98.7M params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for monsoon-nlp/dna-blockdiff

Finetuned
(1)
this model

Collection including monsoon-nlp/dna-blockdiff