Skip to main content

IPFS Huggingface Transformers

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 transformers import AutoModel
from ipfs_transformers import AutoModel
model = AutoModel.from_auto_download("bge-small-en-v1.5")  

or

from transformers import AutoModel
from ipfs_transformers import AutoModel
model = AutoModel.from_ipfs("QmccfbkWLYs9K3yucc6b3eSt8s8fKcyRRt24e3CDaeRhM1")

or to use with with s3 caching

from transformers import AutoModel
from ipfs_transformers import AutoModel
model = T5Model.from_auto_download(
    model_name="google-bert/t5_11b_trueteacher_and_anli",
    s3cfg={
        "bucket": "cloud",
        "endpoint": "https://storage.googleapis.com",
        "secret_key": "",
        "access_key": ""
    }
)

image

IPFS Huggingface Bridge

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

for huggingface datasets python library visit: https://github.com/endomorphosis/ipfs_datasets

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

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 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/

for ipfs huggingface agents visit: https://github.com/endomorphosis/ipfs_agents

for ipfs huggingface accelerate visit: https://github.com/endomorphosis/ipfs_accelerate

for ipfs_kit visit: https://github.com/endomorphosis/ipfs_kit

for ipfs_kit_js visit: https://github.com/endomorphosis/ipfs_kit_js

Author - Benjamin Barber QA - Kevin De Haan

Metadata

Release files for ipfs-transformers-py 0.0.3

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ipfs-transformers-py 0.0.3
File Size Uploaded Provenance
ipfs_transformers_py-0.0.3.tar.gz 66.6 kB Without provenance Details

Built distribution (wheel)

Table of built distributions (wheels) for ipfs-transformers-py 0.0.3
File Interpreter ABI Platform
ipfs_transformers_py-0.0.3-py3-none-any.whl Python 3 none any Details

Total release size: 131.9 kB

Release files / ipfs_transformers_py-0.0.3.tar.gz

Download URL ipfs_transformers_py-0.0.3.tar.gz
Size 66.6 kB
Tags Source
SHA-256 checksum
How to use checksums
7ec5b79a3e2e65163edbf9720330cd6530d24afc28095ad5cfdf927eee0aa79d
BLAKE2b-256 checksum
How to use checksums
91e6e23833c04de455b33d0fdf1895acc6630ad715840191ffeac5d362ac3a17
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Release files / ipfs_transformers_py-0.0.3-py3-none-any.whl

Download URL ipfs_transformers_py-0.0.3-py3-none-any.whl
Size 65.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
4ee8dd2e920aa0de942c01a05185f9f0b94ce17cff81ba86912bff410c69e544
BLAKE2b-256 checksum
How to use checksums
9d04f0c0784465daa23a268069c4e547f9ae4ce74bd4651e469c9db67fa5f57a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/5.1.1 CPython/3.12.3

Security for ipfs-transformers-py 0.0.3

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.0.3 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page