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
- Xet hash:
- 73ae7d8153aa1084024be2ce357d5c75e467579b1ee8fd929fcdcf30aaf324c7
- Size of remote file:
- 631 MB
- SHA256:
- 3dd26ac59ae5f62a586d40070e7beeda16ba66847146c5314c6b76daf733ea3f
·
Xet efficiently stores Large Files inside Git, intelligently splitting files into unique chunks and accelerating uploads and downloads. More info.