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

Override ModelDeploymentSpec of registered models #526

Merged
merged 2 commits into from
Jan 18, 2024

Conversation

spillai
Copy link
Contributor

@spillai spillai commented Jan 18, 2024

Summary

This PR allows users to override the deployment spec of registered models. For example, registered models and their deployment spec can be overridden as follows:

TinyLlama/TinyLlama-1.1B-Chat-v1.0:
    runtime_env: custom-gpu
    deployment:
      resources:
        device: auto
        device_memory: 3Gi

In this example, the deployment resources for the model TinyLlama/TinyLlama-1.1B-Chat-v1.0 will be overridden to use the custom-gpu runtime environment and 3Gi of device memory.

Related issues

Resolves #518

Checks

  • make lint: I've run make lint to lint the changes in this PR.
  • make test: I've made sure the tests (make test-cpu or make test) are passing.
  • Additional tests:
    • Benchmark tests (when contributing new models)
    • GPU/HW tests

This PR allows users to override the deployment spec of registered models.
For example, registered models and their deployment spec can be overridden as follows:

```yaml
TinyLlama/TinyLlama-1.1B-Chat-v1.0:
    runtime_env: custom-gpu
    deployment:
      resources:
        device: auto
        device_memory: 3Gi
```

In this example, the deployment resources for the model
`TinyLlama/TinyLlama-1.1B-Chat-v1.0` will be overridden to use
the `custom-gpu` runtime environment and `3Gi` of device memory.
@spillai spillai added the bug Something isn't working label Jan 18, 2024
@spillai spillai added this to the NOS v0.2 milestone Jan 18, 2024
@spillai spillai self-assigned this Jan 18, 2024
@spillai spillai merged commit 021b63b into autonomi-ai:main Jan 18, 2024
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Override ModelDeploymentSpec of registered models
1 participant