AI Model Service Instance Management for Resource Optimization
Find Innovative SolutionsGenerate Solutions
Solution Overview
Problem
The existing AI development platforms face challenges in efficiently managing massive AI model services, leading to high machine resource requirements, low resource utilization, and performance issues due to complex network topologies and long initialization times in serverless solutions, which result in overtime online reasoning requests and increased reconstruction costs.
Innovation Solution
A method for managing AI development platforms that acquires calling information to determine the activity of AI model services, deleting instances and routing configurations based on predetermined conditions, thereby releasing resources and optimizing machine resource utilization without requiring a service grid framework.
Engineering Contradictions & Design Principles
Engineering Contradiction Analysis
1Adaptability or versatility
If serverless solutions are used to provide AI model services, then deployment flexibility is improved, but initialization time increases causing overtime online reasoning requests
Solution Approach 1:
The system performs preliminary actions by pre-warming AI model services before they are actually needed. The monitoring module detects traffic patterns and triggers pre-warming of model instances in advance, so that when real requests arrive, the models are already initialized and ready to process requests immediately, eliminating initialization delays.
Solution Approach 2:
The system dynamically adjusts the state of AI model services between active and inactive based on real-time traffic monitoring. The management module activates model instances dynamically when traffic is detected and deactivates them when not needed, creating a dynamic balance between readiness and resource efficiency, rather than using static serverless deployment.
2Adaptability or versatility
If massive AI model services are deployed on the platform, then service coverage is improved, but machine resource requirements increase and resource utilization decreases
Solution Approach 1:
Instead of uniformly deploying all AI model services in a dormant state across the platform, the system applies local quality by selectively activating only those model instances that are needed based on local traffic conditions. The monitoring module identifies which specific models require activation, and the management module deploys them locally where needed, rather than maintaining a blanket deployment strategy.
Solution Approach 2:
The system discards inactive AI model instances when they are not needed and recovers them when traffic patterns indicate they will be needed again. The monitoring module tracks usage patterns, and when models are no longer required, their instances are discarded to free resources. When traffic indicates renewed need, the management module recovers the instances, creating a cyclical pattern of discarding and recovering resources.
3Quantity of substance
If AI model services are kept in inactive state to save resources, then resource utilization is improved, but online reasoning performance deteriorates due to initialization delays
Solution Approach 1:
The system performs preliminary warming actions on AI model instances before actual service requests arrive. The monitoring module detects incoming traffic patterns and triggers pre-initialization of model instances, so that when requests actually arrive, the models are already in an active, ready state, eliminating initialization delays and ensuring immediate processing capability.
Solution Approach 2:
The system implements feedback mechanisms where the monitoring module continuously observes traffic patterns and feeds this information back to the management module. Based on this feedback, the management module adjusts the activation state of model instances in real-time, ensuring that models are activated just in time to maintain high performance while avoiding unnecessary resource consumption during low-traffic periods.
Data Source
Figure 1~3
Figure 4~5
AI summary
A method and a system for management of an artificial intelligence development platform is provided. The artificial intelligence development platform is deployed with instances of a plurality of model services, and each of the model services is provided with one or more instances. The method includes: acquiring calling information of at least one model service; determining the activity of the at least one model service according to the calling information; and at least deleting all instances of the at least one model service in response to that the determined activity meets a first condition.