Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Philotheephilix/tensornode

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

38 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

description layout
Proof of Intelligence Network
width title description tableOfContents outline pagination metadata
default
visible
true
visible
true
visible
true
visible
true
visible
true
visible
true

TensorNode

Bittensor on Hedera

Deployed site has 4 nodes live, Dont try to deploy more as i am low on credits

Decentralized AI with verifiable fairness on Hedera + Fluence

Important Details

MASTER_SCORE_TOPIC=0.0.6916998

VALIDATOR_REGISTRY=0.0.6917106

HEDERA_OPERATOR_KEY=ecdsa

ACCOUNT_ID=0.0.5877428

NEXT_PUBLIC_INSTANCE_REGISTRY_CONTRACT_ID=0.0.6915896

TensorNode is a revolutionary decentralized AI infrastructure platform that democratizes access to artificial intelligence through a novel "Proof of Intelligence" consensus mechanism. Built on Hedera's ultra-efficient blockchain and Fluence's peer-to-peer compute fabric, TensorNode creates a fair, transparent, and accessible AI marketplace where every user validates and real performance is rewarded.

License: MIT Node.js Python Hedera Fluence

🌟 The Vision

A universal, community-owned AI marketplace where consensus is Proof of Intelligence β€” miners are rewarded for real performance, validators are every user, and decentralized AI is accessible to everyone, everywhere.

πŸš€ Why TensorNode?

The Problem with Current AI Infrastructure

Issue Traditional Systems TensorNode Solution
High Barrier to Entry Running a Bittensor subnet costs ~$150K Accessible deployment on Hedera
Centralized Validators Few privileged validators create bottlenecks Every user validates democratically
Weight Copying Rewards Systems reward copying instead of intelligence Performance-based rewards for real AI
No Verification Users can't verify if miners were actually queried Complete on-chain transparency

Our Revolutionary Approach

πŸ›οΈ Every User Validates - No privileged roles, democratized validation process
πŸ”— On-Chain Registry - Hedera Agent Kit logs all queries for complete verifiability
⚑ Fluence Miners - Standardized, lightweight P2P execution environment
πŸ† Performance Rewards - Miners ranked by accuracy + response time, not copied weights

πŸ—οΈ Architecture

TensorNode combines three powerful technologies:

πŸ”· Hedera Hashgraph

  • Ultra-Low Fees: Queries and validations affordable at scale
  • High Throughput: Supports AI inference at real-world volumes
  • Energy Efficient: Green AI validation layer
  • Agent Kit: Seamless and verifiable validation integration

🌐 Fluence Network

  • P2P Compute Fabric: Lightweight miner orchestration without centralized control
  • Deterministic Execution: Ensures fair, reproducible outputs
  • Global Accessibility: Anyone can run a miner anywhere

🧠 Proof of Intelligence

  • Real Performance Metrics: Accuracy and response time scoring
  • Transparent Validation: Every query logged on-chain
  • Fair Rewards: Token distribution based on actual intelligence

πŸ“Š System Flow

graph TB
    A[User Submits Query] --> B[Hedera Agent Kit]
    B --> C[On-Chain Logging]
    C --> D[User Validation]
    D --> E[Fluence Miners]
    E --> F[AI Processing]
    F --> G[Performance Recording]
    G --> H[Token Distribution]
    
    style A fill:#e1f5fe
    style H fill:#e8f5e8
Loading
  1. Query Submission - User submits query via Hedera Agent Kit
  2. On-Chain Logging - Query logged on Hedera Topics for transparency
  3. User Validation - Every user acts as validator, confirms query validity
  4. Miner Processing - Fluence miners process requests and return responses
  5. Performance Recording - Response time and accuracy scores recorded on-chain
  6. Token Distribution - Daily minting distributes tokens by consensus

πŸ’° Tokenomics

Daily Mint Distribution

  • 7,200 tokens daily (~1 token every 12 seconds)
  • Performance-based allocation to miners and validators
  • Transparent distribution recorded on Hedera

Revenue Streams

  • Transaction fees
  • Subnet registration
  • Premium tools
  • Enterprise partnerships

πŸš€ Quick Start

Prerequisites

  • Node.js 20+
  • Python 3.9+
  • Docker
  • Hedera testnet account

Installation

# Clone the repository
git clone https://github.com/philotheephilix/tensornode.git
cd tensornode

# Install frontend dependencies
cd nextjs
npm install
cp .env.local.example .env.local
# Edit .env.local with your configuration

# Install backend dependencies
cd ../backend
python -m venv venv
source venv/bin/activate  # On Windows: venv\Scripts\activate
pip install flask flask-cors requests python-dotenv

# Start services
# Terminal 1: Backend
cd backend && python server.py

# Terminal 2: Frontend  
cd nextjs && npm run dev

Visit http://localhost:3000 to access the TensorNode interface.

🎯 Getting Started

For Miners

  1. Deploy AI Models on Fluence VMs
  2. Earn Rewards based on performance metrics
  3. Scale Globally with P2P infrastructure

For Validators

  1. Submit Queries to test network quality
  2. Score Responses automatically
  3. Earn Tokens for validation work

For Developers

  1. Integrate APIs for AI capabilities
  2. Build Applications on decentralized infrastructure
  3. Contribute to the open-source ecosystem

πŸ“ Repository Structure

tensornode/
β”œβ”€β”€ nextjs/                 # Frontend (Next.js 15 + React 19)
β”‚   β”œβ”€β”€ src/app/            # App router pages
β”‚   β”œβ”€β”€ src/components/     # Reusable components
β”‚   β”œβ”€β”€ src/lib/           # Utilities and configurations
β”‚   └── src/types/         # TypeScript definitions
β”œβ”€β”€ backend/               # Backend (Python Flask)
β”‚   β”œβ”€β”€ server.py          # Main API server
β”‚   β”œβ”€β”€ fluence/           # VM management
β”‚   └── utils/             # Helper utilities
β”œβ”€β”€ hedera-contracts/      # Smart contracts (Solidity)
β”‚   β”œβ”€β”€ contracts/         # Contract source code
β”‚   β”œβ”€β”€ scripts/           # Deployment scripts
β”‚   └── test/              # Contract tests
└── docs/                  # Comprehensive documentation
    β”œβ”€β”€ README.md          # Documentation homepage
    β”œβ”€β”€ quick-start.md     # Quick start guide
    β”œβ”€β”€ api/               # API documentation
    β”œβ”€β”€ guides/            # User guides
    └── architecture/      # Technical documentation

πŸ› οΈ Technology Stack

Frontend

  • Next.js 15 with App Router
  • React 19 with concurrent features
  • TypeScript for type safety
  • Tailwind CSS + shadcn/ui components
  • Hedera Wallet Connect integration

Backend

  • Python Flask API server
  • Fluence SDK for VM management
  • OpenAI/Anthropic for AI scoring
  • Redis for caching
  • PostgreSQL for data persistence

Blockchain

  • Hedera Hashgraph for consensus
  • Solidity smart contracts
  • Hedera Agent Kit for AI integration
  • HCS Topics for messaging

Infrastructure

  • Fluence VMs for decentralized compute
  • Docker containerization
  • NGINX load balancing
  • Prometheus/Grafana monitoring

πŸ“ˆ Competitive Advantage

vs. Bittensor

  • βœ… $150K subnet cost β†’ <$1K on Hedera
  • βœ… Few validators β†’ Every user validates
  • βœ… Weight copying β†’ Proof of Intelligence

vs. Centralized AI

  • βœ… No gatekeepers - Open participation
  • βœ… Fully transparent - All queries on-chain
  • βœ… Verifiable participation - Cryptographic proof

🌍 Market Opportunity

$100B+ Market Size - Decentralized AI infrastructure projected by 2030

Hedera's EVM + Fluence P2P compute unlocks global access to democratized AI with thousands of subnets and millions of participants.

πŸ“š Documentation

Comprehensive documentation is available in the /docs directory:

🀝 Contributing

We welcome contributions from the community! Please see our Contributing Guide for details on:

  • Code style and standards
  • Pull request process
  • Issue reporting
  • Development setup

Development Setup

# Fork and clone the repository
git clone https://github.com/your-username/tensornode.git
cd tensornode

# Create a feature branch
git checkout -b feature/your-feature-name

# Make your changes and test
npm test  # Frontend tests
python -m pytest  # Backend tests

# Submit a pull request

πŸ”’ Security

TensorNode takes security seriously:

  • Cryptographic Verification - All transactions signed
  • Isolated Execution - AI models run in sandboxed containers
  • Access Control - Role-based permissions
  • Audit Trails - Immutable record of all activities

For security issues, please email [email protected]

πŸ“„ License

This project is licensed under the MIT License - see the LICENSE file for details.

🌐 Community & Support

πŸ™ Acknowledgments

  • Hedera Team for the ultra-efficient blockchain infrastructure
  • Fluence Network for decentralized compute capabilities
  • Open Source Community for the foundational technologies
  • Early Contributors who helped shape TensorNode

Join the AI Revolution πŸš€

TensorNode is more than just a platformβ€”it's a movement towards democratized, transparent, and fair artificial intelligence. Together, we're building the future of decentralized AI infrastructure.

Made with ❀️ by the TensorNode community