Skip to main content

A Decentralised AI library which allows to run remote AI jobs

Project description

The Decentralised AI Request

Enable for any AI python code to be executed on decentralised AI compute.

Supported AI compute:
Bacalhau

Required: Have a working IPFS Desktop App running on the same machine. You can download it here.

Commands:
python -m build # build the project
python -m unittest # run all unit tests

Usage:
from deairequest import DeProtocolSelector as selector
bp = selector.DeProtocolSelector("Bacalhau")
bp.get_docker_images()
if a user wants a custom image
bp.add_docker_image("custom_images")
For each request you need to set the docker image to use
bp.set_docker_image("the docker image to use")

To add datasets of type URL:
bp.add_dataset(bp.get_url_data_type(),"https://www...")
Of type File:
bp.add_dataset(bp.get_file_data_type(),"/path/to/file/name.csv")
Of type Directory:
bp.add_dataset(bp.get_directory_data_type(),"/path/to/directory/")
Of type IPFS:
bp.add_dataset(bp.get_ipfs_data_type(),"AW233dfD23dsds32323sdds") # The IPFS CID
To get all the datasets:
bp.get_datasets()
output: [{"url":"https://www..."},{"file":"/path/to/file/name.csv"},{"directory":"/path/to/directory/"},{"ipfs":"AW233dfD23dsds32323sdds"}]

Afterwards you can submit a job
job = bp.submit_job(Path("/path/to/notebook.jpynb"))
get the logs
state = bp.get_state(job)
and when the job is finished and the state changes from "InProgress" to either "Complete" or "Error"
result = bp.get_results(job,Path("/path/to/output/directory/"))

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

deairequest-0.0.10.tar.gz (39.1 kB view details)

Uploaded Source

Built Distribution

deairequest-0.0.10-py3-none-any.whl (44.5 kB view details)

Uploaded Python 3

File details

Details for the file deairequest-0.0.10.tar.gz.

File metadata

  • Download URL: deairequest-0.0.10.tar.gz
  • Upload date:
  • Size: 39.1 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.10.9

File hashes

Hashes for deairequest-0.0.10.tar.gz
Algorithm Hash digest
SHA256 076fb5c0fa8c9af947ae33327025ff84b8870071c6798e7c48c2654dfdbb4321
MD5 eb0d6bc1465712c5b5a8e81e1700b7b8
BLAKE2b-256 5cee147434ec68322e60f6cf25475e7ee4ec689f2378974469bf6e23135958a5

See more details on using hashes here.

File details

Details for the file deairequest-0.0.10-py3-none-any.whl.

File metadata

File hashes

Hashes for deairequest-0.0.10-py3-none-any.whl
Algorithm Hash digest
SHA256 544afb1fe3af98fe32a605597c29c5256eb85a631d3aee6c2a9fc20edce72682
MD5 c4905a22e35d01a4e8b71dd4ad54401b
BLAKE2b-256 cb1d3f454eebbd80fb5d6dc88b0e0a3e8684a652206ddbbfe657564fc0969239

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page