MCPcopy Create free account
hub / github.com/ModelTC/LightX2V / from_file

Method from_file

lightx2v/disagg/mooncake.py:61–69  ·  view source on GitHub ↗
(file_path: str)

Source from the content-addressed store, hash-verified

59 env_metadata_server = os.getenv("MOONCAKE_METADATA_SERVER", "").strip()
60 if env_metadata_server:
61 cfg.metadata_server = env_metadata_server
62
63 env_protocol = os.getenv("MOONCAKE_PROTOCOL", "").strip()
64 if env_protocol:
65 cfg.protocol = env_protocol
66
67 env_device_name = os.getenv("MOONCAKE_DEVICE_NAME", "").strip()
68 if env_device_name:
69 cfg.device_name = env_device_name
70
71 # Keep session IDs and metadata endpoints stable on single-node runs.
72 # localhost may resolve to IPv6 on some hosts while peers use IPv4.

Callers 1

load_from_envMethod · 0.80

Calls 3

loadMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected