[Paper Review] Libraries, Integrations and Hubs for Decentralized AI using IPFS
This paper proposes a decentralized AI ecosystem built on IPFS and Web3 technologies, enabling data scientists to store, share, and monetize AI assets—such as datasets, models, and notebooks—through interoperable libraries, integrations with platforms like HuggingFace, ActiveLoop Hub, Ocean Marketplace, and Streamlit, and a proof-of-concept decentralized AI hub (Metahub). The key contribution is a suite of open-source tools that natively support decentralized storage and Web3 workflows in Python, enhancing reproducibility, ownership, and economic incentives in AI development.
AI requires heavy amounts of storage and compute. As a result, AI developers are regular users of centralised cloud services such as AWS, GCP and Azure, compute environments such as Jupyter and Colab notebooks, and AI Hubs such as HuggingFace and ActiveLoop. There services are associated with certain benefits and limitations that stem from the underlying infrastructure and governance systems with which they are built. These limitations include high costs, lack of monetization and reward, lack of control and difficulty of reproducibility. At the same time, there are few libraries that allow data scientists to interact with decentralised storage in the language that data scientists are used to, and few hubs where they can discover and interact with AI assets. In this report, we explore the potential of decentralized technologies - such as Web3 wallets, peer-to-peer marketplaces, decentralized storage (IPFS and Filecoin) and compute, and DAOs - to address some of the above limitations. We showcase some of the libraries and integrations that we have built to tackle these issues, as well as a proof of concept of a decentralized AI Hub app, that all use IPFS as a core infrastructural component.
Motivation & Objective
- To address limitations in centralized AI hubs—such as high costs, lack of monetization, and centralized control—by leveraging decentralized infrastructure.
- To enable data scientists to interact with decentralized storage (IPFS/Filecoin) using familiar Python-based tools and workflows.
- To build interoperable libraries and integrations that connect AI development tools (e.g., Jupyter, Streamlit, HuggingFace) with decentralized storage and marketplaces.
- To demonstrate a fully decentralized AI hub (Metahub) that supports asset discovery, ownership, and revenue sharing via Web3 technologies.
- To improve reproducibility and sustainability in AI by decoupling assets from centralized platforms and enabling peer-to-peer sharing.
Proposed method
- Developed ipfspy, a Python library that provides high-level, idiomatic access to IPFS and Filecoin APIs, including support for MFS, DAG, pinning, and block operations.
- Integrated ipfspy into ActiveLoop Hub to enable decentralized storage of machine learning datasets using IPFS gateways, maintaining full backward compatibility.
- Extended Ocean Marketplace with IPFS and Filecoin storage via core tech grants, allowing data providers to publish and monetize assets on a decentralized stack.
- Built Metahub as a decentralized, permissionless AI hub that combines IPFS for storage, Ocean Protocol for marketplaces, and HuggingFace/ActiveLoop Hub interoperability.
- Enabled Web3 functionality in Streamlit via a custom extension (streamlit-metamask), allowing users to log in with Web3 wallets and store assets on IPFS directly from apps.
- Created Jupyter Lab extensions to enable Web3 login, IPFS uploads, and Ocean Protocol publishing directly from notebook interfaces.
Experimental results
Research questions
- RQ1How can decentralized storage (IPFS/Filecoin) be natively integrated into data science workflows to improve reproducibility and reduce reliance on centralized cloud providers?
- RQ2What are the technical and architectural challenges in enabling Web3 interoperability for existing AI development tools like Jupyter, Streamlit, and HuggingFace?
- RQ3Can a decentralized AI hub (Metahub) effectively combine asset discoverability, ownership, and monetization while remaining fully interoperable with existing AI ecosystems?
- RQ4How can data scientists be incentivized to contribute and share AI assets through decentralized marketplaces without sacrificing usability or performance?
- RQ5To what extent can existing AI libraries and frameworks be extended with decentralized storage abstractions to support peer-to-peer data sharing and compute?
Key findings
- The ipfspy library enables seamless, high-level interaction with IPFS and Filecoin in Python, abstracting low-level API complexity and supporting key operations like pinning and block access.
- Integration of ipfspy into ActiveLoop Hub allows data scientists to stream ML datasets from decentralized storage without local downloads, improving training efficiency.
- Ocean Marketplace now supports native IPFS/Filecoin storage, enabling data providers to publish and monetize assets on a decentralized stack with improved data persistence and access control.
- Metahub successfully demonstrates a decentralized AI hub that supports asset discovery, Web3 wallet integration, and revenue sharing, with full interoperability with HuggingFace and ActiveLoop Hub.
- The Streamlit integration enables end-to-end Web3 workflows in AI app development, allowing users to authenticate with wallets and store assets on IPFS directly from interactive apps.
- Jupyter Lab extensions provide a fully integrated, frontend-based workflow for data scientists to log in with Web3 wallets, upload to IPFS, and publish to marketplaces—all within notebook environments.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.