Overview
LlaSMol is the chemistry large language model family from the paper 'LlaSMol: Advancing Large Language Models for Chemistry with a Large-Scale, Comprehensive, High-Quality Instruction Tuning Dataset' (arXiv 2402.09391), developed by the Ohio State University NLP group. This repository is the paper's official code release.
The README documents the project page, the SMolInstruct dataset on Hugging Face (osunlp/SMolInstruct), and four released models (LlaSMol-Galactica-6.7B, LlaSMol-Llama2-7B, LlaSMol-CodeLlama-7B, LlaSMol-Mistral-7B), trained on 4 task types and 14 tasks that include name conversion, property prediction and reaction-related tasks, with worked input/output examples in the README.
The repository code is MIT licensed. The four Hugging Face releases contain LoRA adapter weights, not standalone full base-model weights; all four model cards declare CC BY 4.0. SMolInstruct is also explicitly licensed under CC BY 4.0. Loading an adapter requires its corresponding Galactica, Llama2, CodeLlama or Mistral base model, whose separate terms still apply. The model cards describe research use and warn of incorrect outputs. Check generated structures, reactions and property answers against authoritative chemistry sources. Model card: https://huggingface.co/osunlp/LlaSMol-Mistral-7B ; dataset: https://huggingface.co/datasets/osunlp/SMolInstruct
Key Features
- Instruction-tuned chemistry LLMs released in four variants based on Galactica, Llama2, CodeLlama and Mistral backbones.
- Trained on SMolInstruct, a large-scale chemistry instruction tuning dataset published on Hugging Face.
- Covers 4 task types and 14 tasks documented in the README, including name conversion and property prediction.
Use Cases
- Experiment with instruction-following chemistry assistants for property and reaction questions.
- Reproduce or extend the paper's fine-tuning pipeline with the released dataset and code.
How to Use
Follow the repository generation example to load a named LlaSMol LoRA adapter together with its corresponding base model; use the documented input tags for SMILES and IUPAC names. Adapter cards declare CC BY 4.0, code is MIT, and SMolInstruct is CC BY 4.0; obtain the base model under its own terms. The releases are research models and outputs require chemical verification. See: https://github.com/OSU-NLP-Group/LLM4Chem
Sources and verification
This entry describes capabilities documented by the linked project sources. Catalog edits are not evidence of a successful run, compatibility test or scientific performance evaluation.
Repository source reviewed for this catalog version:
Read the editorial and verification policy