Skip to content

fix free cache in MPEngine branch #3670

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 44 commits into
base: main
Choose a base branch
from

Conversation

JimyMa
Copy link
Contributor

@JimyMa JimyMa commented Jun 25, 2025

  1. send free signal in decode engine for release cache immediately when migration done
  2. a series of fault tolerance

@lvhan028 lvhan028 requested a review from grimoire June 26, 2025 13:12
@grimoire
Copy link
Collaborator

grimoire commented Jul 2, 2025

Please solve the comflicts

from lmdeploy.utils import get_logger

logger = get_logger('lmdeploy')

if TYPE_CHECKING:
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need this branch?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Here, creating a branch and using TYPE_CHECKING to import the Engine module avoids circular references while still enabling IDE highlighting and navigation.

Copy link
Collaborator

@grimoire grimoire left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants