# Crystals (CIF)

> 3D periodic crystal structure overview, common materials databases, and JARVIS-DFT formation energy results.

---

LLMS index: [llms.txt](/Sage-SciPerception/llms.txt)

---

![Crystal structure and formation energy demo](https://raw.githubusercontent.com/InternLM/Sage-SciPerception/main/assets/crystal-en.gif)

## Overview

Crystalline solids—typically exchanged as Crystallographic Information Files (CIF)—combine periodic unit-cell vectors with 3D atomic coordinates governed by space-group symmetry and local coordination geometry.

Raw CIF text alone buries interatomic distances and local bonding motifs across long coordinate lists. Sage-SciPerception extracts 64-dimensional per-atom states from frozen **CHGNet 0.3.0** (with 6 Å atom-graph and 3 Å bond-graph cutoffs) and projects the variable-length atom sequence directly into GLM-5.3-Flash embeddings.

## Common datasets

| Dataset | Scope and characteristics | Usage in Sage-SciPerception |
| --- | --- | --- |
| **JARVIS-DFT (`jdft-3d-20221212`)** | NIST DFT-computed 3D crystal structures with formation energies and electronic properties | `llm4mat-jarvis` (7,597 held-out crystals and disjoint training split) |
| **LLM4Mat-Bench** | Standardized multi-database benchmark for LLM materials property prediction | Defines the held-out JARVIS formation-energy evaluation protocol |
| **Materials Project / OQMD / Alexandria** | Large-scale inorganic DFT crystal repositories | Share the same 3D CIF representation |

## Sage-SciPerception capabilities & results

| Dimension | Details |
| --- | --- |
| Supported task | **Crystal formation energy prediction** (eV/atom) |
| Benchmark result | **JARVIS-DFT MAD/MAE = 15.03** (`glm-5.3-flash/cif/jarvis`, higher is better) |
| Input channels | Variable-length CHGNet 0.3.0 atom states `[num_atoms, 64]` |

- Checkpoint specification: [CIF/JARVIS task reference](/docs/tasks/cif-jarvis/)
- Inference examples: [`examples/vllm_cif.py`](https://github.com/InternLM/Sage-SciPerception/blob/main/examples/vllm_cif.py) and [`examples/vllm_projector.py`](https://github.com/InternLM/Sage-SciPerception/blob/main/examples/vllm_projector.py) (including multi-crystal comparison)
- Public training slice: [`samples/cif/jarvis/`](https://huggingface.co/datasets/internlm/Sage-SciPerception-Training/tree/main/samples/cif/jarvis)
