Skip to content

Commit

Permalink
Minor fixes/updates to abp_pcap_detection example (#570)
Browse files Browse the repository at this point in the history
* Remove `<MORPHEUS_ROOT>` making all bash commands copy/past-able 
* Remove polling flags from Triton command

Authors:
  - David Gardner (https://github.com/dagardner-nv)

Approvers:
  - Michael Demoret (https://github.com/mdemoret-nv)

URL: #570
  • Loading branch information
dagardner-nv authored Dec 20, 2022
1 parent a87e5ab commit fd3d274
Showing 1 changed file with 11 additions and 5 deletions.
16 changes: 11 additions & 5 deletions examples/abp_pcap_detection/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,12 +30,12 @@ docker pull nvcr.io/nvidia/tritonserver:22.08-py3

Bind the provided `abp-pcap-xgb` directory to the docker container model repo at `/models`.

From the root of the Morpheus repo, navigate to the anomalous behavior profiling example directory:
```bash
# Change directory to the anomalous behavior profiling example folder
cd <MORPHEUS_ROOT>/examples/abp_pcap_detection
cd examples/abp_pcap_detection

# Launch the container
docker run --rm --gpus=all -p 8000:8000 -p 8001:8001 -p 8002:8002 -v $PWD/abp-pcap-xgb:/models/abp-pcap-xgb --name tritonserver nvcr.io/nvidia/tritonserver:22.08-py3 tritonserver --model-repository=/models --exit-on-error=false --model-control-mode=poll --repository-poll-secs=30
docker run --rm --gpus=all -p 8000:8000 -p 8001:8001 -p 8002:8002 -v $PWD/abp-pcap-xgb:/models/abp-pcap-xgb --name tritonserver nvcr.io/nvidia/tritonserver:22.08-py3 tritonserver --model-repository=/models --exit-on-error=false
```

##### Verify Model Deployment
Expand All @@ -52,8 +52,14 @@ Once Triton server finishes starting up, it will display the status of all loade
## ABP Detection Pipeline
Use Morpheus to run the Anomalous Behavior Profiling Detection Pipeline with the pcap data. A pipeline has been configured in `run.py` with several command line options:

From the root of the Morpheus repo run:
```bash
$ python run.py --help
cd examples/abp_pcap_detection
python run.py --help
```

Output:
```
Usage: run.py [OPTIONS]
Options:
Expand Down Expand Up @@ -83,7 +89,7 @@ Options:
--help Show this message and exit.
```

To launch the configured Morpheus pipeline with the sample data that is provided at `<MORPHEUS_ROOT>/examples/data`, from the `examples/abp_pcap_detection` directory run the following:
To launch the configured Morpheus pipeline with the sample data that is provided in `examples/data`, from the `examples/abp_pcap_detection` directory run the following:

```bash
python run.py \
Expand Down

0 comments on commit fd3d274

Please sign in to comment.