Image-Text-to-Text
MLX
Safetensors
English
molmo3
mlx-vlm
apple-silicon
quantized
molmo
multimodal
grounding
spatial
conversational
custom_code
8-bit precision
Run this model with HF Jobs
Run VisualInference/Molmo3-4B-MLX-8bit on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.
Paste one of these prompts into your coding agent:
Fine-tune on my dataset
Use HF Jobs to fine-tune https://huggingface.co/VisualInference/Molmo3-4B-MLX-8bit. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.
Run batch inference
Use HF Jobs to run batch inference with https://huggingface.co/VisualInference/Molmo3-4B-MLX-8bit on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
Evaluate on a benchmark
Use HF Jobs to evaluate https://huggingface.co/VisualInference/Molmo3-4B-MLX-8bit. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.
Instructions to use VisualInference/Molmo3-4B-MLX-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use VisualInference/Molmo3-4B-MLX-8bit with MLX:
# Make sure mlx-vlm is installed # pip install --upgrade mlx-vlm from mlx_vlm import load, generate from mlx_vlm.prompt_utils import apply_chat_template from mlx_vlm.utils import load_config # Load the model model, processor = load("VisualInference/Molmo3-4B-MLX-8bit") config = load_config("VisualInference/Molmo3-4B-MLX-8bit") # Prepare input image = ["http://images.cocodataset.org/val2017/000000039769.jpg"] prompt = "Describe this image." # Apply chat template formatted_prompt = apply_chat_template( processor, config, prompt, num_images=1 ) # Generate output output = generate(model, processor, formatted_prompt, image) print(output) - Notebooks
- Google Colab
- Kaggle
- Local Apps Settings
- LM Studio
- Atomic Chat
Download config.json from VisualInference/Molmo3-4B-MLX-8bit: direct link, hf CLI and curl.
- Browser
- Download file 3.49 kB
-
https://huggingface.co/VisualInference/Molmo3-4B-MLX-8bit/resolve/main/config.json
- Command line
-
hf download hf://VisualInference/Molmo3-4B-MLX-8bit/config.json
-
curl -L -o config.json https://huggingface.co/VisualInference/Molmo3-4B-MLX-8bit/resolve/main/config.json
3.49 kB
| { | |
| "adapter_config": { | |
| "attention_bias": true, | |
| "attention_dropout": 0.0, | |
| "head_dim": 72, | |
| "hidden_act": "silu", | |
| "hidden_size": 1152, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 9728, | |
| "mlp_bias": false, | |
| "model_type": "molmo3_adapter", | |
| "num_attention_heads": 16, | |
| "num_key_value_heads": 16, | |
| "num_pooling_positions": 9, | |
| "text_hidden_size": 2560, | |
| "vision_feature_layer": [ | |
| 24, | |
| 18 | |
| ] | |
| }, | |
| "architectures": [ | |
| "Molmo3ForConditionalGeneration" | |
| ], | |
| "auto_map": { | |
| "AutoConfig": "configuration_molmo3.Molmo3Config", | |
| "AutoModelForImageTextToText": "modeling_molmo3.Molmo3ForConditionalGeneration" | |
| }, | |
| "center_patch_id": 151954, | |
| "corresponding_patch_id": 151955, | |
| "do_sample": false, | |
| "dtype": "bfloat16", | |
| "eos_token_id": 151645, | |
| "frame_end_token_id": 151944, | |
| "frame_start_token_id": 151943, | |
| "generation_config": { | |
| "do_sample": false, | |
| "eos_token_id": 151645, | |
| "pad_token_id": 151643, | |
| "transformers_version": "5.2.0", | |
| "max_new_tokens": 2048 | |
| }, | |
| "image_col_id": 151939, | |
| "image_end_token_id": 151937, | |
| "image_low_res_id": 151942, | |
| "image_patch_id": 151938, | |
| "image_start_token_id": 151936, | |
| "initializer_range": 0.02, | |
| "low_res_image_start_token_id": 151940, | |
| "mask_diffusion_steps": 2, | |
| "model_type": "molmo3", | |
| "patch_position_embedding_size": 512, | |
| "point_loc_id": 151952, | |
| "point_patch_id": 151950, | |
| "point_query_dims": [ | |
| 512, | |
| 512, | |
| 32 | |
| ], | |
| "point_subpatch_id": 151951, | |
| "pointer_rope_theta": 50000.0, | |
| "quantization": { | |
| "group_size": 64, | |
| "bits": 8, | |
| "mode": "affine" | |
| }, | |
| "quantization_config": { | |
| "group_size": 64, | |
| "bits": 8, | |
| "mode": "affine" | |
| }, | |
| "seg_mask_id": 151953, | |
| "subpatch_conv_kernel": 3, | |
| "subpatch_hidden_size": 512, | |
| "subpatch_location_size": 4, | |
| "text_config": { | |
| "attention_bias": false, | |
| "attention_dropout": 0.0, | |
| "eos_token_id": 151645, | |
| "head_dim": 128, | |
| "hidden_act": "silu", | |
| "hidden_size": 2560, | |
| "initializer_range": 0.02, | |
| "intermediate_size": 9728, | |
| "max_position_embeddings": 16384, | |
| "model_type": "molmo3_text", | |
| "num_attention_heads": 32, | |
| "num_hidden_layers": 36, | |
| "num_key_value_heads": 8, | |
| "pad_token_id": 151643, | |
| "qk_norm_type": "qwen3", | |
| "rms_norm_eps": 1e-06, | |
| "rope_parameters": { | |
| "rope_theta": 5000000.0, | |
| "rope_type": "default" | |
| }, | |
| "tie_word_embeddings": false, | |
| "use_cache": true, | |
| "vocab_size": 152064 | |
| }, | |
| "tie_word_embeddings": false, | |
| "transformers_version": "5.25.0.dev0", | |
| "vision_config": { | |
| "attention_bias": true, | |
| "attention_dropout": 0.0, | |
| "head_dim": 72, | |
| "hidden_act": "gelu_pytorch_tanh", | |
| "hidden_size": 1152, | |
| "image_size": [ | |
| 378, | |
| 378 | |
| ], | |
| "initializer_range": 0.02, | |
| "intermediate_size": 4304, | |
| "layer_norm_eps": 1e-06, | |
| "model_type": "molmo3_vision", | |
| "num_attention_heads": 16, | |
| "num_channels": 3, | |
| "num_hidden_layers": 25, | |
| "num_key_value_heads": 16, | |
| "num_position_embeddings": 729, | |
| "patch_size": 14 | |
| } | |
| } |