Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

The Clay Foundation Model - An open source AI model and interface for Earth

License

NotificationsYou must be signed in to change notification settings

Clay-foundation/model

Repository files navigation

Jupyter Book BadgeDeploy Book Status

An open source AI model and interface for Earth.

License

Clay Model is licensed under theApache. This applies to the source code as well as the trained model weights.

The Documentation is licensed under theCC-BY-4.0 license.

Quickstart

Launch into aJupyterLab environment on

BinderSageMaker Studio Lab
BinderOpen in SageMaker Studio Lab

Installation

Pip Installation (Recommended)

The easiest way to install Clay Foundation Model is via pip:

pip install git+https://github.com/Clay-foundation/model.git

This will install theclaymodel package and all its dependencies. You can then import and use it in your Python code:

fromclaymodel.datamoduleimportClayDataModulefromclaymodel.moduleimportClayMAEModule

Development Installation

For development or advanced usage, you can set up the full development environment:

To help out with development, start by cloning thisrepo-url

git clone <repo-url>cd model

Then we recommendusing mambato install the dependencies. A virtual environment will also be created with Python andJupyterLab installed.

mamba env create --file environment.yml

Note

The command above has been tested on Linux devices with CUDA GPUs.

Activate the virtual environment first.

mamba activate claymodel

Finally, double-check that the libraries have been installed.

mamba list

Usage

Running jupyter lab

mamba activate claymodelpython -m ipykernel install --user --name claymodel  # to install virtual env properlyjupyter kernelspec list --json                       # see if kernel is installedjupyter lab &

Running the model

The neural network model can be ran viaLightningCLI v2.

Note

If you installed via pip, you'll need to clone the repository to access the trainer script and config files.

To check out the different options available, and look at the hyperparameterconfigurations, run:

python trainer.py --help

To quickly test the model on one batch in the validation set:

python trainer.py fit --model ClayMAEModule --data ClayDataModule --config configs/config.yaml --trainer.fast_dev_run=True

To train the model:

python trainer.py fit --model ClayMAEModule --data ClayDataModule --config configs/config.yaml

More options can be found usingpython trainer.py fit --help, or at theLightningCLI docs.

Contributing

Writing documentation

Our Documentation usesJupyter Book.

Install it with:

pip install -U jupyter-book

Then build it with:

jupyter-book build docs/

You can preview the site locally with:

python -m http.server --directory _build/html

There is a GitHub Action on./github/workflows/deploy-docs.yml that builds the site and pushes it to GitHub Pages.


[8]ページ先頭

©2009-2025 Movatter.jp