candle icon indicating copy to clipboard operation
candle copied to clipboard

Add ability to use any CLIPModel with model-id and revision

Open akshayballal95 opened this issue 1 year ago • 0 comments

Earlier, it was not possible to use a Clip model by providing a model ID and revision because the ClipConfig was not loaded from the config.json file.

I made the ClipConfig Deserialize so that any CLIPModel can be loaded. Some of the attribute names had to be changed to allow this. Updated the example also based on the Bert Example pattern to allow any model to be loaded.

This is a new PR same as #2357

akshayballal95 avatar Oct 01 '24 12:10 akshayballal95