All models

Literature · fairydance

molexar-1-10m-pt

A 10M-parameter molecular language model for unconditional drug generation and fragment continuation.

What molexar-1-10m-pt is

Molexar-1-10M-PT is an unconditional base molecular language model developed by fairydance for drug design. It functions as the foundation component of Molexar, an architecture designed for molecular generation. The model operates over Fragment-SELFIES, a molecular representation based on Breaking of Retrosynthetically Interesting Chemical Substructures (BRICS) fragments that provides validity-preserving decoding and fragment-continuation capabilities.

The model addresses computational de novo design and chemical ideation by generating molecular structures either unconditionally or starting from predefined chemical motifs. By working at the fragment level rather than individual characters, it aims to produce drug-like candidate molecules with high chemical validity.

Molexar-1-10M-PT serves as an unconditional baseline and an initialization checkpoint for downstream fine-tuning within the Molexar ecosystem. While conditioned generation tasks involving targets or properties require instruction-tuned variants, this base checkpoint provides molecular hypothesis generation for computational chemistry workflows.

How it works

Molexar-1-10M-PT is built as an autoregressive decoder following a Gemma2-style architecture. It incorporates rotary position embeddings (RoPE), grouped-query attention with 4 query heads and 1 key-value head, alternating sliding-window (128 tokens) and full-attention mechanisms across 16 layers, and logit softcapping. It uses a sequence context length of 256 tokens and a vocabulary size of 127 tokens.

The model was pre-trained using a causal language modelling objective across two epochs with bfloat16 mixed precision on eight H800 GPUs using Fully Sharded Data Parallelism (FSDP). This corpus was derived from UniChem, supplemented with ligand coverage from SAIR and PLINDER, and processed through canonicalization, deduplication, and drug-likeness and safety filtering.

Key facts

Architecture
Gemma2-style causal decoder with RoPE, grouped-query attention, sliding-window attention, and logit softcapping
Language model parameters
10,534,912
Total parameters
14,756,261
Layers
16
Hidden size
256
Context length
256 tokens
Sliding window
128 tokens
Attention heads
4 query heads, 1 key-value head
Vocabulary size
127
Molecular representation
Fragment-SELFIES

What you can use it for

Unconditional Molecule Generation
Generates diverse, novel chemical structures de novo without pre-specified target constraints or property conditions.
Motif Extension
Completes full molecular candidates starting from an initial chemical fragment or SMILES seed.
Scaffold Decoration and Morphing
Proposes alternative substituents around a core chemical scaffold or explores variations of central molecular cores.
Linker Design
Generates bridging chemical moieties to connect two or more disparate molecular fragments.
Model Fine-Tuning Baseline
Acts as a pre-trained checkpoint for fine-tuning on specialized chemical datasets or downstream molecular tasks.

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

  • Employs Fragment-SELFIES to guarantee validity-preserving decoding across fragment-constrained tasks.
  • Retains compatibility with universal multi-condition prompt templates used across the Molexar framework.

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.
  • Does not support active conditioning on molecular properties, pharmacophores, protein sequences, or binding pockets.
  • Does not include an iodine token ([I]) in its tokenizer vocabulary, requiring bromine substitutions in seed constraints.
  • Cannot generate or control stereochemistry or explicit three-dimensional molecular coordinates.
  • Output structures are computational hypotheses that do not guarantee biological activity, safety, or synthetic accessibility.

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-pt commercially?

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

Can this model generate molecules targeted to a specific protein pocket?

No. Molexar-1-10M-PT is an unconditional base model. Pocket-conditioned, protein-sequence-conditioned, or property-conditioned generation requires the instruction-tuned variant, molexar-1-10m-it.

What molecular format is used for input and generation?

The model operates natively on Fragment-SELFIES, an extension of SELFIES built on BRICS fragments. The accompanying codebase includes utilities to convert input SMILES fragments into Fragment-SELFIES and decode output strings back to SMILES.

How are halogen atoms handled given vocabulary constraints?

The tokenizer lacks an iodine token ([I]). When providing starting constraints containing iodine, users must substitute iodine with bromine before inference.

What fragment-constrained tasks are supported?

The model supports motif extension, scaffold decoration, linker design, scaffold morphing, and superstructure generation.

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-pt'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.