> For the complete documentation index, see [llms.txt](https://docs.yottalabs.ai/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.yottalabs.ai/technology/fault-tolerance.md). Agents can also search and read this documentation through its [MCP server](https://docs.yottalabs.ai/~gitbook/mcp).

# Fault Tolerance

Yotta protocol incorporates robust fault tolerance mechanisms to ensure the reliability and stability of model training and inference in a decentralized environment. These mechanisms address two critical aspects: site failure detection and handling, and communication fault detection and handling.0

## Communication Fault Detection and Handling

Yotta employs a combination of checksum verification and redundant computation to detect and handle communication faults in a decentralized environment. Checksums are used to detect data corruption during transmission, and retransmission is requested when a mismatch is found. Additionally, Yotta randomly selects idle sites to compute the pipeline stages simultaneously. The results from the primary and redundant sites are compared, and a majority voting mechanism is used to determine the correct result in case of discrepancies. This approach enhances reliability and security by detecting and mitigating the impact of communication faults and potential attacks. Furthermore, encryption and secure communication protocols are used to protect data in transit.

## Site Failure Dection and Handling

Yotta employs a heartbeat monitoring mechanism to detect site failures. Each site periodically sends a heartbeat mes- sage to the other sites involved in the computation. If a site A fails to receive a heartbeat message from another site B within a predefined timeout period, it assumes that the site B has failed. Upon detecting a site failure, Yotta triggers a checkpoint/restart mechanism. A new site will leverage the previous system checkpoint to restart the AI model.


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.yottalabs.ai/technology/fault-tolerance.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
