Skip to content

Commit

Permalink
this works in cloud
Browse files Browse the repository at this point in the history
  • Loading branch information
olegklimov authored and mitya52 committed Jun 11, 2024
1 parent ece1f89 commit fc3ab04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
4 changes: 2 additions & 2 deletions self_hosting_machinery/inference/stream_results.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def url_complain_doesnt_work():


def model_guid_allowed_characters(name):
return re.sub(r"[^a-zA-Z0-9_]", "_", name)
return re.sub(r"[^a-zA-Z0-9_\.]", "_", name)


def validate_description_dict(
Expand Down Expand Up @@ -242,7 +242,7 @@ def upload_result(
progress[original_batch[b]["id"]] = tmp
upload_dict["progress"] = progress
upload_dict["check_cancelled"] = [call["id"] for call in original_batch]
upload_dict["model_name"] = description_dict["model"]
upload_dict["model_name"] = description_dict["model"].replace("/vllm", "")
self.upload_q.put(copy.deepcopy(upload_dict))
if DEBUG_UPLOAD_NOT_SEPARATE_PROCESS:
_upload_results_loop(self.upload_q, self.cancelled_q)
Expand Down
1 change: 1 addition & 0 deletions self_hosting_machinery/scripts/first_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,3 +25,4 @@ def convert_old_configs():
convert_old_configs()
model_assigner = ModelAssigner()
assign_gpus_if_first_run_detected(model_assigner)
model_assigner.models_to_watchdog_configs() # removes deprecated models

0 comments on commit fc3ab04

Please sign in to comment.