How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("text-generation", model="little1d/MolEditAgent-7B")
messages = [
    {"role": "user", "content": "Who are you?"},
]
pipe(messages)
# Load model directly
from transformers import AutoTokenizer, AutoModelForCausalLM

tokenizer = AutoTokenizer.from_pretrained("little1d/MolEditAgent-7B")
model = AutoModelForCausalLM.from_pretrained("little1d/MolEditAgent-7B", device_map="auto")
messages = [
    {"role": "user", "content": "Who are you?"},
]
inputs = tokenizer.apply_chat_template(
	messages,
	add_generation_prompt=True,
	tokenize=True,
	return_dict=True,
	return_tensors="pt",
).to(model.device)

outputs = model.generate(**inputs, max_new_tokens=40)
print(tokenizer.decode(outputs[0][inputs["input_ids"].shape[-1]:]))
Quick Links

MolEditAgent-7B

MolEditAgent is the Stage-1 model of the MolAct framework. It is fine-tuned to master basic molecular editing primitives within an agentic loop.

Key Features

  • Actionable Operations: Learns to perform Add, Delete, and Substitute operations on SMILES.
  • Tool-Augmented: Trained to interact with chemical tools for validity checking and similarity control.
  • Agentic Reasoning: Unlike static generators, it can "Think" and "Call" tools to refine the editing process.

Training & Usage

This model serves as the foundation for property-driven optimization.

If you use MolAct in your research, please cite:

@article{molact2025,
  title={MolAct: An Agentic RL Framework for Molecular Editing and Property Optimization},
  author={Zhuo Yang and Yeyun Chen and Jiaqing Xie and Ben Gao and Shuaike Shen and Wanhao Liu and Liujia Yang and Beilun Wang and Tianfan Fu and Yuqiang Li},
  year={2025},
  eprint={2512.20135},
  archivePrefix={arXiv},
  primaryClass={cs.AI},
  url={https://arxiv.org/abs/2512.20135}
}
Downloads last month
16
Safetensors
Model size
8B params
Tensor type
BF16
·
Inference Providers NEW
This model isn't deployed by any Inference Provider. 🙋 Ask for provider support

Model tree for little1d/MolEditAgent-7B

Base model

Qwen/Qwen2.5-7B
Finetuned
(2975)
this model
Finetunes
1 model
Quantizations
1 model

Collection including little1d/MolEditAgent-7B

Paper for little1d/MolEditAgent-7B