Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[New Model]: support for fashion-clip #16019

Open
1 task done
priyankaiiit14 opened this issue Apr 3, 2025 · 0 comments
Open
1 task done

[New Model]: support for fashion-clip #16019

priyankaiiit14 opened this issue Apr 3, 2025 · 0 comments
Labels
new-model Requests to new models

Comments

@priyankaiiit14
Copy link

The model to consider.

This model is based on the CLIP architecture, which is popular for image-text tasks.

The closest model vllm already supports.

Transformers model

What's your difficulty of supporting the model you want?

When I tried evaluating the model, I got the error

Code

from vllm import LLM
import torch
from PIL import Image
from transformers import CLIPProcessor
# Load the model
llm = LLM(model="patrickjohncyh/fashion-clip")
# Load and preprocess the image
image = Image.open("/Users/pkumari/Downloads/monitor.png")
processor = CLIPProcessor.from_pretrained("patrickjohncyh/fashion-clip")
inputs = processor(images=image, return_tensors="pt")
# Generate embeddings
outputs = llm.generate({
    "prompt": "<image>",
    "multi_modal_data": {"image": inputs['pixel_values']},
})
# Print the embeddings
print(outputs)

Error

[rank0]: ValueError: CLIPModel has no vLLM implementation and the Transformers implementation is not compatible with vLLM. Try setting VLLM_USE_V1=0.
(search-eval) pkumari@GF4MX6XF00 search-eval % pip list

Before submitting a new issue...

  • Make sure you already searched for relevant issues, and asked the chatbot living at the bottom right corner of the documentation page, which can answer lots of frequently asked questions.
@priyankaiiit14 priyankaiiit14 added the new-model Requests to new models label Apr 3, 2025
@priyankaiiit14 priyankaiiit14 changed the title [New Model]: https://huggingface.co/patrickjohncyh/fashion-clip [New Model]: support for fashion-clip Apr 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new-model Requests to new models
Projects
Status: Todo
Development

No branches or pull requests

1 participant