# -*- coding: utf-8; mode: tcl; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- vim:fenc=utf-8:ft=tcl:et:sw=4:ts=4:sts=4

PortSystem          1.0
PortGroup           python 1.0

name                py-mlx-vlm
version             0.7.4
revision            0
categories-append   llm science

license             MIT
maintainers         nomaintainer
platforms           {darwin any}
supported_archs     noarch

description         Inference and fine-tuning of Vision Language Models

long_description    ${python.rootname} is a package for inference and \
                    fine-tuning of Vision Language Models (VLMs) and \
                    Omni Models (VLMs with audio and video support) \
                    on your Mac using MLX.

homepage            https://github.com/Blaizzy/mlx-vlm

python.rootname     [string map {- _} ${python.rootname}]

python.versions     312 313 314

checksums           rmd160  759d24898b896f8c8941d6aa54c69c752682a7d5 \
                    sha256  a35ca38c5be3a061496cc9bb5b3ada20413ceda9317ec67ba0b0fff1c2885e04 \
                    size    2500846

if {${name} ne ${subport}} {
    depends_run-append \
                    port:py${python.version}-huggingface_hub \
                    port:py${python.version}-jinja2 \
                    port:py${python.version}-mlx \
                    port:py${python.version}-numpy \
                    port:py${python.version}-protobuf3 \
                    port:py${python.version}-sentencepiece \
                    port:py${python.version}-transformers \
                    port:py${python.version}-yaml 
}
