Image-Text-to-Text
MLX
Core ML
Safetensors
mobile-o
multimodal
unified-model
ios
on-device
mobile
edge-ai
Instructions to use Amshaker/Mobile-O-0.5B-iOS with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- MLX
How to use Amshaker/Mobile-O-0.5B-iOS 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("Amshaker/Mobile-O-0.5B-iOS") config = load_config("Amshaker/Mobile-O-0.5B-iOS") # 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
File size: 982 Bytes
56828ca | 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 | {
"_class_name": "CustomScheduler",
"_diffusers_version": "0.32.0.dev0",
"algorithm_type": "custom_v1",
"beta_end": 0.02,
"beta_schedule": "linear",
"beta_start": 0.0001,
"dynamic_thresholding_ratio": 0.995,
"euler_at_final": false,
"final_sigmas_type": "zero",
"flow_shift": 3.0,
"lambda_min_clipped": -1000000.0,
"lower_order_final": true,
"num_train_timesteps": 1000,
"prediction_type": "flow_prediction",
"rescale_betas_zero_snr": false,
"sample_max_value": 1.0,
"solver_order": 3,
"solver_type": "multistep",
"steps_offset": 0,
"thresholding": false,
"timestep_spacing": "uniform_tau",
"trained_betas": null,
"use_beta_sigmas": false,
"use_exponential_sigmas": false,
"use_flow_sigmas": true,
"use_karras_sigmas": false,
"use_lu_lambdas": false,
"apply_flow_shift": false,
"variance_type": null,
"update_clamp_factor": 2.5,
"sigma_max": 1.0,
"sigma_min": 0.002,
"karras_rho": 7.0,
"use_heun_final_steps": 3
}
|