dnagpt / OmniGene-4-SFT-v4

huggingface.co
Total runs: 0
24-hour runs: 0
7-day runs: 0
30-day runs: 0
Model's Last Updated: May 18 2026

Introduction of OmniGene-4-SFT-v4

Model Details of OmniGene-4-SFT-v4

OmniGene-4-SFT-v4 (LoRA)

LoRA adapter + extended embedding for OmniGene-4 SFT v4. Requires base Gemma-4-26B-A4B-it-bio.

This is the LoRA-only version. For the dual-head successor with classification heads, see OmniGene-4-SFT-v5 .

What's new in v4

v4 is the breakthrough that fixed v3's failures:

  • Pure Alpaca template ( ### Instruction: / ### Answer: ) — eliminates chat-tag collapse seen in v3 4-bit inference
  • Loss masking: prompt tokens set to -100, only answer tokens contribute to gradient
  • Task reweighting: Structure ×3, Mutation ×2 — addresses long-tail data scarcity
  • MAX_LENGTH 1024 → 1536 — fits longer Structure outputs

Result: Remote Homology +22.5 pp (59.5 → 82.0%), Structure unblocked from 0% to 25.7% char overlap.

What's in this repo (~1.9 GB)
File Size Purpose
lora_weights.pt 306 MB LoRA delta (cumulative: CPT v2 + SFT v2/v3/v4)
embedding_weights.pt 1.6 GB Extended embedding (290,048 tokens)
tokenizer.json 36 MB Extended bio tokenizer
chat_template.jinja 17 KB Alpaca-style template
bio_sft_v4_meta.json — Training metadata
Performance (4-bit + Alpaca prompt)
Benchmark v3 v4
Standard Homology 99.4% 99.5%
Remote Homology 59.5% 82.0%
BixBench 91.7% 90.4%
Structure char-overlap 0.0% 25.7%
Quick Start
import torch
from transformers import AutoTokenizer, AutoModelForCausalLM, BitsAndBytesConfig
from peft import LoraConfig, inject_adapter_in_model
from huggingface_hub import hf_hub_download

BASE = "dnagpt/gemma-4-26B-A4B-it-bio"
ADAPTER = "dnagpt/OmniGene-4-SFT-v4"

bnb = BitsAndBytesConfig(
    load_in_4bit=True, bnb_4bit_quant_type="nf4",
    bnb_4bit_compute_dtype=torch.bfloat16, bnb_4bit_use_double_quant=True,
)
model = AutoModelForCausalLM.from_pretrained(BASE, quantization_config=bnb, device_map={"": 0})
tokenizer = AutoTokenizer.from_pretrained(ADAPTER)

lora_config = LoraConfig(
    r=64, lora_alpha=128, lora_dropout=0.0, bias="none",
    target_modules=['q_proj','k_proj','v_proj','o_proj',
                    'gate_proj','up_proj','down_proj','router.proj'],
)
inject_adapter_in_model(lora_config, model.model.language_model, adapter_name="default")

ms = model.state_dict()
for k, v in torch.load(hf_hub_download(ADAPTER, "lora_weights.pt"), map_location="cpu").items():
    if k in ms: ms[k].copy_(v)
model.get_input_embeddings().weight.data.copy_(
    torch.load(hf_hub_download(ADAPTER, "embedding_weights.pt"), map_location="cpu")
)
model.eval()
Training Lineage
Gemma-4-26B-A4B-Instruct-bio (vocab-extended)
  ↓ CPT v2 (32.5 GB, 0.6 ep, 100 GPU-h)
  ↓ Bio-SFT v2 (179K instr, 1 ep, 11.8 GPU-h)
  ↓ Bio-SFT v3 (+20K remote homology, 13.2 GPU-h)
  ↓ Bio-SFT v4 (Alpaca + loss masking + reweighting, 30 GPU-h)
OmniGene-4-SFT-v4  ← YOU ARE HERE
Citation
@article{wang2026omnigene4,
  title={OmniGene-4: A Unified Bio-Language MoE Model with Router-Level Interpretability},
  author={Wang, Liang},
  journal={bioRxiv},
  year={2026}
}
Contact

Liang Wang ( [email protected] ) — Huazhong University of Science and Technology

Runs of dnagpt OmniGene-4-SFT-v4 on huggingface.co

0
Total runs
0
24-hour runs
0
3-day runs
0
7-day runs
0
30-day runs

More Information About OmniGene-4-SFT-v4 huggingface.co Model

More OmniGene-4-SFT-v4 license Visit here:

https://choosealicense.com/licenses/apache-2.0

OmniGene-4-SFT-v4 huggingface.co

OmniGene-4-SFT-v4 huggingface.co is an AI model on huggingface.co that provides OmniGene-4-SFT-v4's model effect (), which can be used instantly with this dnagpt OmniGene-4-SFT-v4 model. huggingface.co supports a free trial of the OmniGene-4-SFT-v4 model, and also provides paid use of the OmniGene-4-SFT-v4. Support call OmniGene-4-SFT-v4 model through api, including Node.js, Python, http.

OmniGene-4-SFT-v4 huggingface.co Url

https://huggingface.co/dnagpt/OmniGene-4-SFT-v4

dnagpt OmniGene-4-SFT-v4 online free

OmniGene-4-SFT-v4 huggingface.co is an online trial and call api platform, which integrates OmniGene-4-SFT-v4's modeling effects, including api services, and provides a free online trial of OmniGene-4-SFT-v4, you can try OmniGene-4-SFT-v4 online for free by clicking the link below.

dnagpt OmniGene-4-SFT-v4 online free url in huggingface.co:

https://huggingface.co/dnagpt/OmniGene-4-SFT-v4

OmniGene-4-SFT-v4 install

OmniGene-4-SFT-v4 is an open source model from GitHub that offers a free installation service, and any user can find OmniGene-4-SFT-v4 on GitHub to install. At the same time, huggingface.co provides the effect of OmniGene-4-SFT-v4 install, users can directly use OmniGene-4-SFT-v4 installed effect in huggingface.co for debugging and trial. It also supports api for free installation.

OmniGene-4-SFT-v4 install url in huggingface.co:

https://huggingface.co/dnagpt/OmniGene-4-SFT-v4

Url of OmniGene-4-SFT-v4

OmniGene-4-SFT-v4 huggingface.co Url

Provider of OmniGene-4-SFT-v4 huggingface.co

dnagpt
ORGANIZATIONS

Other API from dnagpt

huggingface.co

Total runs: 73
Run Growth: 54
Growth Rate: 73.97%
Updated:August 06 2023
huggingface.co

Total runs: 35
Run Growth: 18
Growth Rate: 51.43%
Updated:February 18 2025
huggingface.co

Total runs: 33
Run Growth: 22
Growth Rate: 66.67%
Updated:December 30 2024
huggingface.co

Total runs: 31
Run Growth: 16
Growth Rate: 51.61%
Updated:October 31 2024
huggingface.co

Total runs: 30
Run Growth: 25
Growth Rate: 83.33%
Updated:October 19 2024
huggingface.co

Total runs: 23
Run Growth: 18
Growth Rate: 78.26%
Updated:January 03 2025
huggingface.co

Total runs: 21
Run Growth: 16
Growth Rate: 76.19%
Updated:November 30 2024
huggingface.co

Total runs: 20
Run Growth: 14
Growth Rate: 70.00%
Updated:September 19 2025
huggingface.co

Total runs: 19
Run Growth: 13
Growth Rate: 68.42%
Updated:January 03 2025
huggingface.co

Total runs: 18
Run Growth: 11
Growth Rate: 61.11%
Updated:February 11 2025
huggingface.co

Total runs: 12
Run Growth: 7
Growth Rate: 58.33%
Updated:November 30 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 20 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:September 05 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 04 2026
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:October 12 2024
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:January 24 2025
huggingface.co

Total runs: 0
Run Growth: 0
Growth Rate: 0.00%
Updated:March 03 2025