Skip to content

WINGFO-HQ/Fortytwo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 

Repository files navigation

Fortytwo CPU

🚨 IMPORTANT NOTICE 🚨

  • Whitelist Access Only: This version of the FortytwoNode is intended for whitelisted users only.
  • Legacy Version (CPU/VPS Friendly): This script pertains to an older version of the FortytwoNode software that is capable of running on Virtual Private Servers (VPS) and systems without dedicated GPUs. It includes options for less resource-intensive models.

Overview

This script automates the setup and launch of a FortytwoNode. It prepares the environment, downloads necessary components (FortytwoCapsule, FortytwoProtocol, and AI models), allows for node specialization, and manages the node processes.

The script will:

  1. Display a welcome banner.
  2. Prepare project directories (FortytwoNode, FortytwoNode/debug).
  3. Check for and install curl if not present.
  4. Fetch the latest versions of the Fortytwo Protocol and Capsule.
  5. Download or update the FortytwoCapsule and FortytwoProtocol executables. It will download a CPU version of the Capsule.
  6. Prompt you to select a node specialization, which determines the AI model to be used. An auto-select option based on available system memory (VRAM or RAM) is also available.
  7. Download the selected AI model from HuggingFace.
  8. Manage your account's private key.
  9. Start the FortytwoCapsule and FortytwoProtocol services.
  10. Monitor the running processes.

Prerequisites

  • A Linux environment (the script uses apt for curl installation, so Debian/Ubuntu-based systems are assumed for that part).
  • curl (the script will attempt to install it if missing).
  • Your pre-obtained account private key. You will need this for the setup process outlined below.

How to Run (Recommended Method)

Follow these steps carefully to set up your node using a pre-obtained private key:

  1. Initial Run: Execute the script:

    wget https://raw.githubusercontent.com/WINGFO-HQ/Fortytwo/refs/heads/main/fortytwo.sh && chmod +x fortytwo.sh && fortytwo.sh
  2. Stop at Phrase Prompt: The script will download components and then eventually prompt you to: Enter your account recovery phrase (12, 18, or 24 words), then press Enter: At this point, stop the script (e.g., by pressing Ctrl+C).

  3. Create Private Key File:

    • Navigate to the project directory created by the script:
      cd FortytwoNode
    • Create a file named .account_private_key:
      touch .account_private_key
    • Open this file with a text editor (e.g., nano, vim):
      nano .account_private_key
    • Paste your pre-obtained private key into this file. Save and close the file.
  4. Re-run the Script: Go back to the directory where fortytwo.sh is located (if you changed directories) and re-run the script:

    ./fortytwo.sh

    This time, the script will detect the .account_private_key file and use its content, bypassing the seed phrase prompt. It will then proceed to start the node.

Node Specializations

When prompted, you can choose how your node will contribute:

  • 0. AUTO-SELECT: The system analyzes your hardware (RAM/VRAM) and recommends an optimal model.
    • >= 16GB RAM/VRAM: TELEOLOGY PYLON (INTELLECT-1-Instruct)
    • >= 8GB RAM/VRAM: NOUMENAL PYLON (Llama-3.2-3B-Instruct)
    • < 8GB RAM/VRAM: NEXUS (Qwen2.5-1.5B-Instruct)
  • 1. NOUMENAL PYLON: General Knowledge (Llama-3.2-3B-Instruct).
  • 2. TELEOLOGY PYLON: Advanced Reasoning (INTELLECT-1-Instruct).
  • 3. MACHINIC PYLON: Programming & Technical (Qwen2.5-Coder-7B-Instruct).
  • 4. SCHOLASTIC PYLON: Academic Knowledge (Ministral-8B-Instruct-2410).
  • 5. LOGOTOPOLOGY PYLON: Language & Writing (Qwen2.5-7B-Instruct).
  • 6. CUSTOM: Advanced configuration where you provide the HuggingFace repository and model filename.

If no selection is made, or an invalid selection is entered, the script defaults to the auto-select behavior.

Starting the Node

Once the setup is complete and the private key is configured, the script will:

  1. Start the FortytwoCapsule with the selected AI model.
  2. Wait for the Capsule to become ready (this might take some time during the first launch).
  3. Start the FortytwoProtocol, connecting your node to the network.

The script will keep running, and you can monitor the node's activity through the terminal output or the log files located in ./FortytwoNode/debug/FortytwoCapsule.logs.

Stopping the Node

To stop the node, press Ctrl+C in the terminal where the script is running. The script includes a cleanup function to stop the Capsule and Protocol processes gracefully.

Script Components

  • PROJECT_DIR: ./FortytwoNode
  • CAPSULE_EXEC: $PROJECT_DIR/FortytwoCapsule
  • CAPSULE_LOGS: $PROJECT_DIR/debug/FortytwoCapsule.logs
  • PROTOCOL_EXEC: $PROJECT_DIR/FortytwoProtocol
  • ACCOUNT_PRIVATE_KEY_FILE: $PROJECT_DIR/.account_private_key
  • UTILS_EXEC: $PROJECT_DIR/FortytwoUtils

This script provides a streamlined way to get your FortytwoNode up and running. Join the Decentralized AI Revolution!

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages