Cosmos - #135
Draft
micwill755 wants to merge 2 commits into
Draft
Conversation
Port gitlab VLA/WFM execution paths (LLMEngineRunner, ActionRunner, VitRunner, Cosmos denoise stack) into workspace runtime, add vla_inference and wfm_inference examples, and document Cosmos3-Edge export/inference in the README.
micwill755
marked this pull request as draft
July 22, 2026 00:05
Author
|
cc: @narendasan |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Below is a ready-to-paste PR description. I left test checkboxes unchecked because only pre-commit has been verified in this session.
Example input:
{ "batch_size": 1, "max_generate_length": 128, "action_batch_size": 1, "requests": [ { "messages": [ { "role": "user", "content": [ { "type": "image", "image": "/path/to/observation.png" }, { "type": "text", "text": "Pick up the red cube." } ] } ], "robot_state": [0.0, 0.0, 0.0], "embodiment_id": 0 } ] }Run inference:
export EDGELLM_PLUGIN_PATH=/path/to/libNvInfer_edgellm_plugin.so ./build/examples/llm/vla_inference \ --engineDir=/path/to/language_engines \ --multimodalEngineDir=/path/to/vla_engines \ --inputFile=/path/to/vla_input.json \ --outputFile=/tmp/vla_output.json \ --actionNoiseSeed=5The output JSON contains generated text and, when an action engine is loaded, either
actionsortrajectoryfor each request.Cosmos3-Edge WFM inference
Build the example:
cmake --build build --target wfm_inference -j$(nproc)Example input:
{ "num_inference_steps": 2, "seed": 42, "requests": [ { "prompt": "A robot arm picks up a red cube.", "generate_sound": false, "output_video_file": "/tmp/wfm_output_video.fp16" } ] }Run inference:
export EDGELLM_PLUGIN_PATH=/path/to/libNvInfer_edgellm_plugin.so ./build/examples/wfm/wfm_inference \ --engineDir=/path/to/cosmos_edge_engines \ --inputFile=examples/wfm/wfm_input_example.json \ --outputFile=/tmp/wfm_output.jsonThe video and waveform files are raw FP16 tensor dumps rather than MP4 or WAV containers.
Pull Request Checklist
Thank you for contributing to TensorRT Edge-LLM! Before we review your pull request, please make sure the following items are complete.
Please also refer to Contributor guidelines for general guidelines.
Pre-commit Checks
pre-commitby runningpip install pre-commit.pre-commit install.pre-commit run --all-filesand fixed any reported issues.Tests
Pre-commit validation:
Documentation
The README now documents Cosmos3-Edge engine export, build, engine layout, request format, and inference usage.
Compatibility
The new runtimes, request fields, model types, and examples are additive. Existing LLM and multimodal inference paths remain available.
Additional Information
Cosmos3-Edge engine export currently uses the companion
Test/wfm/export_wfm_cosmos_edge.pyworkflow. The prompt used during inference must match the export prompt so thatpacking_static.jsonremains compatible with the packed text sequence.