Dedicated Endpoints

Run this model inference on single tenant GPU with unmatched speed and reliability at scale.

Learn more
Container

Run this model inference with full control and performance in your environment.

Learn more

Get help setting up a custom Dedicated Endpoints.

Talk with our engineer to get a quote for reserved GPU instances with discounts.

README

License: apache-2.0

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

python

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

Model provider

PlanesLab

Model tree

Base

google/txgemma-9b-predict

Adapter

this model

Modalities

Input

Text

Output

Text

Pricing

Dedicated Endpoints

View details

Supported Functionality

Model APIs

Dedicated Endpoints

Container

More information

Explore FriendliAI today