IPFS Model Manager
This is a model manager and wrapper for huggingface, and it maintains an index of models from collections of models store retrieved through local/https/s3/ipfs/orbitdb, then maintains a state of which what models are currently accesible, and it will choose what files should be cached through local/s3/ipfs/ based on configuration settings.
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 ipfs_kit import ipfs_kit
from orbitdb_kit import orbitdb_kit
from ipfs_model_manager import ipfs_model_manager as model_manager
from ipfs_model_manager import load_config()
from ipfs_model_manager import load_collection()
config = load_config()
collection = load_collection()
models = ModelManager()
ready = models.ready()
models.import_config(config)
models.import_collection(collection)
models.state()
or
from ipfs_kit import ipfs_kit
from orbitdb_kit import orbitdb_kit
from ipfs_model_manager import ipfs_model_manager as model_manager
from ipfs_model_manager import load_config()
from ipfs_model_manager import load_collection()
config = load_config()
config.s3cfg = {
"bucket": "cloud",
"endpoint": "https://storage.googleapis.com",
"secret_key": "",
"access_key": ""
}
collection = load_collection()
models = ModelManager()
ready = models.ready()
models.import_config(config)
models.import_collection(collection)
models.state()
IPFS Huggingface Bridge:
for huggingface transformers python library visit: https://github.com/endomorphosis/ipfs_transformers/
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 transformers.js 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 ipfs_kit python library visit: https://github.com/endomorphosis/ipfs_kit/
for ipfs_kit_js nodejs library visit: https://github.com/endomorphosis/ipfs_kit_js
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 agents visit: https://github.com/endomorphosis/ipfs_agents/
for ipfs accelerate visit: https://github.com/endomorphosis/ipfs_accelerate/
Author - Benjamin Barber QA - Kevin De Haan
Metadata
Release files for ipfs-model-manager-py 0.0.23
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | |
|---|---|---|---|---|
| ipfs_model_manager_py-0.0.23.tar.gz | 35.2 MB | Without provenance | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| ipfs_model_manager_py-0.0.23-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 70.4 MB
Release files / ipfs_model_manager_py-0.0.23.tar.gz
| Download URL | ipfs_model_manager_py-0.0.23.tar.gz |
|---|---|
| Size | 35.2 MB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
18473af56eca4558c6db66535325274d3952e41a5a24db47cc5d0de2aa65ea10
|
|
BLAKE2b-256 checksum How to use checksums |
98d1601355d60684cb69b888acdbe3797824da7c3cefe70585a08184e739dd04
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|
Release files / ipfs_model_manager_py-0.0.23-py3-none-any.whl
| Download URL | ipfs_model_manager_py-0.0.23-py3-none-any.whl |
|---|---|
| Size | 35.3 MB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
55d52dbfdb6384ab987a42ee7c4812cb6a3dfce9d0c59aa6e672aa906f0557d7
|
|
BLAKE2b-256 checksum How to use checksums |
b8ebefa7313cfab54ee2f4e0d3b63ad47331572873b3974e76fdb0928d88e7a1
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.1.1 CPython/3.12.3
|
Security for ipfs-model-manager-py 0.0.23
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.