Hugging Face's logo Hugging Face
  • Models
  • Datasets
  • Spaces
  • Buckets new
  • Docs
  • Enterprise
  • Pricing
    • Website
      • Tasks
      • HuggingChat
      • Collections
      • Languages
      • Organizations
    • Community
      • Blog
      • Posts
      • Daily Papers
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

waltgrace
/
mlx-expert-sniper

Image-Text-to-Text
MLX
English
apple-silicon
Mixture of Experts
mixture-of-experts
vision-language
gemma
falcon-perception
inference
Model card Files Files and versions
xet
Community

Instructions to use waltgrace/mlx-expert-sniper with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use waltgrace/mlx-expert-sniper 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("waltgrace/mlx-expert-sniper")
    config = load_config("waltgrace/mlx-expert-sniper")
    
    # 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
mlx-expert-sniper / mac_tensor
164 kB
Ctrl+K
Ctrl+K
  • 2 contributors
History: 1 commit
waltgrace's picture
waltgrace
initial release: deploy code + split scripts
0e41b61 verified about 2 months ago
  • static
    initial release: deploy code + split scripts about 2 months ago
  • __init__.py
    89 Bytes
    initial release: deploy code + split scripts about 2 months ago
  • __main__.py
    40 Bytes
    initial release: deploy code + split scripts about 2 months ago
  • agent.py
    33.9 kB
    initial release: deploy code + split scripts about 2 months ago
  • bench.py
    9.02 kB
    initial release: deploy code + split scripts about 2 months ago
  • cli.py
    31.3 kB
    initial release: deploy code + split scripts about 2 months ago
  • falcon_perception.py
    9.76 kB
    initial release: deploy code + split scripts about 2 months ago
  • join.py
    6.62 kB
    initial release: deploy code + split scripts about 2 months ago
  • server.py
    26.1 kB
    initial release: deploy code + split scripts about 2 months ago
  • swarm.py
    5.63 kB
    initial release: deploy code + split scripts about 2 months ago
  • vision_engine.py
    14.8 kB
    initial release: deploy code + split scripts about 2 months ago