All models

Literature · c-bone

CrystaLLM-pi base

An unconditional GPT-2 model that generates valid inorganic crystal structures in CIF format.

What CrystaLLM-pi base is

CrystaLLM-pi base is an autoregressive language model created by researchers at University College London for generating inorganic crystal structures. It acts as the foundational pre-trained model for the CrystaLLM-pi framework, operating directly on the text-based syntax of Crystallographic Information Files (CIFs).

The model addresses the challenge of inorganic crystal structure design by learning the structural syntax, spatial symmetry, and underlying chemical rules governing crystalline materials. It operates without property conditioning, supporting both ab initio structure synthesis and guided completion from text prompts such as chemical compositions or space group labels.

How it works

CrystaLLM-pi base is built on a GPT-2 decoder-only autoregressive transformer architecture. It is trained on the c-bone/lematerial_clean dataset, a corpus of crystallographic information files, learning token-by-token dependencies that capture chemical composition, symmetry operations, and atom site parameters.

The system generates crystal descriptions either unconditionally or conditionally from partial CIF headers. Input and output sequences are constrained to a context window of 1024 tokens, which roughly corresponds to structures containing up to 20 atoms per unit cell.

Key facts

Architecture
GPT-2 decoder-only autoregressive transformer
Context length
1024 tokens
Training dataset
c-bone/lematerial_clean
Input format
CIF text prompt (composition, space group, or blank)
Output format
CIF (Crystallographic Information File)

What you can use it for

Unconditional crystal generation
Sampling ab initio crystal structures to explore the broader chemical space of inorganic materials.
Prompt-based crystal completion
Producing valid unit cell structures conditioned on partial text prompts such as a designated chemical formula or space group.
Pre-training base for downstream fine-tuning
Providing a pre-trained base model for fine-tuning on specific material targets, such as bandgap or density conditioning.

Run it here

We list this model but cannot run it yet: its first test run here did not return a result, so it is tried again in a week.

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

Strengths and limits

Good at

  • Learns crystallographic syntax, symmetry, and chemical composition directly in native CIF format without specialized graph representations.
  • Serves as a ready starting point for fine-tuning property-conditioned generative models.
  • Capable of producing complete structural arrangements from simple compositional or symmetry text prompts.

Watch out for

  • Cannot accept property conditioning vectors such as target band gap or density without additional fine-tuning.
  • Context window is limited to 1024 tokens, restricting generation to unit cells with approximately 20 atoms or fewer.
  • May output chemically unstable compositions or physically implausible arrangements with overlapping atoms.
  • Reflects the data distribution and biases of the LeMaterial training dataset.

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 CrystaLLM-pi base commercially?

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

Can this model directly target specific material properties like band gap or density?

No. CrystaLLM-pi base is an unconditional model that does not take property conditioning vectors; specialized fine-tuned variants are required to steer generation by property values.

What is the maximum crystal size the model can generate?

Because the model has a context window limit of 1024 tokens, it is restricted to structures with around 20 atoms per unit cell.

What format does the model use for inputs and outputs?

It operates entirely on text using Crystallographic Information File (CIF) syntax.

How to cite it

Cyprien Bone, Matthew Walker, Bradley A. A. Martin, Kuangdai Leng, Luis M. Antunes, Ricardo Grau-Crespo, Amil Aligayev, Javier Dominguez, Keith T. Butler. Discovery and recovery of crystalline materials with property-conditioned transformers. arXiv:2511.21299 [cond-mat.mtrl-sci], 2025.

Written from CrystaLLM-pi base'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.