How to use hf-internal-testing/tiny-random-SamModel with Transformers:
# Use a pipeline as a high-level helper from transformers import pipeline pipe = pipeline("mask-generation", model="hf-internal-testing/tiny-random-SamModel")
# Load model directly from transformers import AutoProcessor, AutoModelForMaskGeneration processor = AutoProcessor.from_pretrained("hf-internal-testing/tiny-random-SamModel") model = AutoModelForMaskGeneration.from_pretrained("hf-internal-testing/tiny-random-SamModel")
Upload tiny models for SamModel
Β· Sign up or log in to comment