Downloads · 30 days
0
mryufei/llm4mat-sft-dudez
llm4mat-sft-dudez is a machine learning model from mryufei. Use it for the machine learning task on the model card, and read the license before you ship it in a product. It is set up for transformers.
This repository contains supervised fine-tuning artifacts generated from the llm4mat benchmark workflow.
Downloads · 30 days
0
Access
Public
Updated Mar 30, 2026
Repo size
2.5 GB
Likes
0
Public
Click a slice to open those files.
.safetensors2.5 GB · 99%
From the Hugging Face model README
This repository contains supervised fine-tuning artifacts generated from the llm4mat benchmark workflow.
mergedTemplate used to build QA prompts for this dataset:
Instructions:
Predict whether the molecule with SMILES {smiles} can bind to the target protein '{target}' (1 = active, 0 = inactive).
Prediction (0/1):
import torch
from transformers import AutoModelForCausalLM, AutoTokenizer
repo_id = "mryufei/llm4mat-sft-dudez"
subfolder = "merged"
tokenizer = AutoTokenizer.from_pretrained(repo_id, subfolder=subfolder)
model = AutoModelForCausalLM.from_pretrained(
repo_id,
subfolder=subfolder,
torch_dtype=torch.bfloat16,
device_map="auto",
)
prompt = "Question: Is this molecule active?\nAnswer:"
inputs = tokenizer(prompt, return_tensors="pt").to(model.device)
with torch.no_grad():
output = model.generate(**inputs, max_new_tokens=128, temperature=0.1)
print(tokenizer.decode(output[0], skip_special_tokens=True))