Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ dependencies = [
"pydantic",
"protobuf==6.31.1",
"dijkstar==2.6.0",
"huggingface-hub",
"lattica==1.0.3",
]

Expand Down
10 changes: 3 additions & 7 deletions src/backend/server/static_config.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
import json

from huggingface_hub import hf_hub_download
from mlx_lm.utils import get_model_path, load_config

from scheduling.model_info import ModelInfo

Expand Down Expand Up @@ -42,10 +40,8 @@


def get_model_info(model_name):
config_path = hf_hub_download(repo_id=model_name, filename="config.json")
with open(config_path, "r") as f:
config = json.load(f)
f.close()
model_path = get_model_path(model_name)[0]
config = load_config(model_path)

# get quant method
quant_method = config.get("quant_method", None)
Expand Down