Run this model with HF Jobs

Run aeth0r/cat2vec-v2 on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs to fine-tune https://huggingface.co/aeth0r/cat2vec-v2. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/aeth0r/cat2vec-v2 on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.
How to use from the
Use from the
Transformers library
# Use a pipeline as a high-level helper
from transformers import pipeline

pipe = pipeline("image-feature-extraction", model="aeth0r/cat2vec-v2")
# pip install -U transformers accelerate
# Load model directly
from transformers import AutoImageProcessor, AutoModel

processor = AutoImageProcessor.from_pretrained("aeth0r/cat2vec-v2")
model = AutoModel.from_pretrained("aeth0r/cat2vec-v2", device_map="auto")
Quick Links

cat2vec

The cat2vec model is a search model for cats.

It was trained using the Labeled Cats In The Wild dataset and a triplet loss.

Usage

from transformers import AutoImageProcessor, ResNetModel
import torch
from datasets import load_dataset

dataset = load_dataset("huggingface/cats-image")
image = dataset["test"]["image"][:2]

processor = AutoImageProcessor.from_pretrained("facebook/dinov2-small")
model = ResNetModel.from_pretrained("aeth0r/cat2vec-v2")

inputs = processor(image, return_tensors="pt")

with torch.no_grad():
    features = model(**inputs)

print(features)
Downloads last month
8
Safetensors
Model size
22.1M params
Tensor type
F32
ยท
Inference Providers NEW
This model isn't deployed by any Inference Provider. ๐Ÿ™‹ Ask for provider support

Model tree for aeth0r/cat2vec-v2

Finetuned
(44)
this model