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

waleko
/
TikZ-llava-1.5-7b

Image-to-Text
Transformers
Safetensors
llava
image-text-to-text
Model card Files Files and versions
xet
Community
1

Instructions to use waleko/TikZ-llava-1.5-7b with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use waleko/TikZ-llava-1.5-7b with Transformers:

    # Use a pipeline as a high-level helper
    # Warning: Pipeline type "image-to-text" is no longer supported in transformers v5.
    # You must load the model directly (see below) or downgrade to v4.x with:
    # 'pip install "transformers<5.0.0'
    from transformers import pipeline
    
    pipe = pipeline("image-to-text", model="waleko/TikZ-llava-1.5-7b")
    # Load model directly
    from transformers import AutoProcessor, AutoModelForMultimodalLM
    
    processor = AutoProcessor.from_pretrained("waleko/TikZ-llava-1.5-7b")
    model = AutoModelForMultimodalLM.from_pretrained("waleko/TikZ-llava-1.5-7b")
  • Notebooks
  • Google Colab
  • Kaggle
New discussion
Resources
  • PR & discussions documentation
  • Code of Conduct
  • Hub documentation

ValueError: Input length of input_ids is 48, but `max_length` is set to 20.

#1 opened almost 2 years ago by
HengfengWei
Company
TOS Privacy About Careers
Website
Models Datasets Spaces Pricing Docs