Commit Graph
3396 Commits
Author SHA1 Message Date
tzhouam 54977bd590 Add OmniGPUModelRunner and OmniModelInputForGPU classes
- Introduced OmniGPUModelRunner for enhanced GPU model execution with state management.
- Added OmniModelInputForGPU and its builder to support additional information in model inputs.
- Implemented methods for updating request states and handling multimodal inputs.
- Enhanced input preparation for CUDA graph execution and LoRA integration.
2025-10-22 15:33:11 +08:00
tzhouam 811057ce11 Refactor GPU diffusion model runner and worker
- Introduced `DiffusionModelRunner` class to handle diffusion processes, extending `OmniGPUModelRunner`.
- Updated `DiffusionGPUWorker` to initialize device settings and manage memory more effectively.
- Enhanced model execution with support for multimodal inputs and improved tensor management.
- Removed legacy code and streamlined the generation process for better performance.
2025-10-22 15:30:46 +08:00
tzhouam 6d04ea8450 rename to gpu-xx-model-runner style 2025-10-22 15:28:23 +08:00
Gaohan123 9edce9e12a Add end2end example and documentation for qwen2.5-omni 2025-10-22 15:26:42 +08:00
tzhouam 91c11c3ff4 Add AR GPU Model Runner and Worker
- Introduced ARModelRunner for autoregressive GPU model execution, enabling per-request hidden state outputs and token sampling.
- Added ARGPUWorker to initialize GPU settings and manage distributed environment for the AR model runner.
- Enhanced memory management and error handling for GPU resources during initialization.
2025-10-22 15:25:17 +08:00
tzhouam 83e7f6ba12 Add Omni model components and input processing for hidden states support
- Introduced `OmniModelRunnerOutput` and `OmniRequestOutput` classes for handling multimodal outputs.
- Implemented `OmniEngineCoreRequest` and `OmniInputPreprocessor` to manage prompt embeddings and additional information.
- Created `OmniTokensPrompt`, `OmniTokenInputs`, and `OmniEmbedsPrompt` for enhanced token handling.
- Added parsing and preprocessing functions to support new input structures.
- Removed the obsolete `diffusion_engine.py` file as part of the refactor.
2025-10-22 15:16:25 +08:00
tzhouam 19220aae82 Add scheduling components for vLLM-omni
- Introduced `DiffusionScheduler` to handle scheduling for diffusion models, allowing immediate request completion.
- Added `OmniNewRequestData` to encapsulate additional request data, including prompt embeddings and extra information.
- Updated `OmniScheduler` to ensure compatibility with new request data structures.
- Created `output.py` to define new data classes for enriched request handling.
- Enhanced `__init__.py` in the engine module to support new payload structures for prompt embeddings and additional information.
2025-10-22 15:05:23 +08:00
Gaohan123 20cfd15cc6 Add entrypoint class and stage management 2025-10-22 14:37:55 +08:00
tzhouam b4fa09f756 Refactor output processing for multimodal capabilities in vLLM-omni
- Introduced OmniRequestState to manage multimodal request states.
- Enhanced MultimodalOutputProcessor to handle various output types including images, text, and latents.
- Implemented methods for accumulating multimodal tensors and processing outputs.
- Updated output handling to ensure compatibility with vLLM's base processor while allowing custom modality handlers.
2025-10-22 11:54:07 +08:00
Hongsheng Liu 7a85034d9b Merge pull request #9 from hsliuustc0106/hsliu-dev-C
update RFC template
2025-10-18 08:11:50 +08:00
hsliu dd40b97336 add RFC template 2025-10-18 08:09:19 +08:00
hsliu ce550002ac Add RFC (Request for Comments) template
- Add 750-RFC.yml template for architectural discussions
- Template adapted for vLLM-omni with updated URLs
- Enables structured feedback for major design changes
- Follows vLLM's RFC template structure
2025-10-18 08:06:48 +08:00
Hongsheng Liu c150346d28 Merge pull request #8 from hsliuustc0106/hsliu-dev-C
Add PR and issue templates from vLLM project
2025-10-18 08:04:11 +08:00
hsliu 4422acb185 Add PR and issue templates from vLLM project
- Add PULL_REQUEST_TEMPLATE.md with vLLM-style PR template
- Add comprehensive issue templates:
  - Bug report template (400-bug-report.yml)
  - Feature request template (500-feature-request.yml)
  - New model support template (600-new-model.yml)
  - Documentation template (100-documentation.yml)
  - Installation template (200-installation.yml)
  - Performance discussion template (700-performance-discussion.yml)
  - Issue template configuration (config.yml)
- Templates adapted for vLLM-omni with multimodal context
- Force added YAML files to override .gitignore exclusion
2025-10-18 07:58:32 +08:00
Hongsheng Liu 5a503f341e Merge pull request #6 from hsliuustc0106/hsliu-dev-C
init main repo structure and demonstrate the AR + DiT demo for omni models
2025-09-30 17:46:55 +08:00
hsliu 05d23676ff change omni.py to serve.py and mv to cli 2025-09-29 18:10:37 +08:00
hsliu 721833c083 del 2025-09-29 17:54:56 +08:00
hsliu 772583140f del reamds 2025-09-29 17:53:03 +08:00
hsliu c330e5e8f3 del unnessearcy files 2025-09-29 17:49:32 +08:00
hsliu f8a6606176 fix diffusion engine 2025-09-28 22:09:13 +08:00
hsliu 4435d581c3 update diffusion_engine 2025-09-28 22:02:03 +08:00
hsliu 81f04d3cf9 update ar_dit_test 2025-09-28 21:58:48 +08:00
hsliu ff9c7d4536 update gitignore 2025-09-26 17:54:52 +08:00
hsliu f403cec650 mv omni_llm.py to entrypoints 2025-09-26 17:39:00 +08:00
hsliu bd43ce40e7 feat: add comprehensive testing scripts for vLLM-omni
- Add test_serving.sh: Full-featured testing suite with comprehensive validation
- Add quick_test.sh: Fast validation script for quick testing after changes
- Add scripts/README.md: Complete documentation for testing scripts
- Include health checks, text generation, performance testing, and API integration
- Add retry mechanisms and proper error handling
- Support for different models and ports
- Comprehensive logging and colored output
- Ready for CI/CD integration

Usage:
- Quick test: ./scripts/quick_test.sh [port]
- Full test: ./scripts/test_serving.sh [model_path] [port]
2025-09-26 17:39:00 +08:00
hsliu e8b9425bab refactor: move omni_llm.py to entrypoints directory
- Move vllm_omni/core/omni_llm.py to vllm_omni/entrypoints/omni_llm.py
- Update all import statements across the codebase to reflect new location
- Fix relative imports within the moved file
- Maintain functionality while improving code organization
- All imports and functionality tested and working correctly

This change better reflects that OmniLLM and AsyncOmniLLM are the main entry points
for vLLM-omni functionality, rather than core implementation details.
2025-09-26 17:39:00 +08:00
Hongsheng Liuandgemini-code-assist[bot] ffeb0dc407 Update docs/architecture/detailed arch design.md
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2025-09-26 15:52:18 +08:00
Hongsheng Liuandgemini-code-assist[bot] 91f60bee94 Update docs/architecture/detailed arch design.md
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2025-09-26 15:51:58 +08:00
Hongsheng Liuandgemini-code-assist[bot] e58e62fcbe Update docs/architecture/detailed arch design.md
Co-authored-by: gemini-code-assist[bot] <176961590+gemini-code-assist[bot]@users.noreply.github.com>
2025-09-26 15:51:49 +08:00
hsliu afe5c2692c feat: enhance serving functionality and add comprehensive examples
- Improve API server with better error handling and response formatting
- Enhance CLI with additional options for DiT stages and configuration
- Add comprehensive examples in examples/basic/ including:
  - API client with health checks and text generation
  - Docker setup and usage examples
  - Simple usage patterns for different scenarios
- Add utility scripts for model downloading and Docker setup
- Update documentation with implementation details and testing guidelines
- Fix configuration validation issues in OmniLLM
- Improve stage configuration handling for AR and DiT stages
- Add proper error handling and fallback mechanisms

Tested with Qwen3-0.6B model:
- Server starts successfully on port 8000
- Health and info endpoints working correctly
- Text generation with various parameters functioning
- API client examples working as expected
- CLI help and configuration options working properly
2025-09-26 15:47:55 +08:00
hsliu 51d2570464 feat: Complete vLLM-omni implementation with conda environment setup
- Add comprehensive PRD, architecture design, and test design documents
- Implement core modules: OmniLLM, AsyncOmniLLM, stage configurations
- Add DiT scheduler and cache manager for diffusion models
- Implement CLI integration with --omni flag support
- Add API server and plugin system for vLLM integration
- Create comprehensive test suite with fixtures
- Update dependencies to vLLM 0.10.2 and PyTorch 2.8.0
- Add conda environment setup and package installation
- Implement stage-based processing architecture
- Add multimodal output processing capabilities

This commit establishes the foundation for multi-modality models
inference and serving with non-autoregressive structures.
2025-09-25 09:10:54 +08:00
tzhouam 4b33044a47 Revert "executor, worker, model runner"
This reverts commit 67bd8a82db.
2025-09-18 13:09:36 +08:00
tzhouam 67bd8a82db executor, worker, model runner 2025-09-18 12:58:42 +08:00
hsliu c1da072744 del api md 2025-09-16 16:54:27 +08:00
hsliu e12761e76c update readme 2025-09-16 16:17:10 +08:00
hsliu 0c5caf6ab1 scheduler api design 2025-09-16 16:05:47 +08:00
hsliu 8dbe6db1be init request.py 2025-09-15 22:46:40 +08:00
Hongsheng Liu 6522c486ee Merge pull request #1 from hsliuustc0106/hsliu-dev-C
init the folder directories for vLLM-omni
2025-09-11 16:18:53 +08:00
hsliu dcb8868477 update config and entrypoints 2025-09-11 16:15:48 +08:00
hsliu 8e075d4917 update dirs 2025-09-11 15:56:28 +08:00
hsliu e07cb3fb10 update dirs 2025-09-11 15:43:43 +08:00
hsliu fff79e155a update engine init 2025-09-11 15:31:48 +08:00
hsliu 55c670df79 del configs 2025-09-11 14:35:57 +08:00
hsliu 1596376e49 del files 2025-09-11 14:35:05 +08:00
hsliu 154d9ca4ff Initial vLLM-omni repository structure
- Add complete directory structure for multimodal and non-autoregressive processing
- Include AsyncLLM, OmniEngine, and DiffusionEngine modules
- Add processors, schedulers, executors, and output processors
- Add API interfaces for Higress, Gradio, and ComfyUI
- Add configuration management and CLI interface
- Add comprehensive test structure and documentation
- Add pyproject.toml with dependencies and project configuration
- Add examples and documentation structure
2025-09-11 14:32:51 +08:00
Hongsheng Liu 089fa0ee95 Initial commit 2025-09-11 08:34:44 +08:00