mle-kit-mcp 0.0.3__py3-none-any.whl → 0.0.4__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- mle_kit_mcp/tools/remote_gpu.py +3 -3
- {mle_kit_mcp-0.0.3.dist-info → mle_kit_mcp-0.0.4.dist-info}/METADATA +1 -1
- {mle_kit_mcp-0.0.3.dist-info → mle_kit_mcp-0.0.4.dist-info}/RECORD +7 -7
- {mle_kit_mcp-0.0.3.dist-info → mle_kit_mcp-0.0.4.dist-info}/WHEEL +0 -0
- {mle_kit_mcp-0.0.3.dist-info → mle_kit_mcp-0.0.4.dist-info}/entry_points.txt +0 -0
- {mle_kit_mcp-0.0.3.dist-info → mle_kit_mcp-0.0.4.dist-info}/licenses/LICENSE +0 -0
- {mle_kit_mcp-0.0.3.dist-info → mle_kit_mcp-0.0.4.dist-info}/top_level.txt +0 -0
mle_kit_mcp/tools/remote_gpu.py
CHANGED
@@ -94,7 +94,7 @@ def get_offers(vast_sdk: VastAI, gpu_name: str) -> List[int]:
|
|
94
94
|
|
95
95
|
|
96
96
|
def run_command(
|
97
|
-
instance: InstanceInfo, command: str, timeout: int = 60
|
97
|
+
instance: InstanceInfo, command: str, timeout: int = 60, raise_exc: bool = True
|
98
98
|
) -> subprocess.CompletedProcess[str]:
|
99
99
|
cmd = [
|
100
100
|
"ssh",
|
@@ -117,7 +117,7 @@ def run_command(
|
|
117
117
|
]
|
118
118
|
try:
|
119
119
|
result = subprocess.run(cmd, capture_output=True, text=True, timeout=timeout)
|
120
|
-
if result.returncode != 0:
|
120
|
+
if result.returncode != 0 and raise_exc:
|
121
121
|
raise Exception(
|
122
122
|
f"Error running command: {command}; "
|
123
123
|
f"Output: {result.stdout}; "
|
@@ -301,7 +301,7 @@ def remote_bash(command: str, timeout: Optional[int] = 60) -> str:
|
|
301
301
|
init_all()
|
302
302
|
assert _instance_info
|
303
303
|
assert timeout
|
304
|
-
result = run_command(_instance_info, command, timeout=timeout)
|
304
|
+
result = run_command(_instance_info, command, timeout=timeout, raise_exc=False)
|
305
305
|
output = ("STDOUT: " + result.stdout + "\n") if result.stdout else ""
|
306
306
|
output += ("STDERR: " + result.stderr) if result.stderr else ""
|
307
307
|
return output.replace(VAST_AI_GREETING, "")
|
@@ -6,11 +6,11 @@ mle_kit_mcp/server.py,sha256=E9cXdKwVBASBzKyrZGHCTvj6BIMN-EbVSQZDFNg0YnE,1062
|
|
6
6
|
mle_kit_mcp/utils.py,sha256=wd7wSyddHRHOYdxmXw8uoAOBxVZOL2_vjNomss07inc,1654
|
7
7
|
mle_kit_mcp/tools/__init__.py,sha256=0aLl0gD-JteSvOs2PgVhbv0Wnh6fodFySgQWQvoI1xI,215
|
8
8
|
mle_kit_mcp/tools/bash.py,sha256=9IIcely_J_fvNPLdJvHFOL72OG3rVIpNC3MB5S36pJI,2460
|
9
|
-
mle_kit_mcp/tools/remote_gpu.py,sha256=
|
9
|
+
mle_kit_mcp/tools/remote_gpu.py,sha256=Rwy0vuPgBqZDonsJjhapbrBnw1dKViKUJonTC8AiPJE,11429
|
10
10
|
mle_kit_mcp/tools/text_editor.py,sha256=s9lPzqQWpZ2277f99TgMyKeOSTrv-PhX4HVtdXVeQ24,9228
|
11
|
-
mle_kit_mcp-0.0.
|
12
|
-
mle_kit_mcp-0.0.
|
13
|
-
mle_kit_mcp-0.0.
|
14
|
-
mle_kit_mcp-0.0.
|
15
|
-
mle_kit_mcp-0.0.
|
16
|
-
mle_kit_mcp-0.0.
|
11
|
+
mle_kit_mcp-0.0.4.dist-info/licenses/LICENSE,sha256=xx0jnfkXJvxRnG63LTGOxlggYnIysveWIZ6H3PNdCrQ,11357
|
12
|
+
mle_kit_mcp-0.0.4.dist-info/METADATA,sha256=-kG6R55hu0Ta3nyNMY87DLWETscN7rMnSelcIISh4SA,1126
|
13
|
+
mle_kit_mcp-0.0.4.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
14
|
+
mle_kit_mcp-0.0.4.dist-info/entry_points.txt,sha256=-iHSUVPN49jkBj1ySpc-P0rVF5-IPHw-KWNayNIiEsk,49
|
15
|
+
mle_kit_mcp-0.0.4.dist-info/top_level.txt,sha256=XeBtCq_CnVI0gh0Z_daZOLmGl5XPlkA8RgHaj5s5VQY,12
|
16
|
+
mle_kit_mcp-0.0.4.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|
File without changes
|