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
      • Hardware
      • Learn
      • Discord
      • Forum
      • GitHub
    • Solutions
      • Team & Enterprise
      • Hugging Face PRO
      • Enterprise Support
      • Inference Providers
      • Inference Endpoints
      • Storage Buckets

  • Log In
  • Sign Up

mlx-community
/
llm-jp-4-vl-9b-mlx-4bit

Image-Text-to-Text
MLX
Safetensors
English
Japanese
llmjpvl
conversational
custom_code
4-bit precision
Model card Files Files and versions
xet
Community

Instructions to use mlx-community/llm-jp-4-vl-9b-mlx-4bit with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • MLX

    How to use mlx-community/llm-jp-4-vl-9b-mlx-4bit 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/llm-jp-4-vl-9b-mlx-4bit")
    config = load_config("mlx-community/llm-jp-4-vl-9b-mlx-4bit")
    
    # 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
llm-jp-4-vl-9b-mlx-4bit
5.69 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 5 commits
aipib's picture
aipib
Update README.md
9c056d4 verified 3 days ago
  • .gitattributes
    1.57 kB
    Upload folder using huggingface_hub 5 days ago
  • README.md
    798 Bytes
    Update README.md 3 days ago
  • chat_template.jinja
    1.82 kB
    Upload folder using huggingface_hub 5 days ago
  • config.json
    2.43 kB
    Upload folder using huggingface_hub 5 days ago
  • configuration_llmjpvl.py
    4.69 kB
    Upload folder using huggingface_hub 5 days ago
  • constants.py
    2.81 kB
    Upload folder using huggingface_hub 5 days ago
  • generation_config.json
    102 Bytes
    Upload folder using huggingface_hub 5 days ago
  • model-00001-of-00002.safetensors
    5.21 GB
    xet
    Upload folder using huggingface_hub 5 days ago
  • model-00002-of-00002.safetensors
    473 MB
    xet
    Upload folder using huggingface_hub 5 days ago
  • model.safetensors.index.json
    125 kB
    Upload folder using huggingface_hub 5 days ago
  • modeling_llmjpvl.py
    16.1 kB
    Upload folder using huggingface_hub 5 days ago
  • preprocessor_config.json
    395 Bytes
    Upload folder using huggingface_hub 5 days ago
  • processing_llmjpvl.py
    10 kB
    Upload folder using huggingface_hub 5 days ago
  • processor_config.json
    735 Bytes
    Upload folder using huggingface_hub 5 days ago
  • special_tokens_map.json
    1 kB
    Upload folder using huggingface_hub 5 days ago
  • tokenizer.json
    12.9 MB
    xet
    Upload folder using huggingface_hub 5 days ago
  • tokenizer_config.json
    650 Bytes
    Upload folder using huggingface_hub 5 days ago