MuseGlimmerInference#
- class rapidtools.models.MuseGlimmerInference(model_id: str | None = None, device: str = 'auto', load_in_4bit: bool = False, temperature: float = 0.4, max_tokens: int = 512, trust_remote_code: bool = False)[source]#
Bases:
HFVisionInferenceLocal inference with Meta’s open-weight Muse Glimmer vision-language model.
A thin specialisation of
HFVisionInferencethat defaults tometa-models/Muse-Glimmer-30Band checks that the installed Transformers release knows themuse_glimmerarchitecture.Example
>>> from rapidtools.models import MuseGlimmerInference >>> MuseGlimmerInference.list_available_models() ['meta-models/Muse-Glimmer-30B'] >>> model = MuseGlimmerInference(load_in_4bit=True) >>> out = model.run_inference('roof.jpg', 'Rate the roof damage 0-5.') >>> out.text '3'
Methods
list_available_modelsReturn the curated catalogue of checkpoints for this family.
run_batchProcess assets sequentially to avoid GPU out-of-memory crashes.
run_inferenceRun the model on one prompt and its image(s).
run_inference_batchRun the model on several prompt/image sets at once (left-padded).
search_hub_modelsList the most downloaded image-text-to-text checkpoints on the Hub.