All models

Literature · fairydance

molexar-1-10m-it

A multi-condition foundation model generating Fragment-SELFIES molecules from properties, targets, and pharmacophores.

What molexar-1-10m-it is

Molexar-1-10M-IT is an instruction-tuned molecular causal language model developed by fairydance. Built as the universal multi-condition variant of the Molexar foundation model family, it generates molecules represented as Fragment-SELFIES strings. Fragment-SELFIES is a string-based molecular representation designed to guarantee chemical validity while operating over fragment-level building blocks.

The model addresses multi-modal conditional generation in early drug discovery. Rather than relying on separate models for target-based design, property optimisation, and ligand similarity, Molexar-1-10M-IT accepts a diverse spectrum of constraints, including scalar physical and medicinal chemistry properties, 2D pharmacophore fingerprints, protein sequence embeddings, and three-dimensional pocket geometry graphs.

Trained from the base model Molexar-1-10M-PT via supervised fine-tuning, it enables medicinal chemists and computational researchers to design candidate molecules de novo or perform fragment-constrained structural elaborations tailored to specific target or property profiles.

How it works

The model employs a Gemma2-style decoder architecture featuring 16 layers, an intermediate size of 640, a hidden dimension of 256, and grouped-query attention with 4 query heads and 1 key-value head. It operates across a context window of 256 tokens with a sliding window of 128 tokens. A unified sequence template structure wraps prompt conditions and generated molecules between specialized control tokens. Conditioning vectors replace designated value-token embeddings in place, ensuring that generation runs along standard autoregressive decoding paths and supports key-value caching.

Scalar molecular properties are incorporated using one-hot encodings or radial basis function (RBF) expansions. Pharmacophores use 1032-dimensional direct vectors, protein sequences are ingested as 1152-dimensional mean-pooled ESMC-600M embeddings, and protein pocket geometry is captured via a 256-dimensional Geometric Vector Perceptron (GVP) encoder applied to 8-nearest-neighbour graphs of pocket atoms. Supervised fine-tuning combines UniChem-derived Fragment-SELFIES molecular samples with target-ligand pairs sourced from SAIR and PLINDER, with cross-target sequence identity filtered against CrossDocked2020 test sets.

Key facts

Architecture
Gemma2-style decoder with in-place condition embedding replacement and GVP pocket encoder
Language model parameters
10,534,912
Total parameters
14,756,261
Layers
16
Hidden size
256
Attention configuration
4 query heads, 1 key-value head
Context length
256 tokens (128 sliding window)
Vocabulary size
127
Molecular representation
Fragment-SELFIES
Base model
fairydance/molexar-1-10m-pt

What you can use it for

Property-conditioned molecule generation
Design small molecules tailored to single or combined scalar criteria, including molecular weight, LogP, topological polar surface area (TPSA), QED, synthetic accessibility, and hydrogen bond donor or acceptor counts.
Target-aware de novo generation
Generate novel drug candidates directly conditioned on target information, using either ESMC-600M sequence embeddings or 3D pocket structure files.
Pharmacophore-guided molecular design
Produce structural analogues that preserve crucial interaction features by conditioning on a 1032-dimensional 2D pharmacophore fingerprint derived from a reference ligand.
Fragment-constrained molecular elaboration
Perform scaffold decoration, motif extension, linker design, scaffold morphing, or superstructure generation while enforcing simultaneous property or target conditions.

Run it here

We list this model but cannot run it yet: it was saved with a newer transformers release than our general image runs, so it needs an image of its own.

Everything on this page still applies. Running it needs a loader for this repository, not a bigger machine.

Strengths and limits

Good at

  • Unifies diverse conditioning modalities—including physical scalars, pharmacophores, protein sequences, and 3D pocket structures—within a single autoregressive framework.
  • Maintains standard key-value cache compatibility during multi-modal inference through in-place value-token embedding replacement.

Watch out for

  • For research use only: it is not a medical device and must not be used for diagnosis, treatment or any clinical decision.
  • The tokenizer omits the iodine token [I], necessitating bromine substitution in starting constraints.
  • Conditioning performance may degrade on contradictory, out-of-distribution, or rare combinations of input properties.
  • Explicit stereochemical configurations and 3D coordinate generation for output molecules are not supported.
  • Generation depends strictly on the quality and formatting of external inputs, such as ESM sequence embeddings and hydrogen-free pocket PDB preparations.

Inputs and outputs

You provide

  • Prompt

    The model continues from here.

You get back

  • The model's completion.

Licence

Check the licence before commercial use · mit

The mit licence carries terms worth reading before you depend on it.

Questions

Can I use molexar-1-10m-it commercially?

Check the licence before commercial use. The mit licence carries terms worth reading before you depend on it.

What formats are used for molecular input and output?

The model natively consumes and produces Fragment-SELFIES strings. These can be translated to and from canonical SMILES strings using the associated Fragment-SELFIES software package.

How are 3D protein pockets represented for generation?

Pocket structures must be provided as no-hydrogen PDB files defined within a 25 Angstrom radius and containing up to 425 atoms. An auxiliary Geometric Vector Perceptron (GVP) encodes a directed 8-nearest-neighbour atom graph into a 256-dimensional conditioning vector.

Which scalar physicochemical properties can be controlled during generation?

It supports heavy atom count, hydrogen bond donor count, hydrogen bond acceptor count, rotatable bond count, molecular weight, LogP, topological polar surface area (TPSA), quantitative estimate of drug-likeness (QED), and synthetic accessibility score (SAS).

How does the model handle protein sequence inputs?

Protein sequences are processed via the external ESMC-600M model to generate 1152-dimensional mean-pooled representations, which are injected directly into the prompt sequence.

How to cite it

Lin, Haoyu and Liao, Yiyan and Pan, Jinmei and Ling, Xinliao and Lai, Luhua and Pei, Jianfeng. Molexar: A Unified Multimodal Molecular Foundation Model for Drug Design. 2026.

Written from molexar-1-10m-it's own documentation (model card). Statements citing a figure that does not appear there are removed before publication. Licence and running details come from our registry.