Instructions to use mlx-community/CodeFormulaV2-mlx-bf16 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use mlx-community/CodeFormulaV2-mlx-bf16 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/CodeFormulaV2-mlx-bf16") config = load_config("mlx-community/CodeFormulaV2-mlx-bf16") # 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
- LM Studio
File size: 975 Bytes
f29c446 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 | {
"<row_1_col_1>": 100352,
"<row_1_col_2>": 100353,
"<row_1_col_3>": 100354,
"<row_1_col_4>": 100355,
"<row_1_col_5>": 100356,
"<row_1_col_6>": 100357,
"<row_2_col_1>": 100358,
"<row_2_col_2>": 100359,
"<row_2_col_3>": 100360,
"<row_2_col_4>": 100361,
"<row_2_col_5>": 100362,
"<row_2_col_6>": 100363,
"<row_3_col_1>": 100364,
"<row_3_col_2>": 100365,
"<row_3_col_3>": 100366,
"<row_3_col_4>": 100367,
"<row_3_col_5>": 100368,
"<row_3_col_6>": 100369,
"<row_4_col_1>": 100370,
"<row_4_col_2>": 100371,
"<row_4_col_3>": 100372,
"<row_4_col_4>": 100373,
"<row_4_col_5>": 100374,
"<row_4_col_6>": 100375,
"<row_5_col_1>": 100376,
"<row_5_col_2>": 100377,
"<row_5_col_3>": 100378,
"<row_5_col_4>": 100379,
"<row_5_col_5>": 100380,
"<row_5_col_6>": 100381,
"<row_6_col_1>": 100382,
"<row_6_col_2>": 100383,
"<row_6_col_3>": 100384,
"<row_6_col_4>": 100385,
"<row_6_col_5>": 100386,
"<row_6_col_6>": 100387
}
|