HNTAI / services

Commit History

Add RMSNorm implementation to torch if missing for compatibility with HF models
a127f51

sachinchandrankallar commited on

Refactor text generation in routes_fastapi.py to return raw summaries instead of formatted markdown. Remove unnecessary markdown processing functions and streamline summary handling, enhancing performance and clarity in the output structure.
6aa6b6a

sachinchandrankallar commited on

Enhance caching behavior in text generation processes across multiple files. Update patient_summary_agent.py and routes_fastapi.py to ensure proper dynamic cache handling, preventing stale cache issues during single generations. Modify model_loader_spaces.py and unified_model_manager.py to explicitly manage cache settings based on model capabilities, improving overall generation reliability. Update binary files in __pycache__ directories.
6202dd0

sachinchandrankallar commited on

Refactor memory management and logging in routes_fastapi.py to enhance monitoring and prevent leaks. Introduce helper functions for safe logging and streamline text generation processes. Update cleanup_memory function to provide detailed memory usage metrics and warnings for high usage scenarios, improving overall performance and reliability.
83603a0

sachinchandrankallar commited on

Update requirements to pin transformers version and modify caching behavior for OpenVINO models. Adjust logic in routes_fastapi.py to disable cache for compatibility with newer transformers, ensuring stability in model generation processes.
16be7d2

sachinchandrankallar commited on

Revert "change routes_fastapi.py to use unifiedmodel loader for everywhere"
29a03e3

sachinchandrankallar commited on

change routes_fastapi.py to use unifiedmodel loader for everywhere
c6110a9

sachinchandrankallar commited on

Refactor text generation logic to utilize unified model manager and improve model loading and configuration
bc359db

sachinchandrankallar commited on

Enhance caching and chunking mechanisms in PatientSummarizerAgent for improved performance and reliability
38e2f33

sachinchandrankallar commited on

Refactor caching configuration in OpenVinoPipeline to allow models to manage their own caching behavior, improving compatibility and flexibility.
be33ded

sachinchandrankallar commited on

Revert "Enhance error logging in model generation and pipeline handling to improve debugging capabilities for DynamicCache and GGUF wrapper failures."
1666dba

sachinchandrankallar commited on

Enhance error logging in model generation and pipeline handling to improve debugging capabilities for DynamicCache and GGUF wrapper failures.
7f933a5

sachinchandrankallar commited on

Refactor text generation handling in OpenVinoPipeline to prioritize max_new_tokens over max_length, ensuring proper token management for causal models.
871e862

sachinchandrankallar commited on

Update caching behavior in model configuration to use None for use_cache, allowing the model to manage caching dynamically.
12df82a

sachinchandrankallar commited on

Refactor caching behavior in model configuration and pipeline to prevent DynamicCache errors. Set use_cache to None for model's default handling and update related settings in TransformersModel generation parameters.
2b5dd8c

sachinchandrankallar commited on

Add cache configuration and max length handling in OpenVinoPipeline
b92b395

sachinchandrankallar commited on

Revert "Enhance model configuration and unified model manager to improve performance. Update max_length and max_new_tokens for consistency, and explicitly disable cache to prevent DynamicCache errors. Add logger import in FastAPI routes for better logging capabilities."
6303241

sachinchandrankallar commited on

Enhance model configuration and unified model manager to improve performance. Update max_length and max_new_tokens for consistency, and explicitly disable cache to prevent DynamicCache errors. Add logger import in FastAPI routes for better logging capabilities.
28d1689

sachinchandrankallar commited on

Implement Hugging Face Spaces configuration and memory management utilities. Enhance model loading and cleanup processes, enabling optimized deployment on HF Spaces. Update memory optimization settings and model configurations for improved performance and resource management.
b190ecb

sachinchandrankallar commited on

Refactor patient summary generation to standardize custom prompt formatting. Update logic to ensure consistent structure across different modes, enhancing clarity and usability in generating comprehensive summaries. Adjust context handling to align with expected input formats for summarization models.
bcaa540

sachinchandrankallar commited on

Enhance patient summary generation by introducing support for custom prompts. Modify the processing logic to append visit data when a custom prompt is provided, improving flexibility and user experience in generating patient summaries. Update related sections to ensure consistent handling of prompts across different modes.
7be0e14

sachinchandrankallar commited on

Refactor patient summary generation to support a flexible structure, allowing for comprehensive summaries without enforcing fixed sections. Update related methods and prompts to enhance clarity and usability. Improve error handling and logging for summary generation processes, ensuring better performance and user experience.
2fb6319

sachinchandrankallar commited on

Remove obsolete documentation and test files related to GGUF operations, streaming fixes, and device parameter handling. This cleanup enhances project maintainability by eliminating unused code and files that are no longer relevant to the current implementation.
8012840

sachinchandrankallar commited on

Enhance patient summary generation with optimized parallel processing and intelligent chunking for large datasets. Introduce extended timeout configurations for complex cases, improving error handling and logging. Update API endpoints for large data processing and streaming, ensuring better performance and user experience. Refactor model loading to support OpenVINO and standard transformers with improved fallback strategies.
992b8bf

sachinchandrankallar commited on

Refactor model management by replacing the legacy model manager with a unified model manager across the application. Update imports and method calls to ensure compatibility with the new structure. Enhance error handling and logging for model loading processes, improving overall performance and maintainability.
416c047

sachinchandrankallar commited on

Refactor summarizer pipeline creation and enhance model loading for HF Spaces compatibility. Introduce a unified approach for model management, including new user models endpoint and improved error handling. Update model configurations and logging for better monitoring during model loading processes.
a5e6a2d

sachinchandrankallar commited on

Implement global exception handling and memory-aware logging across the application. Introduce logging enhancements in the AI service to capture memory snapshots during errors and key operations. Update middleware for request/response logging and improve model loading with detailed progress updates. Refactor patient summary generation to include concise logging for each step, ensuring better monitoring and error handling.
117f00b

sachinchandrankallar commited on

Remove 'Connection: keep-alive' header from event-stream response in patient summary generation. Update binary cache files for model configurations and loaders.
618340b

sachinchandrankallar commited on

Enhance GGUF model loading and generation process with improved progress updates and logging. Updated job status messages to include visual indicators for different stages of model loading and text generation. Streamlined the use of extended streaming for all requests to prevent timeout issues, ensuring a more responsive user experience.
8a71d89

sachinchandrankallar commited on

Refactor GGUF model handling for HF Spaces compatibility. Adjusted timeouts for GGUF operations, introduced an extended SSE generator for long-running tasks, and optimized model loading with environment checks. Enhanced logging for job status and progress updates.
310522b

sachinchandrankallar commited on

Enhance SSE generator with debug logging and improved responsiveness. Added debug statements for job status and completion, reduced sleep duration for more frequent updates, and updated CORS headers for API responses.
5493e02

sachinchandrankallar commited on

Update application logs and model loading mechanisms; enhance error handling for Transformers models. Adjusted GGUF model path for improved loading and added new API routes for performance metrics. Cleaned up binary cache files and improved logging for model initialization and processing steps.
2d40a5d

sachinchandrankallar commited on

Remove __pycache__ from tracking and update .gitignore
3894956

sachinchandrankallar commited on

Enhanced patient summary generation with robust data processing and flexible key matching. Introduced new API endpoints for performance metrics and cache management. Improved logging for better traceability during data handling and model generation.
511a880

sachinchandrankallar commited on

Enhanced EHR data processing with robust key matching and error handling. Updated context window settings for model loading to 8192. Added new function for improved patient record processing.
92034ed

sachinchandrankallar commited on

token limit set to 8192 and changed the section to 500 tokens each
353c355

sachinchandrankallar commited on

`Added memory monitoring and cleanup features to model loading and generation pipelines. Updated model manager to track memory usage and perform periodic cleanup. Added API endpoints for monitoring memory status and performance metrics.`
736ac0d

sachinchandrankallar commited on