Archived
Protect Spark probe artifacts through promotion failures
This commit is contained in:
1 parent
acd256ba25
commit
50b60078ab
3 files changed
+87
-8
No files matched your search
@@ -88,7 +88,8 @@ def candidate_server(run, candidate, common, log_path):
|
||||
url = f"http://127.0.0.1:{port}"
|
||||
command = [run["radiance"], "--model", candidate["model"], *common,
|
||||
"--host", "127.0.0.1", "--port", str(port), "--served-model-name", model]
|
||||
with log_path.open("w") as log:
|
||||
# Never truncate a prior artifact or follow a symlink to a model/input.
|
||||
with log_path.open("x") as log:
|
||||
env = os.environ.copy()
|
||||
env.pop("HF_TOKEN", None)
|
||||
proc = subprocess.Popen(command, env=env, stdout=log, stderr=subprocess.STDOUT)
|
||||
|
||||
Reference in new issue
Block a user