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.7.4.tar.gz
(70.5 kB
view hashes)
Built Distribution
Close
Hashes for furiosa_registry-0.7.4-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 299b7223925e77090ee57e288c9698b87ee349191fbce273c04e2a5bc19e5a07 |
|
MD5 | 0f143482516f18dc12aa4372b9e13a1a |
|
BLAKE2b-256 | 381fce8348c64a9e125e364643eea3f4b8d25ad78e7b8b6f8e0b82f942ae2d67 |