/ Модель

Характеристики

Контекст
2 048 токенов
Параметры
12,9 млрд
Размер весов
26,2 ГБ
Лицензия
AGPL 3.0
Архитектура
llama · dense
Опубликована
7 мар 2024

ChemDFM-v1.0-13B

Генерация текстаТекст → текст3 профессии

Диалоговая модель на основе LLaMA-13B для ответов на вопросы и помощи в исследовательских задачах по химии и молекулярной науке.

162скачиваний за 30 дней33лайкавеса обновлены26 окт 2025

Бенчмарки

Как модель справилась с задачами пользователей ailist и что о ней публикуют открытые лидерборды

Тесты пользователейпока нет

Никто ещё не опубликовал тест этой модели. Соберите бенчмарк из своих задач — результат появится здесь.

  1. Добавьте модель в бенчмарк

    Вместе с другими моделями категории «Текст» — сравнение идёт внутри одной категории.

  2. Опишите свои задачи

    Напишите запросы, при необходимости приложите файлы и эталонные ответы.

  3. Запустите и опубликуйте

    Модели ответят на каждую задачу, судья оценит ответы. Опубликованный результат появится на этой странице.

Публичные оценки

Из открытых лидербордов. Сравнивайте результаты одного теста при одинаковых условиях — отсутствие оценки не значит, что модель хуже.

В подключённых источниках результатов для этой модели пока нет.

Что умеет модель

Описание составлено по карточке модели и метаданным Hugging Face

ChemDFM-v1.0-13B — диалоговая языковая модель для химии и молекулярной науки, разработанная командой OpenDFM на основе LLaMA-13B. Это плотная модель семейства LLaMA с 12,9 млрд параметров, предназначенная для генерации ответов на вопросы и ведения диалога по химическим темам. Она обучалась на корпусах химической литературы и дообучалась для следования инструкциям.

Модель подходит для объяснения химических понятий, обсуждения молекул и реакций, а также поддержки исследовательских сценариев, например анализа синтетических стратегий и предложений по проведению реакций. В запросах можно использовать обозначения SMILES; авторы рекомендуют предварительно канонизировать их с помощью RDKit. Модель поддерживает английский и китайский языки, а её контекст составляет 2048 токенов.

В README заявлены сильные результаты на типичных химических задачах и способность корректировать и уточнять ответы в диалоге. Модель может выдавать неверную или вводящую в заблуждение информацию, поэтому ответы следует проверять с профильными специалистами. Распространяется по лицензии AGPL-3.0.

Сценарии применения

  • ответы на вопросы по химии и молекулярной науке
  • объяснение химических понятий и реакций
  • обсуждение молекул, заданных в формате SMILES
  • подготовка вариантов синтетической стратегии
  • уточнение и корректировка химических предложений в диалоге

Ограничения

Модель может генерировать неверные или вводящие в заблуждение сведения; ответы и рекомендации необходимо проверять с экспертами. Контекст ограничен 2048 токенами.

Для каких профессий подходит3

Разделы каталога профессий, в задачах которых используется эта модель

Все профессии

Карточка модели

README от автора на Hugging Face, как он его опубликовал

Открыть на Hugging Face

ChemDFM: A Large Language Foundation Model for Chemistry

Main Image

ChemDFM is the pioneering open-sourced dialogue foundation model for Chemistry and molecular science, which is built based on LLaMa-13B. ChemDFM outperforms the open-sourced LLMs in all the typical tasks of chemistry, and even reaches comparable or higher performances to GPT-4. For more details, please refer to our paper.

News

  • 2025-10-26: The parameter of ChemDFM-R-14B is open-sourced!

  • 2025-10-26: ChemDFM-v2.0-14B is released! The improved domain pre-training and instruction tuning procedure is implemented on Qwen2.5-14B to achieve a more advanced general LLM in Chemistry. More details can be found here.

  • 2025-07-29: The paper of ChemDFM-R-14B is released on arXiv: ChemDFM-R: A Chemical Reasoning LLM Enhanced with Atomized Chemical Knowledge.

  • 2025-04-16: Our paper is accepted by Cell Report Physical Science. The published version can be accessed HERE

  • 2024-11-09: ChemDFM-v1.5-8B is released! We implemented our domain pre-training and instruction tuning procedure on a stronger base model LLaMA-3-8B.

  • 2024-06-13: The results on the comprehensive science benchmark SciKnowEval show that "ChemDFM emerged as one of the top open-source models by continuing pre-training and fine-tuning on a vast corpus of scientific literature".

  • 2024-04-17: The evaluation data (including instructions) we used in our paper is released on GitHub

  • 2024-03-12: The parameter of ChemDFM-v1.0-13B is open-sourced!

  • 2024-01-26: The paper of ChemDFM-13B is released on arXiv: ChemDFM: Dialogue Foundation Model for Chemistry

Usage Details

The online demo of ChemDFM will be up soon!

local inference

To load and run ChemDFM locally, here is an example:

import torch
from transformers import LlamaTokenizer, LlamaForCausalLM, GenerationConfig

model_name_or_id = "OpenDFM/ChemDFM-13B-v1.0"
tokenizer = LlamaTokenizer.from_pretrained(model_name_or_id)
model = LlamaForCausalLM.from_pretrained(model_name_or_id, torch_dtype=torch.float16, device_map="auto")

input_text = "Can you please give detailed descriptions of the molecule below?\nCl.O=C1c2c(O)cccc2-c2nn(CCNCCO)c3ccc(NCCNCCO)c1c23"
input_text = f"[Round 0]\nHuman: {input_text}\nAssistant:"

inputs = tokenizer(input_text, return_tensors="pt").to("cuda")
generation_config = GenerationConfig(
    do_sample=True,
    top_k=20,
    top_p=0.9,
    temperature=0.9,
    max_new_tokens=1024,
    repetition_penalty=1.05,
    eos_token_id=tokenizer.eos_token_id
)

outputs = model.generate(**inputs, generation_config=generation_config)
generated_text = tokenizer.batch_decode(outputs, skip_special_tokens=True)[0][len(input_text):]
print(generated_text.strip())

input format

To get better responses, we recommend to preprocess your input and history with the dialogue templates which are used during instruction tuning of ChemDFM. Specifically, for an input queries

{'current_query': current_query, 'history': [(query1, answer1), (query2, answer2), ...]}

, you can use the following code to preprocess the input and history:

def formatting_input(current_query, history):
    input_text = ''
    for idx, (query, answer) in history:
        input_text += f"[Round {idx}]\nHuman: {query}\nAssistant: {answer}\n"
    input_text += f"[Round {len(history)}]\nHuman: {current_query}\nAssistant:"
    return input_text

SMILES preprocess

When there involves SMILES notation in your input, we recommend to preprocess the SMILES with the rdkit package to canonicalize the SMILES. Here is an example:

from rdkit import Chem
def canonicalize_smiles(smiles):
    mol = Chem.MolFromSmiles(smiles)
    if mol is None:
        return None
    return Chem.MolToSmiles(mol, isomericSmiles=True, kekuleSmiles=False)

or directly:

from rdkit import Chem
def canonicalize_smiles(smiles):
    return Chem.CanonSmiles(smiles, useChiral=True)

Performance

Chemical Benchmarks

We evaluate the performance of ChemDFM-13B on multiple widely used benchmarks in chemistry. The detailed introduction of the benchmarks can be found in our paper. The overall performance of ChemDFM-13B is shown below:

Objective Performance

Human Evaluation

Human Evaluation of QA

We mark the correct and relevant information in the replies in green, the correct but irrelevant information in yellow, and the wrong information in red. In addition, the key points of the answer are marked in bold if they appear in the reply.

The results show that while open-sourced LLMs perform well when asked about existing knowledge (Q1), only ChemDFM can provide correct and comprehensive answers when questions involve new molecules and reactions (Q2 [Yin et al., 2023] & Q3 [Dargo et al., 2023])

Human Evaluation of Dialogue

The above conversation is also inspired by Yin et al.[2023]. During the dialogue, the researcher wants to selectively oxidize one of the two carbonyl groups of a molecule. However, the initial solution given by ChemDFM results in both carbonyl groups being oxidized. Through the correction given by the researcher, ChemDFM adjusts its proposal and provides two possible solutions. Finally, the researcher chooses to use protecting groups and ChemDFM further details its advice. In the dialogue, ChemDFM shows promising capabilities regarding error correction (Round 2) and detailing (Round 3) when handling real-world research scenarios.

For more examples and analysis, please refer to our paper.

Citation

@article{zhao2025developing,
  title={Developing ChemDFM as a large language foundation model for chemistry},
  author={Zhao, Zihan and Ma, Da and Chen, Lu and Sun, Liangtai and Li, Zihao and Xia, Yi and Chen, Bo and Xu, Hongshen and Zhu, Zichen and Zhu, Su and others},
  journal={Cell Reports Physical Science},
  volume={6},
  number={4},
  year={2025},
  publisher={Elsevier}
}

Disclaimer

Current version of ChemDFM may generate incorrect or misleading information. Please use it with caution and verify the results with domain experts before making any decisions based on the results.

Contact

If you have any questions or further requests, please contact Zihan Zhao and Lu Chen.

Как запустить

На своей GPU в ailist. Цена — по текущим предложениям провайдеров

GPU в ailist

Универсальный рантайм

Можно запустить

Подбираем GPU…

Класс архитектуры
LlamaForCausalLM
Ревизия весов
61a394a

0 моделей