Skip to content

Commit ff8be7f

Browse files
authored
Merge pull request #29 from transformerlab/fix/lab-fsspec-async
Fixes related to fsspec async
2 parents 7777dcb + 7e5a2ca commit ff8be7f

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

fastchat/serve/base_model_worker.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ def __init__(
5858
self.heart_beat_thread = None
5959

6060
if logger is None:
61-
GLOBAL_LOG_PATH = get_global_log_path()
61+
GLOBAL_LOG_PATH = asyncio.run(get_global_log_path())
6262
if GLOBAL_LOG_PATH is None or GLOBAL_LOG_PATH == "":
6363
log_filename = f"model_worker_{worker_id}.log"
6464
else:

fastchat/serve/model_worker.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
A model worker that executes the model.
33
"""
44
import argparse
5+
import asyncio
56
import base64
67
import gc
78
import json
@@ -33,7 +34,7 @@
3334
from lab.dirs import get_global_log_path
3435

3536
worker_id = str(uuid.uuid4())[:8]
36-
GLOBAL_LOG_PATH = get_global_log_path()
37+
GLOBAL_LOG_PATH = asyncio.run(get_global_log_path())
3738
if GLOBAL_LOG_PATH is None or GLOBAL_LOG_PATH == "":
3839
log_filename = f"model_worker_{worker_id}.log"
3940
else:

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ build-backend = "setuptools.build_meta"
44

55
[project]
66
name = "transformerlab-inference"
7-
version = "0.2.51"
7+
version = "0.2.52"
88
description = "An open platform for training, serving, and evaluating large language model based chatbots."
99
readme = "README.md"
1010
requires-python = ">=3.8"

0 commit comments

Comments
 (0)