mirror of
https://github.com/DS4SD/docling.git
synced 2025-07-26 20:14:47 +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:
|
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
|
@staticmethod
|
||||||
def download_models(
|
def download_models(
|
||||||
repo_id: str,
|
repo_id: str,
|
||||||
|
Loading…
Reference in New Issue
Block a user