FuriosaAI model registry
Project description
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
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
furiosa_registry-0.9.1.tar.gz
(70.9 kB
view details)
Built Distribution
File details
Details for the file furiosa_registry-0.9.1.tar.gz
.
File metadata
- Download URL: furiosa_registry-0.9.1.tar.gz
- Upload date:
- Size: 70.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 61e05bcea51212af065d89a9ef35e036d32d5f397024ea22a7e4e87cd3fbda06 |
|
MD5 | 5c8c19fd711ac4c7a69ed3edfcbe8f4e |
|
BLAKE2b-256 | 4ba6dde3b4dd3502383eeb52c9c7ce4c0c7ef79ae5f1ad74aa328b789e53bd02 |
File details
Details for the file furiosa_registry-0.9.1-py3-none-any.whl
.
File metadata
- Download URL: furiosa_registry-0.9.1-py3-none-any.whl
- Upload date:
- Size: 11.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: python-requests/2.31.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 7c0c8b6c0f3e3191ba785de1890f35d1de74a72cca9c7a58f7e55bd6c5758d11 |
|
MD5 | 174fdcfe415545fec3228fcb62cd78e7 |
|
BLAKE2b-256 | 31bd09d5d5055fa65d95634b114fd268cd6b7a389f8224d7fb317ac8ef70055d |