Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

fairchem

БесплатноЗапускает вложенные скриптыНе проверен

Expert guidance for Meta's FAIRChem library - machine learning methods for materials science and quantum chemistry using pretrained UMA models with ASE…

jkitchinот jkitchin★ 45 звёзд на GitHub23 установки в других каталогах

Об этом скилле

FAIRChem Skill

This skill provides expert guidance for using FAIRChem (formerly OCP - Open Catalyst Project), Meta's FAIR Chemistry library of machine learning methods for materials science and quantum chemistry.

When to Use This Skill

Use this skill when:

  • Using ML potentials for materials and molecular simulations
  • Running fast geometry optimizations with pretrained models
  • Performing large-scale MD simulations
  • Calculating energies and forces without DFT
  • Working with the UMA (Universal Materials Algebra) models
  • Needing predictions for catalysis, molecules, crystals, or MOFs
  • Integrating ML models with ASE workflows
  • Scaling calculations across multiple GPUs

Batch scripting vs. interactive steering (fairchem-mcp)

This skill covers the batch workflow: write a Python script, run it, read the output. That is the right default for reproducible, unattended calculations.

For interactive, agent-steered simulation, there is a companion MCP server, fairchem-mcp (https://github.com/jkitchin/fairchem-mcp). It keeps the model resident, runs relaxations/MD in the background, and lets you watch a job and steer it mid-flight. Prefer it when:

  • You want to monitor a long relaxation/MD and react to a trend verdict (decreasing / plateaued / stuck / diverging).
  • You want to change strategy mid-run — switch optimizer when FIRE stalls, tighten/loosen fmax, change temperature, pause or abort — without restarting.
  • You want the model loaded once and reused across many quick calls.
  • You want to introspect the installed API or live objects (introspect) or drop to raw Python on the same live Atoms (execute / inspect_expr).

Key tools: attach_emt / load_model / attach_lammps (LAMMPS classical potentials as the force engine), build_structure, start_relaxation / start_md, start_neb (reaction barriers, steer set_climb near convergence) and start_phonons (frequencies + imaginary-mode/stability check), start_minima_search (multiple distinct relaxed geometries via deflation/flooding — adsorption sites, cluster isomers, conformers), start_eos_scan (strain scan → equation-of-state fit: V0, E0, bulk modulus), start_elastic_scan (stress-vs-strain → elastic tensor C_ij, VRH moduli, Born stability), start_convex_hull (formation energies → phase stability / energy above hull, e.g. alloy design), transition-state searches start_saddle_search (dimer, Hessian-free), start_sella_search (Sella RFO), and start_pounce_saddles (enumerate saddles by Morse index), get_status, get_results, steer, introspect. Register it with {"mcpServers": {"fairchem": {"command": "fairchem-mcp"}}}. Use plain batch scripts (below) when you don't need live observation or steering.

What is FAIRChem?

FAIRChem is Meta's machine learning framework for chemistry that provides:

  • Pretrained UMA models (uma-s-1p2, uma-m-1p1) for universal predictions
  • Domain-specific tasks: catalysis (oc20, oc22, oc25), materials (omat), molecules (omol), MOFs (odac), crystals (omc)
  • ASE integration via FAIRChemCalculator
  • Multi-GPU support for distributed inference via Ray
  • Fast predictions: 100-1000× faster than DFT

Key Advantage

FAIRChem allows you to use the same model across different chemistry domains by simply changing the task_name parameter.

Core Concepts

1. UMA Models

Universal Materials Algebra models trained on diverse datasets:

  • uma-s-1p2: Small model (6.6M/290M parameters) - fastest inference, best small model
  • uma-s-1p1: Small model (6.6M/150M parameters) - previous generation
  • uma-m-1p1: Medium model (50M/1.4B parameters) - highest accuracy

2. Task Names (Domains)

Specify the chemistry domain for domain-specific predictions:

  • oc20: Catalysis (surfaces with adsorbates)
  • oc22: Oxide catalysis (uma-s-1p2 only)
  • oc25: Electrocatalysis (uma-s-1p2 only)
  • omat: Inorganic materials (crystals, bulk)
  • omol: Molecules (organic chemistry, polymers)
  • odac: Metal-organic frameworks (MOFs)
  • omc: Molecular crystals

3. FAIRChemCalculator

ASE calculator interface that wraps UMA models:

  • Drop-in replacement for DFT calculators
  • Supports all ASE workflows
  • Provides energies, forces, and stresses
  • Compatible with optimization, MD, NEB

4. Inference Settings

Performance optimization modes:

  • default: Balanced speed and accuracy
  • turbo: Faster inference, slightly reduced accuracy
  • turbo_umas: Maximum speed for UMA-S models (uses triton kernels)
  • Execution modes: general, umas_fast_pytorch, umas_fast_gpu

Installation

# Install fairchem
pip install fairchem-core

# For GPU support
pip install fairchem-core[gpu]

# For multi-GPU support (Ray)
pip install fairchem-core[extras]

# Hugging Face login (required for UMA models)
pip install huggingface-hub
huggingface-cli login

Note: You must have a Hugging Face account and request access to the UMA mode

Полный SKILL.md на GitHub

Установить fairchem в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

*

Вложенные файлы

QUICK_REFERENCE.mdREADME.mdexamples/catalyst_screening.py

FAQ

Что делает скилл fairchem?

Expert guidance for Meta's FAIRChem library - machine learning methods for materials science and quantum chemistry using pretrained UMA models with ASE integration for fast, accurate predictions

Как установить скилл fairchem?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл fairchem запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить fairchem с