SlideShare a Scribd company logo
1 of 38
Ally Haire
Developer Relations
Engineer
DeveloperAlly
FVM x Bacalhau:
Bridging compute over state &
Compute over data
#BuildWithBacalhau
Agenda aka the timestamps…
● Quick Project Demo & Tech Stack
● Bacal… what? The why’s and
how’s of Bacalhau
● The code!
○ Hardhat hyperspace deploy
○ NFT.Storage
○ Bacalhau Stable Diffusion
scripts
● Possibilities & Future for FVM x
Bacalhau
FVM x Bacalhau
Better Together…
Data, Data, Data!
Data, information and knowledge
are some of the most important
assets of our connected era and
have become critical to human
development & cooperation
FVM brings on-chain user programmability to Filecoin
Bacalhau brings off-chain verifiable compute - both
unlocking the next layer of innovation and value
Storage
Computation over state
On-chain
Computation over data …
Off-chain
Storage is only the start…..
Computation over State vs Computation over data…
Computation over state (on-chain
compute):
FVM enables computation over
state.
Allows monitoring and automation of
chain activities such as monitoring
and automating storage deals and
markets and enabling tokenisation of
data for dataDAOs + more.
Computation over data (off-chain,
verifiable compute):
Bacalhau enables complex
computation over data - any data
In the context of Filecoin & FVM,
Bacalhau will allow processing of
activities monitored on chain in a
verifiable and deterministic manner.
It enables a rich layer of data
processing for Filecoin & FVM
Bacalhau & FVM
FVM - programmable data on small
amounts of state
Bacalhau - Computation over this
or any data including big data
with support for GPUs
Future: Bacalhau + FVM - calling
Bacalhau in your smart contracts!
What’s stored on Filecoin?
If we look at some of the data stored on filecoin we’d find…
- Climate, space & geo-spatial data
- Academic research including quantum science data and genetics research
from several top tier universities
- Literature including an initiative for an Open Library with Harvard University
- HIstorically significant data such as data from holocaust victims and the
Ukraine
- Public record data such as election campaigns, or New York city public data
- Internet Archive’s cache of web information and pages
- Millions of unique collections of creative work in the form of NFT metadata
from art, videos, music, games and more
Bacalhau?
Please allow me to introduce myself…
Bacal.. - what ??
Bacalhau is a network of open
compute resources available to
serve any data processing
workload
- It’s simple to use (you don’t
need an AI degree!)
- Requires minimal operational
overhead or setup
- It’s decentralised-first (or
edge-first) principled
- Aims to provide efficient
distributed computation with
batched tasks
Learn more about Bacalhau!
@BacalhauProject
https://youtu.be/RZopDyTJ1pk
Bacalhau Platform Architecture
Bacalhau provides a platform for
public, transparent, and optionally
verifiable computation.
It enables users to run arbitrary
Docker containers and WebAssembly
(wasm) images as tasks against data
stored in the InterPlanetary File
System (IPFS)
It operates as a peer-to-peer network
of nodes where each node has both a
requestor and compute component
Bacalhau System Components
● Requester node
(component)
● Compute node
(component)
● Transport layer
(interface)
● Executer (interface)
● Storage Provider
(interface)
● Verifier (interface)
● Publisher (interface)
Bacalhau Job Lifecycle
Job Submission Job Acceptance Job Execution
Job Verification Job Publishing
Job Submission Job Acceptance Job Execution
Job Verification Job Publishing
Project Text-to-NFT
#BuildWithBacalhau
Project Architecture
Tech Stack:
- NextJS, Typescript
- OZ Solidity ERC721 -
based contract
- Bacalhau Text-to-Image
Stable Diffusion Script
- NFT.Storage for
Metadata storage
- Deployment to
Hyperspace testnet with
Hardhat
- Front-end DApp
deployment on Fleek
Demo!! 🎉
Making & deploying an
NFT Contract to FVM
The contract, hardhat deployment & setup
The Contract
Based off an Open Zeppelin ERC721
NFT contract.
The Mint function takes in an IPFS
CID = NFT Metadata,
Contract emits an event once minted
on the blockchain
Hardhat Deploy
> npx hardhat run
./deployBacalhauFRC721.
ts --network
filecoinHyperspace
Open Source Text to Image
(Stable Diffusion) Script
Running Open Source Dall-E on Bacalhau!
Dockerised python script with
Tensorflow
@BacalhauProject YouTube
https://www.youtube.com/watch?v=53uY48e
1lis&t=1452s
Stable Diffusion Script aka the Text-to-Image script
The Python Text-to-Image Script
This is the basic text to
image script. It uses a
keras/tensorflow
implementation of stable
diffusion (an ML model)
and then generates the
images from a given text
string and finally displays
the image generated.
The ML weights are pre-
calculated in the library
Fetch… AI?!
Just a javascript fetch
function!
Under the hood this runs the
dockerised script on the
Bacalhau network.
The Bacalhau GPU nodes
will then run the job and
return an IPFS CID of the
results folder
Bacalhau Job Return Folder
Storing metadata with
NFT.Storage
#NotOnIPFSNotYourNFT
NFT.Storage Metadata
An IPFS CID is returned..
Minting the NFT!
Calling Hyperspace Contract
Minting the
NFT on FVM
I’m using ethers to
connect to my
contract and
metamask wallet as
a transaction signer.
Project Text to NFT - Mint your Own!
Deployed on Fleek!
Possibilities for
Bacalhau x FVM
Better together! <3
Bacalhau Computation over Data - use cases
Bacalhau lends itself well to performing repetitive, deterministic processing jobs
over data.
- ETL Processes
- Machine Learning & AI
- IOT data integration
- Batch Processing including for
- Financial and market data
- Video & Image processing
Bacalhau x FVM….
- Help Onboarding and Offboarding of Filecoin data in the future
- Help build a reputation and Quality of Service layer for Filecoin by processing
data retrieved on-chain about deals and storage providers.
- Bacalhau could provide computation for market & payment data
- Bacalhau could help with processing data from DAO’s & DataDAOs
- Bacalhau could help empower more automation for creative endeavours like
video and images processing
- Bacalhau can enable game and metaverse data processing including for VR
& AR.
- Bacalhau, IOT & Simulations are possible
- AI & ML Applications
Future: Bacalhau + FVM -
calling Bacalhau in your
smart contracts!
More inspiration - check out the examples!
#BuildWithBacalhau
Get involved in the future of data
Join the discussion:
- Twitter @BacalhauProject
- YouTube @bacalhauproject
- Slack #bacalhau @filecoinproject
- Github @bacalhau.org
- Forum github.com/filecoin-project
/bacalhau/discussions
See more examples:
- docs.bacalhau.org
Get Involved in the future of data!
Future Events & ETH
Denver…
- Compute Over Data WG
@ Eth Denver
- COD Summit 3
- Bacalhau Builders
Program
- 9-10th May Boston
Launch
Alan Kay - Computer Scientist
“The best way to predict
the future is to create it”
DeveloperAlly
Github:
DeveloperAlly/
bacalhau-fvm-nft

More Related Content

Similar to AI-generated Art NFTs on FVM

IoT Architectures for Apache Kafka and Event Streaming - Industry 4.0, Digita...
IoT Architectures for Apache Kafka and Event Streaming - Industry 4.0, Digita...IoT Architectures for Apache Kafka and Event Streaming - Industry 4.0, Digita...
IoT Architectures for Apache Kafka and Event Streaming - Industry 4.0, Digita...Kai Wähner
 
Industry 4.0: Building the Unified Namespace with Confluent, HiveMQ and Spark...
Industry 4.0: Building the Unified Namespace with Confluent, HiveMQ and Spark...Industry 4.0: Building the Unified Namespace with Confluent, HiveMQ and Spark...
Industry 4.0: Building the Unified Namespace with Confluent, HiveMQ and Spark...confluent
 
HPE Solutions for Challenges in AI and Big Data
HPE Solutions for Challenges in AI and Big DataHPE Solutions for Challenges in AI and Big Data
HPE Solutions for Challenges in AI and Big DataLviv Startup Club
 
Saviak lviv ai-2019-e-mail (1)
Saviak lviv ai-2019-e-mail (1)Saviak lviv ai-2019-e-mail (1)
Saviak lviv ai-2019-e-mail (1)Lviv Startup Club
 
How to over-engineer things and have fun? | Oto Brglez, OPALAB
How to over-engineer things and have fun? | Oto Brglez, OPALABHow to over-engineer things and have fun? | Oto Brglez, OPALAB
How to over-engineer things and have fun? | Oto Brglez, OPALABHostedbyConfluent
 
Transforming the Database: Critical Innovations for Performance at Scale
Transforming the Database: Critical Innovations for Performance at ScaleTransforming the Database: Critical Innovations for Performance at Scale
Transforming the Database: Critical Innovations for Performance at ScaleScyllaDB
 
OSACon 2023_ Unlocking Financial Data with Real-Time Pipelines
OSACon 2023_ Unlocking Financial Data with Real-Time PipelinesOSACon 2023_ Unlocking Financial Data with Real-Time Pipelines
OSACon 2023_ Unlocking Financial Data with Real-Time PipelinesTimothy Spann
 
Democratizing Data Science on Kubernetes
Democratizing Data Science on Kubernetes Democratizing Data Science on Kubernetes
Democratizing Data Science on Kubernetes John Archer
 
Kognitio cloud webinar feb 2013
Kognitio cloud webinar feb 2013Kognitio cloud webinar feb 2013
Kognitio cloud webinar feb 2013Kognitio
 
Machine Learning and Artificial Intelligence
Machine Learning and Artificial IntelligenceMachine Learning and Artificial Intelligence
Machine Learning and Artificial IntelligenceMarketingArrowECS_CZ
 
IoT and Event Streaming at Scale with Apache Kafka
IoT and Event Streaming at Scale with Apache KafkaIoT and Event Streaming at Scale with Apache Kafka
IoT and Event Streaming at Scale with Apache Kafkaconfluent
 
Telco 4.0 - Payment and FinServ Integration for Data in Motion with 5G and Ap...
Telco 4.0 - Payment and FinServ Integration for Data in Motion with 5G and Ap...Telco 4.0 - Payment and FinServ Integration for Data in Motion with 5G and Ap...
Telco 4.0 - Payment and FinServ Integration for Data in Motion with 5G and Ap...Kai Wähner
 
How Netflix Directs 1/3rd of Internet Traffic
How Netflix Directs 1/3rd of Internet TrafficHow Netflix Directs 1/3rd of Internet Traffic
How Netflix Directs 1/3rd of Internet TrafficC4Media
 
Data Plane Evolution: Towards Openness and Flexibility
Data Plane Evolution: Towards Openness and FlexibilityData Plane Evolution: Towards Openness and Flexibility
Data Plane Evolution: Towards Openness and FlexibilityAPNIC
 
Year of the #WiFiCactus
Year of the #WiFiCactusYear of the #WiFiCactus
Year of the #WiFiCactusDefCamp
 
Intro to Project Calico: a pure layer 3 approach to scale-out networking
Intro to Project Calico: a pure layer 3 approach to scale-out networkingIntro to Project Calico: a pure layer 3 approach to scale-out networking
Intro to Project Calico: a pure layer 3 approach to scale-out networkingPacket
 
End-to-End Big Data AI with Analytics Zoo
End-to-End Big Data AI with Analytics ZooEnd-to-End Big Data AI with Analytics Zoo
End-to-End Big Data AI with Analytics ZooJason Dai
 
Apache Kafka® and the Data Mesh
Apache Kafka® and the Data MeshApache Kafka® and the Data Mesh
Apache Kafka® and the Data MeshConfluentInc1
 
Hybrid Kafka, Taking Real-time Analytics to the Business (Cody Irwin, Google ...
Hybrid Kafka, Taking Real-time Analytics to the Business (Cody Irwin, Google ...Hybrid Kafka, Taking Real-time Analytics to the Business (Cody Irwin, Google ...
Hybrid Kafka, Taking Real-time Analytics to the Business (Cody Irwin, Google ...HostedbyConfluent
 

Similar to AI-generated Art NFTs on FVM (20)

IoT Architectures for Apache Kafka and Event Streaming - Industry 4.0, Digita...
IoT Architectures for Apache Kafka and Event Streaming - Industry 4.0, Digita...IoT Architectures for Apache Kafka and Event Streaming - Industry 4.0, Digita...
IoT Architectures for Apache Kafka and Event Streaming - Industry 4.0, Digita...
 
Industry 4.0: Building the Unified Namespace with Confluent, HiveMQ and Spark...
Industry 4.0: Building the Unified Namespace with Confluent, HiveMQ and Spark...Industry 4.0: Building the Unified Namespace with Confluent, HiveMQ and Spark...
Industry 4.0: Building the Unified Namespace with Confluent, HiveMQ and Spark...
 
HPE Solutions for Challenges in AI and Big Data
HPE Solutions for Challenges in AI and Big DataHPE Solutions for Challenges in AI and Big Data
HPE Solutions for Challenges in AI and Big Data
 
Saviak lviv ai-2019-e-mail (1)
Saviak lviv ai-2019-e-mail (1)Saviak lviv ai-2019-e-mail (1)
Saviak lviv ai-2019-e-mail (1)
 
How to over-engineer things and have fun? | Oto Brglez, OPALAB
How to over-engineer things and have fun? | Oto Brglez, OPALABHow to over-engineer things and have fun? | Oto Brglez, OPALAB
How to over-engineer things and have fun? | Oto Brglez, OPALAB
 
Transforming the Database: Critical Innovations for Performance at Scale
Transforming the Database: Critical Innovations for Performance at ScaleTransforming the Database: Critical Innovations for Performance at Scale
Transforming the Database: Critical Innovations for Performance at Scale
 
OSACon 2023_ Unlocking Financial Data with Real-Time Pipelines
OSACon 2023_ Unlocking Financial Data with Real-Time PipelinesOSACon 2023_ Unlocking Financial Data with Real-Time Pipelines
OSACon 2023_ Unlocking Financial Data with Real-Time Pipelines
 
Democratizing Data Science on Kubernetes
Democratizing Data Science on Kubernetes Democratizing Data Science on Kubernetes
Democratizing Data Science on Kubernetes
 
Kognitio cloud webinar feb 2013
Kognitio cloud webinar feb 2013Kognitio cloud webinar feb 2013
Kognitio cloud webinar feb 2013
 
Machine Learning and Artificial Intelligence
Machine Learning and Artificial IntelligenceMachine Learning and Artificial Intelligence
Machine Learning and Artificial Intelligence
 
IoT and Event Streaming at Scale with Apache Kafka
IoT and Event Streaming at Scale with Apache KafkaIoT and Event Streaming at Scale with Apache Kafka
IoT and Event Streaming at Scale with Apache Kafka
 
Telco 4.0 - Payment and FinServ Integration for Data in Motion with 5G and Ap...
Telco 4.0 - Payment and FinServ Integration for Data in Motion with 5G and Ap...Telco 4.0 - Payment and FinServ Integration for Data in Motion with 5G and Ap...
Telco 4.0 - Payment and FinServ Integration for Data in Motion with 5G and Ap...
 
How Netflix Directs 1/3rd of Internet Traffic
How Netflix Directs 1/3rd of Internet TrafficHow Netflix Directs 1/3rd of Internet Traffic
How Netflix Directs 1/3rd of Internet Traffic
 
Data Plane Evolution: Towards Openness and Flexibility
Data Plane Evolution: Towards Openness and FlexibilityData Plane Evolution: Towards Openness and Flexibility
Data Plane Evolution: Towards Openness and Flexibility
 
Year of the #WiFiCactus
Year of the #WiFiCactusYear of the #WiFiCactus
Year of the #WiFiCactus
 
Intro to Project Calico: a pure layer 3 approach to scale-out networking
Intro to Project Calico: a pure layer 3 approach to scale-out networkingIntro to Project Calico: a pure layer 3 approach to scale-out networking
Intro to Project Calico: a pure layer 3 approach to scale-out networking
 
End-to-End Big Data AI with Analytics Zoo
End-to-End Big Data AI with Analytics ZooEnd-to-End Big Data AI with Analytics Zoo
End-to-End Big Data AI with Analytics Zoo
 
Feec telecom-nw-softwarization-aug-2015
Feec telecom-nw-softwarization-aug-2015Feec telecom-nw-softwarization-aug-2015
Feec telecom-nw-softwarization-aug-2015
 
Apache Kafka® and the Data Mesh
Apache Kafka® and the Data MeshApache Kafka® and the Data Mesh
Apache Kafka® and the Data Mesh
 
Hybrid Kafka, Taking Real-time Analytics to the Business (Cody Irwin, Google ...
Hybrid Kafka, Taking Real-time Analytics to the Business (Cody Irwin, Google ...Hybrid Kafka, Taking Real-time Analytics to the Business (Cody Irwin, Google ...
Hybrid Kafka, Taking Real-time Analytics to the Business (Cody Irwin, Google ...
 

Recently uploaded

Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesPhilip Schwarz
 
PREDICTING RIVER WATER QUALITY ppt presentation
PREDICTING  RIVER  WATER QUALITY  ppt presentationPREDICTING  RIVER  WATER QUALITY  ppt presentation
PREDICTING RIVER WATER QUALITY ppt presentationvaddepallysandeep122
 
Cyber security and its impact on E commerce
Cyber security and its impact on E commerceCyber security and its impact on E commerce
Cyber security and its impact on E commercemanigoyal112
 
Machine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their EngineeringMachine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their EngineeringHironori Washizaki
 
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...Natan Silnitsky
 
SpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at RuntimeSpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at Runtimeandrehoraa
 
Innovate and Collaborate- Harnessing the Power of Open Source Software.pdf
Innovate and Collaborate- Harnessing the Power of Open Source Software.pdfInnovate and Collaborate- Harnessing the Power of Open Source Software.pdf
Innovate and Collaborate- Harnessing the Power of Open Source Software.pdfYashikaSharma391629
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaHanief Utama
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfAlina Yurenko
 
A healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfA healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfMarharyta Nedzelska
 
How To Manage Restaurant Staff -BTRESTRO
How To Manage Restaurant Staff -BTRESTROHow To Manage Restaurant Staff -BTRESTRO
How To Manage Restaurant Staff -BTRESTROmotivationalword821
 
Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Mater
 
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...confluent
 
What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...Technogeeks
 
Unveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesUnveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesŁukasz Chruściel
 
英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作qr0udbr0
 
Sending Calendar Invites on SES and Calendarsnack.pdf
Sending Calendar Invites on SES and Calendarsnack.pdfSending Calendar Invites on SES and Calendarsnack.pdf
Sending Calendar Invites on SES and Calendarsnack.pdf31events.com
 
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsSensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsChristian Birchler
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanyChristoph Pohl
 
20240415 [Container Plumbing Days] Usernetes Gen2 - Kubernetes in Rootless Do...
20240415 [Container Plumbing Days] Usernetes Gen2 - Kubernetes in Rootless Do...20240415 [Container Plumbing Days] Usernetes Gen2 - Kubernetes in Rootless Do...
20240415 [Container Plumbing Days] Usernetes Gen2 - Kubernetes in Rootless Do...Akihiro Suda
 

Recently uploaded (20)

Folding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a seriesFolding Cheat Sheet #4 - fourth in a series
Folding Cheat Sheet #4 - fourth in a series
 
PREDICTING RIVER WATER QUALITY ppt presentation
PREDICTING  RIVER  WATER QUALITY  ppt presentationPREDICTING  RIVER  WATER QUALITY  ppt presentation
PREDICTING RIVER WATER QUALITY ppt presentation
 
Cyber security and its impact on E commerce
Cyber security and its impact on E commerceCyber security and its impact on E commerce
Cyber security and its impact on E commerce
 
Machine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their EngineeringMachine Learning Software Engineering Patterns and Their Engineering
Machine Learning Software Engineering Patterns and Their Engineering
 
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
Taming Distributed Systems: Key Insights from Wix's Large-Scale Experience - ...
 
SpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at RuntimeSpotFlow: Tracking Method Calls and States at Runtime
SpotFlow: Tracking Method Calls and States at Runtime
 
Innovate and Collaborate- Harnessing the Power of Open Source Software.pdf
Innovate and Collaborate- Harnessing the Power of Open Source Software.pdfInnovate and Collaborate- Harnessing the Power of Open Source Software.pdf
Innovate and Collaborate- Harnessing the Power of Open Source Software.pdf
 
React Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief UtamaReact Server Component in Next.js by Hanief Utama
React Server Component in Next.js by Hanief Utama
 
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdfGOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
GOING AOT WITH GRAALVM – DEVOXX GREECE.pdf
 
A healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdfA healthy diet for your Java application Devoxx France.pdf
A healthy diet for your Java application Devoxx France.pdf
 
How To Manage Restaurant Staff -BTRESTRO
How To Manage Restaurant Staff -BTRESTROHow To Manage Restaurant Staff -BTRESTRO
How To Manage Restaurant Staff -BTRESTRO
 
Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)Ahmed Motair CV April 2024 (Senior SW Developer)
Ahmed Motair CV April 2024 (Senior SW Developer)
 
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
Catch the Wave: SAP Event-Driven and Data Streaming for the Intelligence Ente...
 
What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...What is Advanced Excel and what are some best practices for designing and cre...
What is Advanced Excel and what are some best practices for designing and cre...
 
Unveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New FeaturesUnveiling the Future: Sylius 2.0 New Features
Unveiling the Future: Sylius 2.0 New Features
 
英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作英国UN学位证,北安普顿大学毕业证书1:1制作
英国UN学位证,北安普顿大学毕业证书1:1制作
 
Sending Calendar Invites on SES and Calendarsnack.pdf
Sending Calendar Invites on SES and Calendarsnack.pdfSending Calendar Invites on SES and Calendarsnack.pdf
Sending Calendar Invites on SES and Calendarsnack.pdf
 
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving CarsSensoDat: Simulation-based Sensor Dataset of Self-driving Cars
SensoDat: Simulation-based Sensor Dataset of Self-driving Cars
 
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte GermanySuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
SuccessFactors 1H 2024 Release - Sneak-Peek by Deloitte Germany
 
20240415 [Container Plumbing Days] Usernetes Gen2 - Kubernetes in Rootless Do...
20240415 [Container Plumbing Days] Usernetes Gen2 - Kubernetes in Rootless Do...20240415 [Container Plumbing Days] Usernetes Gen2 - Kubernetes in Rootless Do...
20240415 [Container Plumbing Days] Usernetes Gen2 - Kubernetes in Rootless Do...
 

AI-generated Art NFTs on FVM

  • 1. Ally Haire Developer Relations Engineer DeveloperAlly FVM x Bacalhau: Bridging compute over state & Compute over data #BuildWithBacalhau
  • 2. Agenda aka the timestamps… ● Quick Project Demo & Tech Stack ● Bacal… what? The why’s and how’s of Bacalhau ● The code! ○ Hardhat hyperspace deploy ○ NFT.Storage ○ Bacalhau Stable Diffusion scripts ● Possibilities & Future for FVM x Bacalhau
  • 3. FVM x Bacalhau Better Together…
  • 4. Data, Data, Data! Data, information and knowledge are some of the most important assets of our connected era and have become critical to human development & cooperation
  • 5. FVM brings on-chain user programmability to Filecoin Bacalhau brings off-chain verifiable compute - both unlocking the next layer of innovation and value Storage Computation over state On-chain Computation over data … Off-chain Storage is only the start…..
  • 6. Computation over State vs Computation over data… Computation over state (on-chain compute): FVM enables computation over state. Allows monitoring and automation of chain activities such as monitoring and automating storage deals and markets and enabling tokenisation of data for dataDAOs + more. Computation over data (off-chain, verifiable compute): Bacalhau enables complex computation over data - any data In the context of Filecoin & FVM, Bacalhau will allow processing of activities monitored on chain in a verifiable and deterministic manner. It enables a rich layer of data processing for Filecoin & FVM
  • 7. Bacalhau & FVM FVM - programmable data on small amounts of state Bacalhau - Computation over this or any data including big data with support for GPUs Future: Bacalhau + FVM - calling Bacalhau in your smart contracts!
  • 8. What’s stored on Filecoin? If we look at some of the data stored on filecoin we’d find… - Climate, space & geo-spatial data - Academic research including quantum science data and genetics research from several top tier universities - Literature including an initiative for an Open Library with Harvard University - HIstorically significant data such as data from holocaust victims and the Ukraine - Public record data such as election campaigns, or New York city public data - Internet Archive’s cache of web information and pages - Millions of unique collections of creative work in the form of NFT metadata from art, videos, music, games and more
  • 9. Bacalhau? Please allow me to introduce myself…
  • 10. Bacal.. - what ?? Bacalhau is a network of open compute resources available to serve any data processing workload - It’s simple to use (you don’t need an AI degree!) - Requires minimal operational overhead or setup - It’s decentralised-first (or edge-first) principled - Aims to provide efficient distributed computation with batched tasks Learn more about Bacalhau! @BacalhauProject https://youtu.be/RZopDyTJ1pk
  • 11. Bacalhau Platform Architecture Bacalhau provides a platform for public, transparent, and optionally verifiable computation. It enables users to run arbitrary Docker containers and WebAssembly (wasm) images as tasks against data stored in the InterPlanetary File System (IPFS) It operates as a peer-to-peer network of nodes where each node has both a requestor and compute component
  • 12. Bacalhau System Components ● Requester node (component) ● Compute node (component) ● Transport layer (interface) ● Executer (interface) ● Storage Provider (interface) ● Verifier (interface) ● Publisher (interface)
  • 13. Bacalhau Job Lifecycle Job Submission Job Acceptance Job Execution Job Verification Job Publishing Job Submission Job Acceptance Job Execution Job Verification Job Publishing
  • 15. Project Architecture Tech Stack: - NextJS, Typescript - OZ Solidity ERC721 - based contract - Bacalhau Text-to-Image Stable Diffusion Script - NFT.Storage for Metadata storage - Deployment to Hyperspace testnet with Hardhat - Front-end DApp deployment on Fleek
  • 17. Making & deploying an NFT Contract to FVM The contract, hardhat deployment & setup
  • 18. The Contract Based off an Open Zeppelin ERC721 NFT contract. The Mint function takes in an IPFS CID = NFT Metadata, Contract emits an event once minted on the blockchain
  • 19. Hardhat Deploy > npx hardhat run ./deployBacalhauFRC721. ts --network filecoinHyperspace
  • 20. Open Source Text to Image (Stable Diffusion) Script Running Open Source Dall-E on Bacalhau!
  • 21. Dockerised python script with Tensorflow @BacalhauProject YouTube https://www.youtube.com/watch?v=53uY48e 1lis&t=1452s Stable Diffusion Script aka the Text-to-Image script
  • 22. The Python Text-to-Image Script This is the basic text to image script. It uses a keras/tensorflow implementation of stable diffusion (an ML model) and then generates the images from a given text string and finally displays the image generated. The ML weights are pre- calculated in the library
  • 23. Fetch… AI?! Just a javascript fetch function! Under the hood this runs the dockerised script on the Bacalhau network. The Bacalhau GPU nodes will then run the job and return an IPFS CID of the results folder
  • 26. NFT.Storage Metadata An IPFS CID is returned..
  • 27. Minting the NFT! Calling Hyperspace Contract
  • 28. Minting the NFT on FVM I’m using ethers to connect to my contract and metamask wallet as a transaction signer.
  • 29. Project Text to NFT - Mint your Own! Deployed on Fleek!
  • 30. Possibilities for Bacalhau x FVM Better together! <3
  • 31. Bacalhau Computation over Data - use cases Bacalhau lends itself well to performing repetitive, deterministic processing jobs over data. - ETL Processes - Machine Learning & AI - IOT data integration - Batch Processing including for - Financial and market data - Video & Image processing
  • 32. Bacalhau x FVM…. - Help Onboarding and Offboarding of Filecoin data in the future - Help build a reputation and Quality of Service layer for Filecoin by processing data retrieved on-chain about deals and storage providers. - Bacalhau could provide computation for market & payment data - Bacalhau could help with processing data from DAO’s & DataDAOs - Bacalhau could help empower more automation for creative endeavours like video and images processing - Bacalhau can enable game and metaverse data processing including for VR & AR. - Bacalhau, IOT & Simulations are possible - AI & ML Applications Future: Bacalhau + FVM - calling Bacalhau in your smart contracts!
  • 33. More inspiration - check out the examples!
  • 35. Join the discussion: - Twitter @BacalhauProject - YouTube @bacalhauproject - Slack #bacalhau @filecoinproject - Github @bacalhau.org - Forum github.com/filecoin-project /bacalhau/discussions See more examples: - docs.bacalhau.org Get Involved in the future of data!
  • 36. Future Events & ETH Denver… - Compute Over Data WG @ Eth Denver - COD Summit 3 - Bacalhau Builders Program - 9-10th May Boston Launch
  • 37. Alan Kay - Computer Scientist “The best way to predict the future is to create it”