Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

hub.register decorator with a full model deployment spec (compile, run) #38

Open
spillai opened this issue Apr 24, 2023 · 0 comments
Open
Labels
feature New feature or request

Comments

@spillai
Copy link
Contributor

spillai commented Apr 24, 2023

Register models as part of the nos hub registry, with full build-time and runtime spec.

@hub.register(
    name="<org_name>/detection2d-detr-resnet-50", 
    build_spec=DevelopmentConfig(
        conda="autonomi-ai/nos-base-dev",
	resources=ResourceConfig(cpu=8, memory="8Gi", gpu=0.25, gpu_memory="4Gi"), # runtime resource
    ),
    runtime_spec=RuntimeConfig(
        conda="autonomi-ai/nos-base-runtime", # runtime conda env
	resources=ResourceConfig(cpu=2, memory="4Gi", gpu=0.25, gpu_memory="4Gi"), # runtime resources
    ),
)
@spillai spillai added the feature New feature or request label Apr 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant