--- license: agpl-3.0 pipeline_tag: text-generation base_model: OpenDFM/ChemDFM-v1.0-13B tags: - chemistry - chat - 6bit language: - en - zh library_name: mlx --- # ChemDFM v1.0 13B 6-bit MLX MLX version of **ChemDFM v1.0 13B**: An Large Language Foundation Model for Chemistry This model was converted to MLX format from [`https://huggingface.co/OpenDFM/ChemDFM-v1.0-13B`]() using mlx-lm version **0.22.1**. ChemDFM 13B is the pioneering open-sourced dialogue foundation model for Chemistry and molecule science. ChemDFM outperforms the open-sourced LLMs in all the typical tasks of chemistry, and even reach comparable or higher performances of GPT-4. For more details, please refer to [paper](https://arxiv.org/abs/2401.14818). ## Use with mlx ```bash pip install -U mlx-lm ``` ```bash python -m mlx_lm.generate --model TheCluster/ChemDFM-v1.0-13B-mlx-6bit --max-tokens 1024 --temperature 0.5 --prompt "Can you please give detailed descriptions of the molecule below?\nCl.O=C1c2c(O)cccc2-c2nn(CCNCCO)c3ccc(NCCNCCO)c1c23" ```