Views
No views yet
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.trust_remote_code=True. See Technical details for each registered class and
whether its weights come from the checkpoint.1python -m pip install -r \
2 "https://huggingface.co/Synthyra/Profluent-E1-600M/resolve/main/requirements.txt"trust_remote_code=True.1from transformers import AutoModel
2
3model_id = "Synthyra/Profluent-E1-600M"
4model = AutoModel.from_pretrained(
5 model_id,
6 trust_remote_code=True,
7 attn_implementation="sdpa",
8).eval()model_id with the manifest-built
dist/hub/Profluent-E1-600M path. Pass local_files_only=True.sdpa.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.1pooled = model.embed_dataset(
2 ["MSTNPKPQRKTKRNT", "MKTIIALSYIFCLVFA"],
3 batch_size=2,
4 pooling=("mean", "std"),
5)
6residues = model.embed_dataset(
7 ["MSTNPKPQRKTKRNT"],
8 full_embeddings=True,
9)
10print(pooled[0].tensor.shape) # (2 * d,)
11print(residues[0].tensor.shape) # (l, d)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.classifier. Sequence labels have shape (b,).
Residue labels have shape (b, l) and use -100 outside biological positions.1import torch
2from transformers import (
3 AutoModelForSequenceClassification,
4 AutoModelForTokenClassification,
5)
6
7model_id = "Synthyra/Profluent-E1-600M"
8sequence_model = AutoModelForSequenceClassification.from_pretrained(
9 model_id, num_labels=2, trust_remote_code=True
10).eval()
11token_model = AutoModelForTokenClassification.from_pretrained(
12 model_id, num_labels=3, trust_remote_code=True
13).eval()
14sequences = ["MSTNPKPQRKTKRNT", "MKTIIALSYIFCLVFA"]
15batch = sequence_model.prep_tokens.get_batch_kwargs(
16 sequences,
17 device=sequence_model.device,
18)
19biological = batch["sequence_ids"].ne(-1)
20
21sequence_labels = torch.zeros(len(sequences), dtype=torch.long)
22token_labels = torch.full_like(batch["input_ids"], -100)
23token_labels[biological] = 0
24
25with torch.inference_mode():
26 sequence_output = sequence_model(**batch, labels=sequence_labels)
27 token_output = token_model(**batch, labels=token_labels)
28print(sequence_output.logits.shape) # (b, 2)
29print(token_output.logits.shape) # (b, l, 3)python -m pip install "datasets>=4.8,<5" "peft>=0.19,<0.20"1from peft import LoraConfig, TaskType, get_peft_model
2
3peft_model = get_peft_model(
4 sequence_model,
5 LoraConfig(
6 task_type=TaskType.SEQ_CLS,
7 r=8,
8 lora_alpha=16,
9 target_modules="all-linear",
10 modules_to_save=["classifier"],
11 ),
12)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.1from transformers import AutoModelForMaskedLM
2
3ttt_model = AutoModelForMaskedLM.from_pretrained(
4 "Synthyra/Profluent-E1-600M",
5 trust_remote_code=True,
6)
7metrics = ttt_model.ttt(
8 seq="MSTNPKPQRKTKRNT",
9 ttt_config={"steps": 3, "batch_size": 1, "seed": 7},
10)
11ttt_model.save_pretrained("adapted", safe_serialization=True)
12ttt_model.ttt_reset()
13print(metrics)1result = model.embed_dataset(
2 ["MSTNPKPQRKTKRNT", "MKTIIALSYIFCLVFA"],
3 batch_size=2,
4 pooling=("mean",),
5)
6print(result[0].tensor.shape)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_applicablecoretrueresolvedtruefalsemodels.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, benchmark0compliance tier. Its evidence identifies the
checkpoint, backend, dtype, hardware, inputs, and reference revision.other. The local artifact contains applicable source
licenses, notices, attribution, and conversion records. Review them before use.