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
Built Distribution
File details
Details for the file ipfs_datasets_py-0.0.7.tar.gz
.
File metadata
- Download URL: ipfs_datasets_py-0.0.7.tar.gz
- Upload date:
- Size: 25.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 2715efa05a82061bbe0735e3bf9680d61a007897b98b5bbd480cf11f235a4ce6 |
|
MD5 | f0b6896a4729f762dec7691113da1494 |
|
BLAKE2b-256 | f8153c85fe0dbc5694407fd4f1054c9bd391d02b54768b53f01aa70895401c35 |
File details
Details for the file ipfs_datasets_py-0.0.7-py3-none-any.whl
.
File metadata
- Download URL: ipfs_datasets_py-0.0.7-py3-none-any.whl
- Upload date:
- Size: 25.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 9cdb4a1f201e46ea7c8d07655447c36262f78b432cbaf0c9243511719dbc9511 |
|
MD5 | 216eebed3fb8777d4eb241100d1eaf1f |
|
BLAKE2b-256 | 71a622f88fbd4362f9c672b262fceeb4471b6ff83a68cbf3437bd68ec6d4d380 |