Instructions to use mlx-community/deepseek-vl-1.3b-chat-8bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mlx-community/deepseek-vl-1.3b-chat-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("mlx-community/deepseek-vl-1.3b-chat-8bit") config = load_config("mlx-community/deepseek-vl-1.3b-chat-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 mlx-community/deepseek-vl-1.3b-chat-8bit: direct link, hf CLI and curl.
- Browser
- Download file 1.35 kB
-
https://huggingface.co/mlx-community/deepseek-vl-1.3b-chat-8bit/resolve/main/config.json
- Command line
-
hf download hf://mlx-community/deepseek-vl-1.3b-chat-8bit/config.json
-
curl -L -o config.json https://huggingface.co/mlx-community/deepseek-vl-1.3b-chat-8bit/resolve/main/config.json
1.35 kB
| { | |
| "aligner_config": { | |
| "cls": "MlpProjector", | |
| "model_type": "aligner", | |
| "params": { | |
| "depth": 2, | |
| "input_dim": 1024, | |
| "n_embed": 2048, | |
| "projector_type": "mlp_gelu" | |
| } | |
| }, | |
| "architectures": [ | |
| "MultiModalityCausalLM" | |
| ], | |
| "text_config": { | |
| "hidden_size": 2048, | |
| "intermediate_size": 5632, | |
| "max_position_embeddings": 16384, | |
| "model_type": "llama", | |
| "num_attention_heads": 16, | |
| "num_hidden_layers": 24, | |
| "num_key_value_heads": 16, | |
| "torch_dtype": "float16", | |
| "vocab_size": 102400 | |
| }, | |
| "model_type": "multi_modality", | |
| "quantization": { | |
| "group_size": 64, | |
| "bits": 8 | |
| }, | |
| "torch_dtype": "float16", | |
| "transformers_version": "4.38.2", | |
| "vision_config": { | |
| "cls": "CLIPVisionTower", | |
| "model_type": "vision", | |
| "params": { | |
| "image_size": 384, | |
| "model_name": "siglip_large_patch16_384", | |
| "pixel_mean": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "pixel_std": [ | |
| 0.5, | |
| 0.5, | |
| 0.5 | |
| ], | |
| "select_feature": "same", | |
| "select_layer": -1 | |
| }, | |
| "intermediate_size": 4096 | |
| } | |
| } |