pymllm.service.models_hub

Attributes

Functions

session_qwen3(fp)

create_session(model_name)

download_mllm_model(model_name[, model_dir])

Download a model from the model hub.

get_download_model_path(model_name_or_model_path)

Module Contents

pymllm.service.models_hub.session_qwen3(fp)
Parameters:

fp (str)

Return type:

pymllm.ffi.Session

pymllm.service.models_hub.MODEL_HUB_LOOKUP_TABLE
pymllm.service.models_hub.create_session(model_name)
Parameters:

model_name (str)

Return type:

Tuple[str, pymllm.ffi.Session]

pymllm.service.models_hub.download_mllm_model(model_name, model_dir=None)

Download a model from the model hub.

Parameters:
  • model_name (str) – Name of the model to download

  • model_dir (str) – Directory to save the model

Returns:

Path to the downloaded model

Raises:

ValueError – If the model name is not supported

Return type:

str

pymllm.service.models_hub.get_download_model_path(model_name_or_model_path)
Parameters:

model_name_or_model_path (str)