Downloads · 30 days
12.1K
26% of all-time downloads
Synthyra/Profluent-E1-600M
Profluent-E1-600M is a fill-mask model from Synthyra. Use it when you need the model to fill a missing word. It is set up for transformers. The card lists the license as other.
Synthyra/Profluent-E1-600M packages the Profluent-Bio/E1-600m checkpoint with the FastPLMs runtime for Hugging Face Transformers. It accepts raw amino-acid sequences prepared by the native E1 adapter.
Downloads · 30 days
12.1K
26% of all-time downloads
All-time downloads
46.8K
Public
Parameters
641M
28.2 GB on disk
Likes
1
Public
Click a slice to open those files.
.safetensors2.6 GB · 100%
From the Hugging Face model README
Synthyra/Profluent-E1-600M packages the Profluent-Bio/E1-600m checkpoint
with the FastPLMs runtime for Hugging Face Transformers. It accepts raw
amino-acid sequences prepared by the native E1 adapter.
The repository uses the standard Transformers loading interface with
trust_remote_code=True. See Technical details for each registered class and
whether its weights come from the checkpoint.
The sequence- and token-classification classes reuse the pretrained backbone, but their task heads are newly initialized. Fine-tune those heads before interpreting their logits as predictions.
Install the direct dependencies published with this model:
python -m pip install -r \
"https://huggingface.co/Synthyra/Profluent-E1-600M/resolve/main/requirements.txt"
The FastPLMs implementation itself is embedded in the model repository.
Transformers loads it through trust_remote_code=True.
This model requires Python 3.11-3.14, PyTorch 2.13, and Transformers 5.13.
The CPU gate covers small offline tests. Published checkpoint throughput and parity require the documented device tier.
The Hub quick start needs network access for the first download. For an air-gapped run, build the manifest-pinned local artifact first and use the offline example.
from transformers import AutoModel
model_id = "Synthyra/Profluent-E1-600M"
model = AutoModel.from_pretrained(
model_id,
trust_remote_code=True,
attn_implementation="sdpa",
).eval()
For offline validation, replace model_id with the manifest-built
dist/hub/Profluent-E1-600M path. Pass local_files_only=True.
The quick start uses sdpa.
Available backends are sdpa, flex_attention. Requesting an unavailable
backend raises instead of silently changing implementation.
output_attentions=True can use the documented one-call eager fallback to
materialize attention tensors. The configured backend does not change.
The shared embedding mixin keeps input order and biological-position masking. It accepts sequences, identified records, mappings, or a FASTA path:
pooled = model.embed_dataset(
["MSTNPKPQRKTKRNT", "MKTIIALSYIFCLVFA"],
batch_size=2,
pooling=("mean", "std"),
)
residues = model.embed_dataset(
["MSTNPKPQRKTKRNT"],
full_embeddings=True,
)
print(pooled[0].tensor.shape) # (2 * d,)
print(residues[0].tensor.shape) # (l, d)
Set output and format="safetensors" or "sqlite" for transactional,
bounded-memory storage. Resume checks input order, model state, tokenizer
policy, backend, dtype, and pooling configuration before it appends data.
The sequence and token prediction AutoClasses use the checkpoint backbone and
create a new, untrained classifier. Sequence labels have shape (b,).
Residue labels have shape (b, l) and use -100 outside biological positions.
import torch
from transformers import (
AutoModelForSequenceClassification,
AutoModelForTokenClassification,
)
model_id = "Synthyra/Profluent-E1-600M"
sequence_model = AutoModelForSequenceClassification.from_pretrained(
model_id, num_labels=2, trust_remote_code=True
).eval()
token_model = AutoModelForTokenClassification.from_pretrained(
model_id, num_labels=3, trust_remote_code=True
).eval()
sequences = ["MSTNPKPQRKTKRNT", "MKTIIALSYIFCLVFA"]
batch = sequence_model.prep_tokens.get_batch_kwargs(
sequences,
device=sequence_model.device,
)
biological = batch["sequence_ids"].ne(-1) # (b, l), biological positions
sequence_labels = torch.zeros(len(sequences), dtype=torch.long) # (b,)
token_labels = torch.full_like(batch["input_ids"], -100) # (b, l)
token_labels[biological] = 0 # selected biological positions; labels stay (b, l)
with torch.inference_mode():
sequence_output = sequence_model(**batch, labels=sequence_labels)
token_output = token_model(**batch, labels=token_labels)
print(sequence_output.logits.shape) # (b, 2)
print(token_output.logits.shape) # (b, l, 3)
Install the training dependencies. Then attach LoRA to the loaded checkpoint:
python -m pip install "datasets>=4.8,<5" "peft>=0.19,<0.20"
from peft import LoraConfig, TaskType, get_peft_model
peft_model = get_peft_model(
sequence_model,
LoraConfig(
task_type=TaskType.SEQ_CLS,
r=8,
lora_alpha=16,
target_modules="all-linear",
modules_to_save=["classifier"],
),
)
This checkpoint advertises a classification head. Save the separately trained
classifier with the adapter.
All FastPLMs checkpoints follow the Transformers PreTrainedModel contract and
can use PEFT. The ESM2-specific shipped CLI is an example, not a
support boundary. Record the target modules, base revision, data identity, and
trainable parameter scope.
TTT samples masked views of one protein and updates only injected low-rank adapters. Base checkpoint weights stay frozen:
from transformers import AutoModelForMaskedLM
ttt_model = AutoModelForMaskedLM.from_pretrained(
"Synthyra/Profluent-E1-600M",
trust_remote_code=True,
)
metrics = ttt_model.ttt(
seq="MSTNPKPQRKTKRNT",
ttt_config={"steps": 3, "batch_size": 1, "seed": 7},
)
ttt_model.save_pretrained("adapted", safe_serialization=True)
ttt_model.ttt_reset()
print(metrics)
Saved adapters retain their deterministic reset state. TTT adds latency and memory, can worsen an output, and does not show biological function.
E1 has no tokenizer. The model keeps native raw-sequence preparation, boundary tokens, sequence positions, and retrieval-augmented context behavior. The ordinary representation path accepts sequences directly:
result = model.embed_dataset(
["MSTNPKPQRKTKRNT", "MKTIIALSYIFCLVFA"],
batch_size=2,
pooling=("mean",),
)
print(result[0].tensor.shape)
Lower-level masked-language-model calls must use the E1 batch preparer, not an
AutoTokenizer. E1 launch messages and distributed legal files keep the
attribution required by the upstream agreement.
AutoConfig, AutoModel, AutoModelForMaskedLM, AutoModelForSequenceClassification, AutoModelForTokenClassificationAutoConfig = FastPLMs extension, AutoModel = pretrained, AutoModelForMaskedLM = pretrained, AutoModelForSequenceClassification = base weights + untrained task head, AutoModelForTokenClassification = base weights + untrained task headsdpa, flex_attentiondefaultstatic_parametersnot_applicablecoretrueresolvedtruefalseFastPLMs pins the checkpoint, upstream source revisions, state transformation,
and required files in models.toml. Built artifacts record exact source
identities and conversion details in source-record.json.
Synthyra/Profluent-E1-600Msource-record.jsonProfluent-Bio/E1-600mfaste1_to_fastplms_v1e1check, compliance, feature, artifact, benchmark0Release validation includes the compliance tier. Its evidence identifies the
checkpoint, backend, dtype, hardware, inputs, and reference revision.
Declared tiers compare configuration, tokenizer behavior, state, and representative inference with the pinned reference. A nonzero unresolved count blocks release. Metadata alone does not show that a build passed, that a backend is faster, or that an output is biologically valid.
Checkpoint terms: Profluent-E1 Clickthrough License Agreement. The Hub model-card identifier is
other. The local artifact contains applicable source
licenses, notices, attribution, and conversion records. Review them before use.