Run this model with HF Jobs

Run c-bone/CrystaLLM-pi_base on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/c-bone/CrystaLLM-pi_base. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/c-bone/CrystaLLM-pi_base on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/c-bone/CrystaLLM-pi_base. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/c-bone/CrystaLLM-pi_base. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.

Model Card for CrystaLLM-pi_base

Model Details

Model Description

CrystaLLM-pi_base is an unconditional generative model designed for the generation of valid inorganic crystal structures. It serves as the foundational pre-trained model for the CrystaLLM-pi framework. Based on a GPT-2 decoder-only architecture, it is trained on a large corpus of Crystallographic Information Files (CIFs) to learn the syntax, symmetry, and chemical rules governing crystalline matter.

This model does not accept property conditioning vectors. It generates structures based on text prompts (e.g., chemical composition or space group) or unconditionally (ab-initio generation).

  • Developed by: Bone et al. (University College London)
  • Model type: Autoregressive Transformer (GPT-2)
  • Language(s): CIF (Crystallographic Information File) syntax
  • License: MIT

Model Sources

Uses

Direct Use

The model is intended for:

  1. Unconditional Generation: Exploring the general chemical space of stable crystals.
  2. Composition/Space Group Completion: Generating valid structures given a partial prompt (e.g., a chemical formula).
  3. Fine-tuning base: Serving as the pre-trained initialization for property-conditional models (like CrystaLLM-pi_bandgap or CrystaLLM-pi_density).

Out-of-Scope Use

  • Property Conditioning: This model cannot be steered by properties like band gap or density. Use the specific fine-tuned variants for those tasks.
  • Large Unit Cells: Context window limit of 1024 tokens (~20 atoms/cell).

Bias, Risks, and Limitations

  • Training Distribution: The model reflects the biases present in the LeMaterial dataset. It is most effective at generating structures similar to known stable inorganic compounds.
  • Validity: While it learns CIF syntax reliably, it may still generate physically invalid structures (e.g., overlapping atoms) or chemically unstable compositions.

Getting started

Generation: T2_load_and_generate.ipynb. Finetuning onto a property: T1_finetune_density_example.ipynb.

Citation

@misc{bone2025discoveryrecoverycrystallinematerials,
      title={Discovery and recovery of crystalline materials with property-conditioned transformers},
      author={Cyprien Bone and Matthew Walker and Bradley A. A. Martin and Kuangdai Leng and Luis M. Antunes and Ricardo Grau-Crespo and Amil Aligayev and Javier Dominguez and Keith T. Butler},
      year={2025},
      eprint={2511.21299},
      archivePrefix={arXiv},
      primaryClass={cond-mat.mtrl-sci},
      url={https://arxiv.org/abs/2511.21299},
}
Downloads last month
900
Safetensors
Model size
25.9M params
Tensor type
F32
Β·
Inference Providers NEW
This model isn't deployed by any Inference Provider. πŸ™‹ Ask for provider support

Model tree for c-bone/CrystaLLM-pi_base

Finetunes
4 models

Dataset used to train c-bone/CrystaLLM-pi_base

Space using c-bone/CrystaLLM-pi_base 1

Collection including c-bone/CrystaLLM-pi_base

Paper for c-bone/CrystaLLM-pi_base