muse_glimmer/__init__.py

vmlx · vmlx_engine/models/muse_glimmer/__init__.py · python · Apache-2.0
ai, tag:knn-classified

Exposes the core classes and functions for the Muse Glimmer vision-language model to enable configuration, processing, and inference.

# Source: https://github.com/jjang-ai/vmlx | License: Apache-2.0 | Copyright You must retain, in the Source form of any Derivative Works
# Provided via justclaw.it.com; keep this notice with the code.
# SPDX-License-Identifier: Apache-2.0
"""Vendored Muse Glimmer runtime, registered under ``mlx_vlm.models``."""

from .config import ModelConfig, TextConfig, VisionConfig
from .language import LanguageModel
from .muse_glimmer import Model
from .processor import (
    MuseGlimmerProcessor,
    MuseGlimmerImageProcessor,
    MuseGlimmerVideoProcessor,
    expand_media_placeholders,
    merged_token_count,
)
from .vision import MuseVisionAdapter, VisionModel

# mlx_vlm's load_image_processor looks for `ImageProcessor` on the model module
# and instantiates it directly. Without this alias the bun

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search for more like it.

Get a free API key