Gonka AI Compute
See the codeGonka is a decentralized AI infrastructure designed to optimize computational power for AI model training and inference, offering an alternative to monopolistic, high-cost, centralized cloud providers. As AI models become increasingly complex, their computational demands surge, presenting significant challenges for developers and businesses that rely on costly, centralized resources.
To exchange ideas, follow project updates, and connect with the community, join Discord.
We introduce a novel consensus mechanism, Proof of Work 2.0, that ensures nearly 100% of computational resources are allocated to AI workloads, rather than being wasted on securing the blockchain.
[Work in progress] Diagram 1. The Task flow Source*
For a deeper technical and conceptual explanation, check out the White Paper.
For the most up-to-date documentation, please visit https://gonka.ai/docs/introduction/.
To join Testnet:
base_url and an API key. If you need to pay GNK directly on-chain instead of going through a broker, you can run your own gateway (advanced; requires an allow-listed address).This section walks you through setting up a local development environment to build and test the core components, without joining the real network or running a full MLNode.
Make sure you have the following installed:
Clone the repository:
git clone https://github.com/gonka-ai/gonka.git -b main
cd gonka
Build chain and API nodes, and run unit tests:
make local-build
There is an integration testing framework dubbed “Testermint”. This framework runs on live api and chain nodes, and emulates ml nodes using WireMock. It runs a local cluster of nodes using Docker and tests things very close to how they will work in a live environment. See the README.md in the /testermint directory for more details.
This command will build locally, deploy a small network of Docker containers, and run a set of these integration-level tests. It will take quite some time to run completely.
make run-tests
There’s also an option to just run a Docker local chain, without running the tests, use the local-test-net/launch.sh script for that. The script will spin up a miniature local chain consisting of 3 participants (1 genesis node plus 2 joining nodes).
To run Go unit tests for chain node (inference-chain) and api node (decentralized-api) use node-test and api-test make targets.
Our project is built as a modular, containerized infrastructure with multiple interoperable components.
chain node that connects to the blockchain, maintains the blockchain layer, and handles consensus.api node serves as the primary coordination layer between the blockchain (chain node) and the AI execution environment (ml node). It exposes REST/gRPC endpoints for interacting with users, developers, and internal components, while managing work orchestration, validation scheduling, and result verification processes that require off-chain execution. In addition to handling user requests, it is responsible for:
ml nodeml node — Handles AI workload execution: training, inference, and Proof of Work 2.0. Participants run mlnodes to contribute compute.
Diagram 2. The diagram outlines how components interact across the system. Source
The repository is organized as follows:
/client-libs # Client script to interact with the chain
/cosmovisor # Cosmovisor binaries
/decentralized-api # Api node
/dev_notes # Chain developer knowledge base
/docs # Documentation on specific aspects of the chain
/inference-chain # Chain node
/local-test-net # Scripts and configs for running a local chain
/testermint # Integration tests suite
We support several types of tests to ensure the system’s stability and reliability:
mlnode, chain node, and api nodeDetailed instructions on running and contributing to tests are available in CONTRIBUTING.md.
The system is designed around containerized microservices. Each component runs in its own Docker container, allowing:
mlnodes or apinodesWe maintain deployment examples and tooling in the https://github.com/gonka-ai/gonka/.
https://gonka.ai/docs/model-licenses/
Join the Gonka community on Discord if you need assistance.
Jupyter Notebook
48.1%
Go
40.1%
Kotlin
5.3%
Python
3.5%
Shell
1.3%
Gonka AI Compute
See the codeGonka is a decentralized AI infrastructure designed to optimize computational power for AI model training and inference, offering an alternative to monopolistic, high-cost, centralized cloud providers. As AI models become increasingly complex, their computational demands surge, presenting significant challenges for developers and businesses that rely on costly, centralized resources.
To exchange ideas, follow project updates, and connect with the community, join Discord.
We introduce a novel consensus mechanism, Proof of Work 2.0, that ensures nearly 100% of computational resources are allocated to AI workloads, rather than being wasted on securing the blockchain.
[Work in progress] Diagram 1. The Task flow Source*
For a deeper technical and conceptual explanation, check out the White Paper.
For the most up-to-date documentation, please visit https://gonka.ai/docs/introduction/.
To join Testnet:
base_url and an API key. If you need to pay GNK directly on-chain instead of going through a broker, you can run your own gateway (advanced; requires an allow-listed address).This section walks you through setting up a local development environment to build and test the core components, without joining the real network or running a full MLNode.
Make sure you have the following installed:
Clone the repository:
git clone https://github.com/gonka-ai/gonka.git -b main
cd gonka
Build chain and API nodes, and run unit tests:
make local-build
There is an integration testing framework dubbed “Testermint”. This framework runs on live api and chain nodes, and emulates ml nodes using WireMock. It runs a local cluster of nodes using Docker and tests things very close to how they will work in a live environment. See the README.md in the /testermint directory for more details.
This command will build locally, deploy a small network of Docker containers, and run a set of these integration-level tests. It will take quite some time to run completely.
make run-tests
There’s also an option to just run a Docker local chain, without running the tests, use the local-test-net/launch.sh script for that. The script will spin up a miniature local chain consisting of 3 participants (1 genesis node plus 2 joining nodes).
To run Go unit tests for chain node (inference-chain) and api node (decentralized-api) use node-test and api-test make targets.
Our project is built as a modular, containerized infrastructure with multiple interoperable components.
chain node that connects to the blockchain, maintains the blockchain layer, and handles consensus.api node serves as the primary coordination layer between the blockchain (chain node) and the AI execution environment (ml node). It exposes REST/gRPC endpoints for interacting with users, developers, and internal components, while managing work orchestration, validation scheduling, and result verification processes that require off-chain execution. In addition to handling user requests, it is responsible for:
ml nodeml node — Handles AI workload execution: training, inference, and Proof of Work 2.0. Participants run mlnodes to contribute compute.
Diagram 2. The diagram outlines how components interact across the system. Source
The repository is organized as follows:
/client-libs # Client script to interact with the chain
/cosmovisor # Cosmovisor binaries
/decentralized-api # Api node
/dev_notes # Chain developer knowledge base
/docs # Documentation on specific aspects of the chain
/inference-chain # Chain node
/local-test-net # Scripts and configs for running a local chain
/testermint # Integration tests suite
We support several types of tests to ensure the system’s stability and reliability:
mlnode, chain node, and api nodeDetailed instructions on running and contributing to tests are available in CONTRIBUTING.md.
The system is designed around containerized microservices. Each component runs in its own Docker container, allowing:
mlnodes or apinodesWe maintain deployment examples and tooling in the https://github.com/gonka-ai/gonka/.
https://gonka.ai/docs/model-licenses/
Join the Gonka community on Discord if you need assistance.
Jupyter Notebook
48.1%
Go
40.1%
Kotlin
5.3%
Python
3.5%
Shell
1.3%