Industrial SOP Monitoring Blueprints for Training & Inference
Обзор
Build, train, and deploy a complete SOP (Standard Operating Procedure) monitoring system. It comprises and . - Training Microservices (microservices/sop-training-bp/README.md): prepares a SOP-specific Vision-Language Model (VLM) and Temporal Segmentation Model. - Inference Microservices (microservices/sop-inference-bp/README.md): a low-latency, real-time DeepStream SOP inference microservice, provided as the that the DeepStream SOP skill generates against, debugs, evaluates, and benchmarks. - SOP Fine-tuning Agentic Skills (agentic/sop-agentic-ft/README.md): AI coding assistant skills for fine-tuning SOP monitoring models — data augmentation, DDM + Cosmos-Reason fine-tuning, evaluation, RCA, and orchestration. - DeepStream SOP Agentic Skills (agentic/ds-sop-skills/README.md): AI coding assistant skills for the DeepStream SOP inference microservice — auto code generation, customization, evaluation, camera/live-stream setup, and performance benchmarking.
README
SOP Monitoring Services (Training + Inference)
Table of Contents
- Overview
- When To Use Which Service
- End-to-End Workflow
- Extract the Cosmos3-Nano Reasoner
- Agentic Quick Start
- VSS Example Application
- Usage
- Sample Data
- License
Overview
Build, train, and deploy a complete SOP (Standard Operating Procedure) monitoring system. It comprises two complementary microservices and three agentic skills packages.
Microservices
- Training Microservices (microservices/sop-training-bp/README.md): prepares a SOP-specific Vision-Language Model (VLM) and Temporal Segmentation Model.
- Inference Microservices (microservices/sop-inference-bp/README.md): a low-latency, real-time DeepStream SOP inference microservice, provided as the reference implementation that the DeepStream SOP skill generates against, debugs, evaluates, and benchmarks.
Agentic Skills
- SOP Fine-tuning Agentic Skills (agentic/sop-agentic-ft/README.md): AI coding assistant skills for fine-tuning SOP monitoring models — data augmentation, DDM + Cosmos-Reason fine-tuning, evaluation, RCA, and orchestration.
- DeepStream SOP Agentic Skills (agentic/ds-sop-skills/README.md): AI coding assistant skills for the DeepStream SOP inference microservice — auto code generation, customization, evaluation, camera/live-stream setup, and performance benchmarking.
- VSS SOP Skills (agentic/vss-sop-skills/README.md): AI coding assistant skill to integrate VSS with the DeepStream SOP microservice.
When To Use Which Service
-
Use the Training Service if:
- You need to create or refine a SOP-aware model from your own annotated videos.
- You want to programmatically generate QA training data for fine-tuning.
-
Use the Inference Service if:
- You already have a trained SOP model (e.g., from the Training Service).
- You want to deploy SOP monitoring as an API and web application.
These services are designed to work together: train a model with the Training Service, then serve it with the Inference Service.
End-to-End Workflow
- Annotate videos by marking action start/end timestamps (Training).
- Generate QA pairs (GQA/BCQ/MCQ) from annotations (Training).
- Fine-tune a VLM (e.g., Cosmos-Reason) on generated data (Training).
- Fine-tune a Temporal Segment Model on the annotated data (Training).
- Deploy the trained model into the Inference Service (Inference).
- Conduct end-to-end SOP monitoring and analyze SOP compliance (Inference).
Extract the Cosmos3-Nano Reasoner (VLM backbone)
The SOP monitoring service can also support Cosmos3-Nano reasoner fine-tuning. To fine-tune the Cosmos3-Nano reasoner for SOP monitoring, first extract it from Cosmos3 Nano checkpoint into Hugging Face safetensor checkpoint:
-
Set up the Cosmos-Framework environment: clone NVIDIA/cosmos-framework and follow its setup guide.
-
Extract the reasoner (language + vision tower) with
convert_model_to_vlm_safetensors.py. TheCosmos3-Nanoweights (nvidia/Cosmos3-Nano) are downloaded automatically:python -m cosmos_framework.scripts.convert_model_to_vlm_safetensors \ --checkpoint-path Cosmos3-Nano \ -o examples/checkpoints/Cosmos3-Nano-VLM -
Use the extracted checkpoint as the VLM backbone for fine-tuning — see the SOP Training Service README.
Agentic Quick Start
Two agent-driven paths you can run independently: fine-tune the DDM and Cosmos-Reason models, and generate / evaluate a DeepStream SOP inference microservice — each driven from natural-language prompts to an AI coding agent.
Fine-tune the models (SOP Fine-tuning Agentic Skills)
-
Install the fine-tuning skills — follow microservices/sop-training-bp/AGENTIC_README.md to register the
sop-agentic-ftmarketplace and install all six plugins. -
Drive the fine-tuning loop with a prompt such as:
I want to fine-tune SOP monitoring on and evaluate on targeting seq_accuracy >= and max iterations set to . Report status every 10 minutes.This produces the fine-tuned DDM (temporal action detection) and Cosmos-Reason (VLM) model checkpoints.
Generate & deploy the inference microservice (DeepStream SOP Agentic Skills)
With the DDM and Cosmos-Reason model checkpoints ready (fine-tuned above, or your own):
-
Install the DeepStream SOP skill — follow agentic/ds-sop-skills/README.md.
-
Generate the source code & microservice:
Please follow instructions in agentic/ds-sop-skills/example_sop_prompt.md to generate a DeepStream SOP Inference source code and microservice in folder @ds_sop_microservice -
Evaluate, bug-fix & benchmark — after the generated code is ready and dependency checks pass:
Follow agentic/ds-sop-skills/eval_sop_prompt.md to evaluate microservice @ds_sop_microservice, fix any issues found during evaluation, and measure the latency benchmark for file input, with env settings MODEL_ROOT_DIR=..., DDM_MODEL_PATH=..., VLLM_MODEL_PATH=..., VLM_FPS=..., ...Make sure
MODEL_ROOT_DIR,DDM_MODEL_PATH,VLLM_MODEL_PATH,VLM_FPS,VLM_MAX_PIXELS,ACTION_CONFIG_PATH,VLM_PROMPT_PATH, andTEST_VIDEO_PATHare set correctly according to your dataset and model config. See DeepStream SOP Microservice Evaluation for the full list and details. -
(Optional) Basler camera evaluation & benchmark — for a physical GigE camera:
Please evaluate @ds_sop_microservice with physical Basler camera serial number 12345678, using max_length_sec=2.0. Follow the deepstream-sop skill for rules.Replace the serial number with your local physical GigE Basler camera (tested on a2A2048-37gcPRO).
VSS Example Application
The VSS SOP application is built, deployed, and validated using modular lifecycle skills:
-
Install the VSS SOP skills — follow agentic/vss-sop-skills/README.md to install the
vss-sopskills. -
Install the DS SOP skills — follow agentic/ds-sop-skills/README.md to install the
ds-sopskills. -
Build, deploy & test the full SOP pipeline — drive it end-to-end with a single prompt:
Run the full SOP pipeline using the sop-build skill.This runs the full lifecycle:
- Build DeepStream SOP microservice: the
deepstream-sop(ds sop) skill generates and evaluates the core DeepStream SOP microservice source code. - Build VSS SOP app: the
vss-sop-buildskill builds the VSS SOP application on top of standard VSS components. - Deploy VSS SOP app: the
vss-sop-deployskill performs preflight checks, verifies models, downloads sample assets, and launches all containerized microservices. - Test VSS SOP app: the
vss-sop-testskill executes the post-deployment validation suite and verifies end-to-end functionality.
Alternatively, instead of running the full 4-stage pipeline as described above, you can pre-build the ds-sop image. After that, simply run the VSS SOP pipeline using the
vss-sop-buildskill. The pipeline will then consist of only 3 stages: Build VSS SOP, Deploy VSS SOP, and Test VSS SOP.Command to call the skill:
/vss-sop-build - Build DeepStream SOP microservice: the
Usage
Please refer to:
- Training: microservices/sop-training-bp/README.md
- Inference: microservices/sop-inference-bp/README.md
- SOP Fine-tuning Agentic Skills: microservices/sop-training-bp/AGENTIC_README.md
- DeepStream SOP Agentic Skills: agentic/ds-sop-skills/README.md
- VSS SOP Skills: agentic/vss-sop-skills/README.md
Sample Data
We provide sample data which can be used for testing the SOP Training and Inference BP. The sample data is about installing server fan and power.
License
This project is dual-licensed: source code under Apache-2.0 and documentation under CC-BY-4.0, per the CC-BY-4.0 AND Apache-2.0 terms in the top-level LICENSE.
This project bundles and/or downloads third-party open-source software, each under its own license. See THIRD_PARTY_NOTICES.md for the third-party components distributed in this repository, and review the license terms of any additionally downloaded open-source projects before use.
Рекомендуемые инструменты
Попробуйте другой запрос или уберите фильтр.
Установка
npx skillfish add nvidia/sop-monitoring-blueprints