candle
candle copied to clipboard
Add ability to use any CLIPModel with model-id and revision
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