Skip to content

Commit

Permalink
[Bugfix] enable_migration and enable_defrag cannot be set to False (#52)
Browse files Browse the repository at this point in the history
  • Loading branch information
KuilongCui authored Oct 12, 2024
1 parent fbc55ae commit 7097e70
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions llumnix/config/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@
# MIGRATION CONFIGURATION
# -----------------------------------------------------------------------------
# Enable migrate requests between instances
_C.MANAGER.ENABLE_MIGRATION = True
_C.MANAGER.ENABLE_MIGRATION = False
# Pair migration frequency
_C.MANAGER.PAIR_MIGRATION_FREQUENCY = 1
# Pair migration policy
Expand All @@ -92,7 +92,7 @@
# Request migration policy
_C.MANAGER.REQUEST_MIGRATION_POLICY = 'SJF'
# Enable defragmentation through migration based on virtual usage
_C.MANAGER.ENABLE_DEFRAG = True
_C.MANAGER.ENABLE_DEFRAG = False
# Drop migration if the number of stages > max_stages
_C.MANAGER.MAX_STAGES = 3
# If the number of remain blocks < last_stage_max_blocks, do last stage migration
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def get_num_migrate_out(self):

def init_manager():
try:
engine_manager_args = EngineManagerArgs(migration_backend="rpc")
engine_manager_args = EngineManagerArgs(migration_backend="rpc", enable_migration=True)
engine_manager_args.log_instance_info = False
engine_manager = LLMEngineManager.from_args(engine_manager_args, None)
except ValueError:
Expand Down

0 comments on commit 7097e70

Please sign in to comment.