CoolFace
Modelpublic

mims-harvard/bio-posttrain-gemma4-e2b-rna-sft

sourceHugging Facegemmaupdated 3mo agoView on Hugging Face
0likes13downloads
Model Card

Bio-posttrain Gemma-4-E2B RNA SFT

RNA supervised fine-tuning (SFT) checkpoint from How Post-Training Shapes Biological Reasoning Models.

Model details

  • —Base model: google/gemma-4-E2B-it
  • —RNA embeddings: Precomputed TranscriptFormer (2048-d), projected via rna_projection.pt
  • —LoRA: rank 32, alpha 64
  • —Validation loss: 0.9227

Files

FileDescription
model.safetensorsMerged LLM weights
rna_projection.ptLinear map RNA embed (2048) → text hidden
rna_model_config.jsonArchitecture metadata

Loading

python
from transformers import AutoModelForCausalLM, AutoTokenizer
import torch

model = AutoModelForCausalLM.from_pretrained("mims-harvard/bio-posttrain-gemma4-e2b-rna-sft", trust_remote_code=True)
tokenizer = AutoTokenizer.from_pretrained("mims-harvard/bio-posttrain-gemma4-e2b-rna-sft")
proj = torch.load("rna_projection.pt", map_location="cpu")

RNA sequence embeddings are supplied offline at inference time. See the rna_models code in the BioReason repository.

Collection

Part of the Bio-posttrain collection.