Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/redhat-na-ssa/demo-triton-yolo

Customize Nvidia Triton to use OpenShift Source to Image building
https://github.com/redhat-na-ssa/demo-triton-yolo

data-science model-serving nvidia openshift triton

Last synced: 4 days ago
JSON representation

Customize Nvidia Triton to use OpenShift Source to Image building

Awesome Lists containing this project

README

        

# Nvidia Triton for OpenShift Source to Image (s2i)

This repo shows how to package a ML model with a Nvidia Triton server container.

## Quickstart

> [!NOTE]
> In this example Triton server is configured to serve models from:`/models`

### Run Triton - Polling mode (PVC storage)

> [!NOTE]
> You can copy models from local storage via `oc cp`
> to a PVC or ephemeral storage

```sh
oc apply -k gitops/overlays/triton
```

```sh
# change project / ns context
oc project demo-triton

# get pod name
POD=$(oc get pod -l app=triton-server -o custom-columns=POD:.metadata.name --no-headers)

# copy model into /models
oc cp examples/source-builder/models/simple ${POD}:/models/
```

### Run Triton - Use an Init Container to setup model

```sh
oc apply -k gitops/overlays/triton-init
```

### Run Triton - Load models from S3 bucket at runtime

> [!NOTE]
> Modify `triton-s3-models` secret with s3 credentials

```sh
oc apply -k gitops/overlays/triton-s3
```

### Run Builder Demos

```sh
oc apply -k gitops/
```

## More Info

See [examples](examples) for more details

## Links

- [Triton Walkthrough](https://neuralbits.substack.com/p/how-to-use-nvidia-triton-server-the)