remove not-needed function

Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
Michele Dolfi 2025-06-01 21:13:54 +02:00
parent 7f6df727e3
commit ffb7f071c3

View File

@ -6,16 +6,6 @@ _log = logging.getLogger(__name__)
class HuggingFaceVlmModel:
@staticmethod
def map_device_to_cpu_if_mlx(device: str) -> str:
if device == "mps":
_log.warning(
"Mapping mlx to cpu for AutoModelForCausalLM, use MLX framework!"
)
return "cpu"
return device
@staticmethod
def download_models(
repo_id: str,