Introduction
  • Introduction
    • Zero-Knowledge Proofs
  • Getting Started
    • Connecting GPU to Cluster
    • ZkTerminal
      • Authentication Guide
      • Prompt Commands
      • Tutorial
        • Step-by-Step tutorial: How to generate a lipsync video on ZkTerminal
        • Step-by-Step Tutorial: How to Launch an Agent
  • API
  • FAQs
Powered by GitBook
On this page
  • Windows and Ubuntu Setup Guide
  • CPU Setup
  • GPU Setup
  • Disconnecting CPU/GPU Connection
  • Windows:
  • Ubuntu:
  • Restarting CPU/GPU Connection
  • Windows:
  • Ubuntu:
  1. Getting Started

Connecting GPU to Cluster

PreviousGetting StartedNextZkTerminal

Last updated 7 months ago

Windows and Ubuntu Setup Guide

CPU Setup

  1. Download Docker:

  • Visit Docker's official website and download Docker for your OS.

  1. Open Command Prompt: - Windows: Open Command Prompt. - Ubuntu: Open Terminal.

  2. Execute Docker Pull Command: docker pull zkagi/connect2cluster:latest

  3. Run Docker Container: docker run -dit -e "walletAddress=YOUR_WALLET_ADDRESS" --privileged --network host zkagi/connect2cluster

  4. Connect:

  • Wait for 20 seconds.

  • Click on the connect button in the ZkAGI interface.

GPU Setup

  1. Download Docker: - Visit Docker's official website and download Docker for your OS.

  2. Check GPU and Drivers: - Open Command Prompt (Windows) or Terminal (Ubuntu).

  3. Run the following command to check your GPU name and drivers: nvidia-smi

  4. Open Command Prompt: - Windows: Open Command Prompt. - Ubuntu: Open Terminal.

  5. Execute Docker Pull Command: docker pull zkagi/connect2cluster:gpu-latest

  6. Run Docker Container: docker run -dit -e "walletAddress=YOUR_WALLET_ADDRESS" --privileged --network host --gpus all zkagi/connect2cluster

  7. Connect:

  • Wait for 20 seconds.

  • Click on the connect button in the ZkAGI interface.

Disconnecting CPU/GPU Connection

To disconnect the running container, execute the following command in Command Prompt or Terminal:

Windows:

FOR /F "tokens=*" %i IN ('docker ps -q --filter "ancestor=zkagi/connect2cluster"') DO docker stop %i

Ubuntu:

docker ps -q --filter "ancestor=zkagi/connect2cluster" | xargs docker stop

Restarting CPU/GPU Connection

To restart the stopped container, execute the following command in Command Prompt or Terminal:

Windows:

FOR /F "tokens=*" %i IN ('docker ps -a -q --filter "ancestor=zkagi/connect2cluster"') DO docker restart %i

Ubuntu:

docker ps -a -q --filter "ancestor=zkagi/connect2cluster" | xargs -I {} docker restart {}

Driver Version Check: - If your driver version is > 552, downgrade it using the following.

link