Decentralized AI Infrastructure
Replicant Network
A decentralized marketplace to crowdfund, vote on, and deploy custom AI models onchain
The challenge
Building useful AI models is expensive and centralized: funding, development, and ownership stay locked inside a handful of companies, with no transparent way for a community to commission a model or share in its upside. There was no permissionless mechanism to pool funds for a specific model, let the funders judge competing submissions, and then collectively own and monetize the winner.
What we built
Lutra Labs built Replicant Network, a full-stack decentralized platform that turns AI model development into a transparent onchain lifecycle: publish a bounty, crowdfund it for per-campaign ERC20 model tokens, submit candidate models, vote, and deploy the winner. The system is built on Monad's EVM-compatible chain, with Solidity contracts (RepNetManager, ERC20Factory, ModelTokenERC20) orchestrating funding, token-weighted voting, reward distribution, and refunds. A FastAPI plus Celery service handles asynchronous model inference behind a REST API, while a Next.js dApp with wagmi, viem, and Privy wallets drives the user experience. An Envio indexer surfaces onchain events over GraphQL, and winning models are tokenized so contributors share ownership and revenue.
Highlights
- Onchain crowdfunding lifecycle: publish, funding, submission, voting, and deployment phases enforced by smart contracts
- Per-campaign ERC20 model tokens minted via a factory, enabling token-weighted voting, shared ownership, and revenue sharing
- Solidity contracts on Monad built with Foundry, hardened with OpenZeppelin Ownable and ReentrancyGuard plus custom error handling
- FastAPI + Celery + Redis inference service with Docker and optional NVIDIA CUDA GPU acceleration for running winning models
- Next.js 15 dApp with TailwindCSS, shadcn/ui, wagmi/viem, and Privy embedded wallets for a Web3-native UX
- Envio indexer exposing crowdfunding, submission, voting, and funding events through a GraphQL API
Tech stack
- Solidity
- Foundry
- Monad
- OpenZeppelin
- Next.js
- TypeScript
- TailwindCSS
- shadcn/ui
- wagmi
- viem
- Privy
- FastAPI
- Python
- Celery
- Redis
- PyTorch
- Docker
- Envio
- GraphQL
- Supabase