mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-25 19:44:34 +00:00
remove not-needed function
Signed-off-by: Michele Dolfi <dol@zurich.ibm.com>
This commit is contained in:
parent
7f6df727e3
commit
ffb7f071c3
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user