Skip to content

Conversation

@HubertZhang
Copy link
Collaborator

No description provided.

@HubertZhang HubertZhang requested review from blahgeek and specture724 and removed request for blahgeek January 20, 2026 10:03
Comment on lines 285 to 290
if use_inplace_pin_memory is None:
env_str = os.getenv("PS_USE_INPLACE_PIN_MEMORY", "true")
use_inplace_pin_memory = env_str.lower() in ["true", "1", "yes", "y"]
logger.info(
f"[rank{self._rank}] use_inplace_pin_memory set to {use_inplace_pin_memory} by environment variable PS_USE_INPLACE_PIN_MEMORY={env_str}"
)
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think we should properly add this option in RegisterRequest struct. Mixing function arguments and environment variables is not a good practice.

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Moved to #80

# We assume files in /dev/shm/ are temporary files. So it's safe to remove them after loading.
os.remove(file_path)
if not metas:
# TODO: should we still return this buffer?
Copy link
Collaborator

Choose a reason for hiding this comment

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

Yeah skipping this buffer seems to be a better idea, to prevent future bugs. (not a hard requirement

@blahgeek blahgeek merged commit f6910d6 into MoonshotAI:main Jan 20, 2026
2 checks passed
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