You need to agree to share your contact information to access this model

This repository is publicly accessible, but you have to accept the conditions to access its files and content.

Log in or Sign Up to review the conditions and access this model content.

Gemma4EC-9B-Predict

This repository contains the LoRA adapter for Gemma4EC, a model fine-tuned to predict Enzyme Commission (EC) numbers from biochemical reaction SMILES.

Base model

  • google/txgemma-9b-predict

Task

  • Input: biochemical reaction SMILES
  • Output: EC number (up to sub-subclass level)

Training

  • Parameter-efficient fine-tuning using LoRA
  • Few-shot prompt format

Usage

from transformers import AutoModelForCausalLM, AutoTokenizer
from peft import PeftModel

base_model = "google/txgemma-9b-predict"
adapter_repo = "PlanesLab/Gemma4EC-9B-Predict"

tokenizer = AutoTokenizer.from_pretrained(base_model)
model = AutoModelForCausalLM.from_pretrained(
    base_model,
    torch_dtype="auto",
    device_map="auto"
)

model = PeftModel.from_pretrained(model, adapter_repo)
model.eval()

Code

Full source code including training, inference and benchmarking scripts are available on:

https://github.com/PlanesLab/Gemma4EC

Citation

Downloads last month

-

Downloads are not tracked for this model. How to track
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for PlanesLab/Gemma4EC-9B-Predict

Adapter
(1)
this model