Skip to main content

A wrapper around huggingface datasets, invoking an IPFS model manager.

Project description

IPFS Huggingface Datasets

This is a model manager and wrapper for huggingface, looks up a index of models from an collection of models, and will download a model from either https/s3/ipfs, depending on which source is the fastest.

How to use

pip install .

look run python3 example.py for examples of usage.

this is designed to be a drop in replacement, which requires only 2 lines to be changed

In your python script

from datasets import load_dataset
from ipfs_datasets import load_dataset
dataset = load_dataset.from_auto_download("bge-small-en-v1.5")  

or

from datasets import load_dataset
from ipfs_datasets import load_dataset
dataset = load_dataset.from_ipfs("QmccfbkWLYs9K3yucc6b3eSt8s8fKcyRRt24e3CDaeRhM1")

or to use with with s3 caching

from datasets import load_dataset
from ipfs_datasets import load_dataset
dataset = load_dataset.from_auto_download(
    dataset_name="common-crawl",
    s3cfg={
        "bucket": "cloud",
        "endpoint": "https://storage.googleapis.com",
        "secret_key": "",
        "access_key": ""
    }
)

IPFS Huggingface Bridge:

for transformers python library visit: https://github.com/endomorphosis/ipfs_transformers/

for transformers js client visit:
https://github.com/endomorphosis/ipfs_transformers_js/

for orbitdb_kit nodejs library visit: https://github.com/endomorphosis/orbitdb_kit/

for fireproof_kit nodejs library visit: https://github.com/endomorphosis/fireproof_kit

for Faiss KNN index python library visit: https://github.com/endomorphosis/ipfs_faiss/

for python model manager library visit: https://github.com/endomorphosis/ipfs_model_manager/

for nodejs model manager library visit: https://github.com/endomorphosis/ipfs_model_manager_js/

for nodejs ipfs huggingface scraper with pinning services visit: https://github.com/endomorphosis/ipfs_huggingface_scraper/

Author - Benjamin Barber QA - Kevin De Haan

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

ipfs_embeddings_py-0.0.24.tar.gz (69.9 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

ipfs_embeddings_py-0.0.24-py3-none-any.whl (78.8 kB view details)

Uploaded Python 3

File details

Details for the file ipfs_embeddings_py-0.0.24.tar.gz.

File metadata

  • Download URL: ipfs_embeddings_py-0.0.24.tar.gz
  • Upload date:
  • Size: 69.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for ipfs_embeddings_py-0.0.24.tar.gz
Algorithm Hash digest
SHA256 d3137aa95313f467c4591e8a441a4f20c85d0d3cd59aec988032c85f43e16ad5
MD5 b88ab8de374ee9d52b92352e215cce37
BLAKE2b-256 00c6e214f89fbfe9b85304f1af328adb8357f5a875f33057e263eb9443a10236

See more details on using hashes here.

File details

Details for the file ipfs_embeddings_py-0.0.24-py3-none-any.whl.

File metadata

File hashes

Hashes for ipfs_embeddings_py-0.0.24-py3-none-any.whl
Algorithm Hash digest
SHA256 8c2d62eb986df2f34ffb8571798f7e58477773302cfd0672642a1e2eb14a42d6
MD5 38035fca9f403224212905672e9dd461
BLAKE2b-256 f1961f939832ad4ce649ebd4bde43291e5c020294cee4a793534497017519dfb

See more details on using hashes here.

Supported by

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