Furiosa Registry
Furiosa Registry defines Model which allows client to communicate with several types of registries.
Getting started
Install
pip install furiosa-registry
List up available models
import furiosa.common.thread as synchronous
import furiosa.registry as registry
# Repository where to load models from.
repository = "https://github.com/furiosa-ai/furiosa-artifacts"
# List up the available artifacts.
models: List[registry.Model] = synchronous(registry.list)(repository)
for model in models:
print(model.name)
Load models
import furiosa.common.thread as synchronous
import furiosa.registry as registry
# Repository where to load models from.
repository = "https://github.com/furiosa-ai/furiosa-artifacts"
models: registry.Model = synchronous(registry.load)(uri=repository, name="MLCommonsResNet50")
# Access the model
print(model.name)
print(model.version)
print(model.metadata.description)
Print documentation about a model
import furiosa.common.thread as synchronous
import furiosa.registry as registry
# Repository where to load models from.
repository = "https://github.com/furiosa-ai/furiosa-artifacts"
print(synchronous(registry.help)(repository, "MLCommonsResNet50"))
Development
Generate artfiact JSON schema from pydantic model definition.
When you changed model schema, you can generate modified schema via
python -c 'from furiosa.registry import Model;\
print(Model.schema_json(indent=2), file=open("model_schema.json", "w"))'
See model_schema.json
Metadata
Release files for furiosa-registry 0.9.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| furiosa_registry-0.9.1.tar.gz | 70.9 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| furiosa_registry-0.9.1-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 82.8 kB
Release files / furiosa_registry-0.9.1.tar.gz
| Download URL | furiosa_registry-0.9.1.tar.gz |
|---|---|
| Size | 70.9 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
61e05bcea51212af065d89a9ef35e036d32d5f397024ea22a7e4e87cd3fbda06
|
|
BLAKE2b-256 checksum How to use checksums |
4ba6dde3b4dd3502383eeb52c9c7ce4c0c7ef79ae5f1ad74aa328b789e53bd02
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.31.0
|
Release files / furiosa_registry-0.9.1-py3-none-any.whl
| Download URL | furiosa_registry-0.9.1-py3-none-any.whl |
|---|---|
| Size | 11.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
7c0c8b6c0f3e3191ba785de1890f35d1de74a72cca9c7a58f7e55bd6c5758d11
|
|
BLAKE2b-256 checksum How to use checksums |
31bd09d5d5055fa65d95634b114fd268cd6b7a389f8224d7fb317ac8ef70055d
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
python-requests/2.31.0
|