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

dleemiller
/
siglip2-math-base-patch16-256

Zero-Shot Image Classification
Transformers
Safetensors
siglip
Model card Files Files and versions
xet
Community

Instructions to use dleemiller/siglip2-math-base-patch16-256 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.

  • Libraries
  • Transformers

    How to use dleemiller/siglip2-math-base-patch16-256 with Transformers:

    # Use a pipeline as a high-level helper
    from transformers import pipeline
    
    pipe = pipeline("zero-shot-image-classification", model="dleemiller/siglip2-math-base-patch16-256")
    pipe(
        "https://huggingface.co/datasets/huggingface/documentation-images/resolve/main/hub/parrots.png",
        candidate_labels=["animals", "humans", "landscape"],
    )
    # pip install -U transformers accelerate
    # Load model directly
    from transformers import AutoProcessor, AutoModelForZeroShotImageClassification
    
    processor = AutoProcessor.from_pretrained("dleemiller/siglip2-math-base-patch16-256")
    model = AutoModelForZeroShotImageClassification.from_pretrained("dleemiller/siglip2-math-base-patch16-256", device_map="auto")
  • Notebooks
  • Google Colab
  • Kaggle
siglip2-math-base-patch16-256
1.54 GB
Ctrl+K
Ctrl+K
  • 1 contributor
History: 4 commits
dleemiller's picture
dleemiller
Update README.md
6b8eaaa verified 11 months ago
  • .gitattributes
    1.57 kB
    Upload folder using huggingface_hub 11 months ago
  • README.md
    670 Bytes
    Update README.md 11 months ago
  • chat_template.jinja
    591 Bytes
    Upload folder using huggingface_hub 11 months ago
  • config.json
    982 Bytes
    Upload folder using huggingface_hub 11 months ago
  • model.safetensors
    1.5 GB
    xet
    Upload folder using huggingface_hub 11 months ago
  • preprocessor_config.json
    649 Bytes
    Upload folder using huggingface_hub 11 months ago
  • special_tokens_map.json
    636 Bytes
    Upload folder using huggingface_hub 11 months ago
  • tokenizer.json
    34.4 MB
    xet
    Upload folder using huggingface_hub 11 months ago
  • tokenizer_config.json
    46.6 kB
    Upload folder using huggingface_hub 11 months ago
  • training_args.bin

    Detected Pickle imports (10)

    • "transformers.trainer_utils.SchedulerType",
    • "accelerate.state.PartialState",
    • "torch.device",
    • "transformers.trainer_utils.HubStrategy",
    • "transformers.training_args.OptimizerNames",
    • "transformers.trainer_utils.IntervalStrategy",
    • "transformers.trainer_pt_utils.AcceleratorConfig",
    • "accelerate.utils.dataclasses.DistributedType",
    • "transformers.trainer_utils.SaveStrategy",
    • "transformers.training_args.TrainingArguments"

    How to fix it?

    5.78 kB
    xet
    Upload folder using huggingface_hub 11 months ago