# Gridium AI

<table data-view="cards"><thead><tr><th></th><th></th><th data-hidden data-card-cover data-type="files"></th><th data-hidden></th><th data-hidden data-card-target data-type="content-ref"></th></tr></thead><tbody><tr><td><strong>Getting Started</strong></td><td>Create your first site</td><td></td><td></td><td><a href="/pages/CyH2xJQs9yWJ1S8BYNav">/pages/CyH2xJQs9yWJ1S8BYNav</a></td></tr><tr><td><strong>Basics</strong></td><td>Learn the basics of GitBook</td><td></td><td></td><td><a href="/pages/7aUFmnCMx9m4smGncsXL">/pages/7aUFmnCMx9m4smGncsXL</a></td></tr><tr><td><strong>Publish your docs</strong></td><td>Share your docs online</td><td></td><td></td><td><a href="/pages/JjjojIyKxaiBPzzLwvtg">/pages/JjjojIyKxaiBPzzLwvtg</a></td></tr></tbody></table>


# 1. Introduction

Gridium is not just a decentralized compute network — it is the **scientific-grade AI infrastructure** designed to bring together cosmology, mathematics, AI, and blockchain into a unified ecosystem. By integrating Nobel Prize-winning research from Prof. George F. Smoot on **cosmic microwave background (CMB) perturbations**, Gridium models decentralized AI systems as dynamic, evolving universes of agents, tasks, and semantic flows.

The new release focuses on two powerful modules:

* **Professor X**: Context-to-contract intelligence, turning natural language into adaptive, secure smart contracts.
* **Dr Strange**: Distributed scientific reasoning, coordinating multi-agent collaboration for DeScience and predictive analytics.

Together, they form the backbone of Gridium’s **adaptive, context-aware, and resilient AI network**.


# 2. Mathematical Foundations from Cosmology


# 2.1 Perturbation Modeling in Cosmology

Smoot’s Nobel-winning work analyzed **tiny fluctuations in the CMB** — minute variations in temperature that encoded the seeds of galaxies and cosmic structure. These perturbations can be represented mathematically as:

$$
\delta T(\theta, \phi) = \sum\_{\ell=0}^{\infty}\sum\_{m=-\ell}^{\ell} a\_{\ell m} Y\_{\ell m}(\theta, \phi)
$$

Where:

* $$
  \delta T(\theta, \phi)
  $$

  \= CMB temperature anisotropy,
* $$
  a\_{\ell m}
  $$

  \= coefficients encoding fluctuation amplitudes,
* $$
  Y\_{\ell m}
  $$

  \= spherical harmonics describing angular modes.

These perturbations are **not noise** — they are the fingerprints of the universe’s birth, revealing the **structure of space-time** and the **distribution of matter**.


# 2.2 Mapping Cosmology to AI

In Gridium, **semantic perturbations** replace cosmic fluctuations. Instead of temperature fields, we model **task flows, agent states, and data streams** as evolving context graphs:

$$
C\_t = f(G\_t, S\_t) = \text{Aggregate}({x\_{v\_1}, ..., x\_{v\_n}}, S\_t)
$$

## Where:

$$
G\_t
$$

## = context graph of tasks and transitions,

$$
S\_t
$$

\= external sentiment or off-chain signal,

* $$
  C\_t
  $$

  \= aggregated semantic context vector.

This mapping allows Gridium to detect **semantic hotspots**, predict **task clustering**, and route computation **as if it were matter clustering in the early universe**.


# 3. Gridium + Smoot: Fusion of Research and Infrastructure


# 3.1 Semantic Perturbation Map (SPM)

Just as Smoot’s CMB analysis revealed patterns of anisotropy, Gridium’s **SPM** detects semantic tension in decentralized AI systems:

* Hotspots = agent overload points.
* Cold regions = underutilized resources.
* Stable nodes = cooperative agent clusters.


# 3.2 Heat Field Backtracking Map

In cosmology, perturbation analysis allows scientists to **trace back** the early conditions of the universe. Gridium adapts this for computation:

* Failed task chains are traced backward.
* Bottlenecks and noisy agents are located.
* Task paths are reconstructed with minimal entropy loss.


# 3.3 Entropy and Efficiency

Entropy is not just a physical concept; it applies to computation. Gridium minimizes entropy in distributed AI networks, meaning:

* Fewer wasted cycles,
* Higher convergence rates,
* More resilient coordination.


# 4. Core Modules


# 4.1 Vision


# Vision Deployment Guide

### 1. About Vision <a href="#id-1.-about-manta" id="id-1.-about-manta"></a>

Vision is a decentralized machine vision platform built on Gridium, designed to provide efficient image recognition and computer vision capabilities. It leverages distributed computing resources to handle large-scale image data and enhance processing efficiency. Vision uses advanced algorithms to perform real-time image recognition tasks, optimizing performance by dynamically allocating resources across the decentralized network.

Users can deploy Vision on Gridium’s network, where it provides seamless access to machine vision services. Once deployed, the platform allows users to access trained models and perform image processing tasks through a dedicated service. As Vision scales, the platform will track user contributions and incentivize them with rewards based on task completion, encouraging collaborative development within the decentralized network.

### 2. Hardware Requirement <a href="#id-2.-hardware-requirement" id="id-2.-hardware-requirement"></a>

CPU: Intel Xeon series with a base frequency of no less than 2.0 GHz and at least 8 cores

GPU: Nvidia Pascal or higher, video memory of no less than 12 GB

Internet: Internal bandwidth over 10 Gbps, external bandwidth over 10 Gbps

Harddrive: At least 700G SSD storage (500G for storing Matrix Mainnet data and 200G for storing models and training logs)

Storage: At least 32 GB

Network Configuration: A server that can be accessed through public network with an address in the format of http\://{IP}.

(For instance, http\://{IP}:8052. IP part should be accessible through public network.)

### 3. Distributed Auto-ML Web Service Configuration <a href="#id-3.-distributed-auto-ml-web-service-configuration" id="id-3.-distributed-auto-ml-web-service-configuration"></a>

A. The project will utilise two datasets for image categorisation and the training of parallax estimation models.

Image categorisation: ImageNet

Link: <https://www.image-net.org/challenges/LSVRC/2012/>

a. Dataset Download

Download the datasets at <https://www.image-net.org/challenges/LSVRC/index.php>.

<figure><img src="/files/zR8yIuhKVu0GrPxn8inp" alt=""><figcaption></figcaption></figure>

For image recognition, download the two files in red brackets

Training images (Task 1 & 2)

(<https://image-net.org/data/ILSVRC/2012/ILSVRC2012\\_img\\_train.tar>) Validation images (all tasks)

(<https://image-net.org/data/ILSVRC/2012/ILSVRC2012\\_img\\_val.tar>)

b. Dataset processing

Having downloaded the training and verification datasets, now we need to convert these datasets into a format that can be directly loaded by models.

First, decompress ILSVRC2012\_img\_train.tar to train. The decompressed folder should contain 1,000 tar files, each representing one category of images. The files are named accordingly, so don’t rename the files. Simply decompress these tar files.

Decompress.

```
mkdir train tar xvf ILSVRC2012_img_train.tar -C ./train
```

As there are too many to decompress, write a script unzip.sh as below:

Give the script execution permissions.

<figure><img src="/files/mVCaNUAkUV7xhqXbGrOb" alt=""><figcaption></figcaption></figure>

```
chmod +x ./unzip.sh
```

```
./unzip.sh
```

As ILSVRC2012\_img\_train.tar may be a bit large, you may delete it afterwards. Move train.tar to train first, before proceeding.

The final training dataset should be something like the following.

<figure><img src="https://docs.matrix.io/~gitbook/image?url=https%3A%2F%2F2664391676-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FT5LtcFS1DoKk05KGaZdm%252Fuploads%252FWwQSDKtZOq6ijkEep3SS%252F%25E5%259B%25BE%25E7%2589%2587%25201.png%3Falt%3Dmedia%26token%3De8cffa8e-69b0-42f7-b448-41317c43b3cc&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=7a8c7ce8&#x26;sv=2" alt=""><figcaption></figcaption></figure>

The verification dataset is relatively simple. It only contains 50,000 images. We could simply decompress ILSVRC2012\_img\_val.tar, but for ease of use afterwards, we should divide these images into 1,000 categories. (Just like what we did with the training dataset, create 1,000 folders and put the images in their corresponding categories.)

First decompress.

```
mkdir val tar xvf ILSVRC2012_img_val.tar -C ./val
```

Enter val. Download the script and execute.

```
cd val
```

```
wget -qO- https://raw.githubusercontent.com/soumith/imagenetloader.torch/master/valprep. sh chmod +x
```

```
./valprep.sh 
```

```
./valprep.sh rm valprep.sh
```

The final form of the verification dataset should look like the following screenshot.

<figure><img src="https://docs.matrix.io/~gitbook/image?url=https%3A%2F%2F2664391676-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FT5LtcFS1DoKk05KGaZdm%252Fuploads%252FUIib3T1m1a4N2wb7l51Y%252F%25E5%259B%25BE%25E7%2589%2587%25201.png%3Falt%3Dmedia%26token%3Dbf66c686-6e49-4b4f-95ef-7f56e039dc30&#x26;width=768&#x26;dpr=4&#x26;quality=100&#x26;sign=f3c7b319&#x26;sv=2" alt=""><figcaption></figcaption></figure>

After processing, the dataset should be in the following format.

![](https://docs.matrix.io/~gitbook/image?url=https%3A%2F%2F2664391676-files.gitbook.io%2F%7E%2Ffiles%2Fv0%2Fb%2Fgitbook-x-prod.appspot.com%2Fo%2Fspaces%252FT5LtcFS1DoKk05KGaZdm%252Fuploads%252F87HlNm9LF2c22PTxPnT2%252Fimage.png%3Falt%3Dmedia%26token%3D51f4e2e2-b07d-4f46-a78d-1ab9c0f4a31d\&width=300\&dpr=4\&quality=100\&sign=29871d58\&sv=2)

Parallax estimation: SceneFlow

<figure><img src="/files/tDEr79j3grGhfliNTVmz" alt=""><figcaption></figcaption></figure>

Link: <https://lmb.informatik.uni-freiburg.de/resources/datasets/SceneFlowDatasets.en.html>

Load the six datasets in the following screenshot and decompress them.

After downloading is complete, modify the route through the following method for easy recognition by web services.

(`1) ImageNet`

`/mnt/imagenet |`

`|—train`

`|--val`

`(2) SceneFlow`

`/mnt/SceneFlow |`

`|--FlyingThings3D`

`|--Monkaa`

`|--Driving`

B. Launching Web Service Training

（1）Download dist-automl via <https://gridium.ai/dropdown/dist-automl-main.zip>

（2）Decompress dist-automl.

Command: Unzip -d dist-automl

（3）Enter dist-automl catalogue.

Command: cd dist-automl

（4）Install the python database required by the project.

Command: pip install -r requirements.txt

（5）Execute the “launch service” order.

Command: streamlit run training\_manager.py

If the Terminal should show the following, it means the service has been successfully launched.

<figure><img src="/files/E075FeSuTzV0fmwia5Mb" alt=""><figcaption></figcaption></figure>

Replace the part in the red bracket with the public IP of the server where you wish to deploy the service, and you will be able to access the training web service.

You may also offer your deployed service as a distributed Auto-ML service on the Mainnet.

<figure><img src="/files/4APwzRA0w5EUVjdGZJ6a" alt=""><figcaption></figcaption></figure>


# Distributed AutoML Front-end Functions and Panel

Function One: Training Task Management

This function takes the task type, dataset, parameters and GPU node which users enter to launch a training task in the GPU cluster for users to monitor and manage. The panel for this function is as below. Supported task types include Image Classification and Depth Estimation. Select a dataset that you have uploaded to the server in the designated format, a GPU node and training parameters before clicking **Start Training!**

Training Task Management Panel

!\[Graphical user interface, text, application

Description automatically generated]\(<https://docs.matrix.io/~gitbook/image?url=https%3A%2F%2Fwww.matrix.io%2Fgitbook%2FMANTA%2FMANTA_01.fld%2Fimage001.jpg\\&width=300\\&dpr=4\\&quality=100\\&sign=9affc44a\\&sv=2>)

Function Two: Training Task and Machine Status Monitoring

This function allows users to monitor running tasks, model convergence and machine status. The panel is as below. Model convergence provides information such as loss function, the accuracy of the training set and the test set. Machine status shows GPU utilization, power consumption, etc.

Training Task and Machine Status Monitoring Panel

Function Three: Model Inference Service

After a model has been trained, the final network model parameters will be saved in the cluster’s file system. To run the model inference service, select a model and upload the object data. The panel for this function is as below. The left section is for users to select a model and upload an image as the inference object. The result of inference will be shown on the right side. For Image Classification, the service will show a few categories which the model considers the most probable. For Depth Estimation, the service will present a depth map of the object image, which users can download to local.

!\[Diagram

Description automatically generated with low confidence]\(<https://docs.matrix.io/~gitbook/image?url=https%3A%2F%2Fwww.matrix.io%2Fgitbook%2FMANTA%2FMANTA_01.fld%2Fimage002.jpg\\&width=300\\&dpr=4\\&quality=100\\&sign=c325c98b\\&sv=2>)

!\[Graphical user interface, text, application

Description automatically generated]\(<https://docs.matrix.io/~gitbook/image?url=https%3A%2F%2Fwww.matrix.io%2Fgitbook%2FMANTA%2FMANTA_01.fld%2Fimage003.jpg\\&width=300\\&dpr=4\\&quality=100\\&sign=902a9f04\\&sv=2>)

Model Inference Service Panel


# Vision Update Announcement

We hope this message finds you well. Our project team continuously strives to enhance your experience with Vision, and in light of your invaluable feedback, we'd like to share some recent updates and clarifications.

1\. Image Recognition Dataset Discrepancy:

\- Issue: Some users have noticed that after unzipping the dataset for image recognition from \[here]\(<https://image-net.org/data/ILSVRC/2012/ILSVRC2012\\_img\\_train.tar>), they encountered 941 files instead of the expected 1000.

\- Clarification: The correct number of files is 1000. To verify the integrity of your download, you can check the MD5 value of the file, which should be \`1d675b47d978889d74fa0da5fadfb00e\`.

2\. Additional Modules/Packages:

\- Issue: A few necessary packages were found to be absent from the \`requirements.txt\` file.

\- Update: We've updated the \`requirements.txt\` file to include the following packages: \`streamlit\`, \`pyDes\`, \`scikit-image\`, and \`translator\`.

3\. Missing "checkpoints" Directory:

\- Issue: Some users pointed out that the "checkpoints" directory, evident in our video tutorial, was missing from the unzipped \`dist-automl-main\` directory.

\- Update: We've rectified this, and the "checkpoints" directory has been added.

4\. Enhancements to README.md:

\- Issue: Suggestions were made to provide a more detailed description of files from the zip, additional commands, the activity expected on the Vision network, the miner reward, and details on the "LINK THE WALLET" process.

\- Update: All these details and clarifications have now been added to the README document for your convenience.

5\. Inclusion of Links and Commands:

\- Update: As part of our ongoing efforts to improve documentation, all necessary links and commands will be included in a newly updated installation guide. This change will be in alignment with Point 7 mentioned below.

6\. Semi-automation of Installation:

\- Update: To simplify the installation process, we've added a semi-automation script named \`preparedata.sh\`. This script should help streamline your setup and get you up and running faster.

7\. Centralized Dataset Download Location:

\- Update: Based on your feedback for a centralized location for faster and easier dataset downloads, we're excited to let you know that we are actively working on this. We aim to provide a single server space from which all datasets can be accessed without hassle.

Your feedback is an essential part of our journey. We appreciate your understanding, patience, and collaboration.


# 4.2 🧠 Professor X — Context-to-Contract Intelligence

Professor X is the **bridge between human context and machine execution**.

* **Semantic Anchoring**: Natural language or high-level intents are mapped into context-aware smart contracts.
* **Adaptive Contracts**: Contracts adjust dynamically to new environments, policies, or real-time conditions.
* **Security**: Every contract is verifiable and traceable through blockchain, ensuring tamper-proof execution.

**Use Cases**:

* On-chain governance (adaptive rules).
* Real-time compliance (context-driven audits).
* Finance (dynamic settlement contracts).


# 4.3 🔮 Dr Strange — Distributed Scientific Reasoning

Dr Strange expands Gridium into **DeScience** — a decentralized scientific computation layer.

* **Topological Coordination**: Agents are modeled like galaxies in cosmic structure, coordinating via semantic fields.
* **Knowledge Fusion**: Integrates on-chain transaction data with external scientific or financial datasets.
* **Predictive Insight**: Anticipates emergent behavior from multi-agent systems, not just individual tasks.

**Use Cases**:

* Tokenomics forecasting.
* Distributed scientific publishing.
* Multi-agent collaboration for biomedicine, physics, or DeFi analytics.


# 5. Why Gridium Matters

* **Scientific-grade AI Infrastructure**: By grounding itself in Smoot’s formal perturbation analysis, Gridium is not just another compute network — it is designed with the rigor of cosmology.
* **Adaptive Intelligence**: Gridium doesn’t just provide compute; it self-optimizes through semantic perturbation monitoring.
* **Modular Ecosystem**: With **Professor X** and **Dr Strange**, Gridium creates an ecosystem that spans governance, computation, and scientific research.


# 6. Conclusion

Gridium takes inspiration from the **universe itself**: perturbations, entropy, clustering, and cosmic design. By embedding these principles into decentralized AI, it becomes the foundation for **adaptive, scalable, and resilient intelligence networks**.

From cosmic patterns to intelligent networks — Gridium is building the **infrastructure of the AI-driven future**.


