export clip to text encoder and image encoder two onnxs
### Model description

i want to export clip to text encoder and image encoder two onnx, but it seems can only convert the whole model, how can i seperate clip to two onnx models? 

### Open source status

- [X] The model implementation is available
- [X] The model weights are available

### Provide useful links for the implementation

_No response_
cc @michaelbenayoun <|||||>Hi @susht3 ,
You mean that you want to export a `CLIPTextModel` and `CLIPVisionModel`?

We support the CLIP export in `optimum`:

```bash
optimum-cli export onnx -m openai/clip-vit-base-patch32 --task default clip
```

But as I understand here, you want to export two models?<|||||>> Hi @susht3 , You mean that you want to export a `CLIPTextModel` and `CLIPVisionModel`?
> 
> We support the CLIP export in `optimum`:
>
> ```shell
> optimum-cli export onnx -m openai/clip-vit-base-patch32 --task default clip
> ```
> 
> But as I understand here, you want to export two models?

yes，i try to convert by transformer.onnx but failed, my code like this:

model = CLIPModel.from_pretrained(model_path)
 processor = CLIPProcessor.from_pretrained(model_path)
 text = processor.tokenizer("[UNK]”, return_tensors="np")
 image = processor.feature_extractor(Image.open("CLIP.png"))
 text_model = model.text_model
 image_model = model.vision_model
 onnx_inputs, onnx_outputs = export(
 preprocessor=tokenizer, model=text_model, config=onnx_config, opset=10, output=onnx_model_path
    )
<|||||>You want what kind of inputs?

Anyways, you should use `optimum.exporters.onnx` for this.
You should be able to export the text model easily because we have a [`CLIPTextOnnxConfig`](https://github.com/huggingface/optimum/blob/main/optimum/exporters/onnx/model_configs.py#LL620C49-L620C49).

For the rest we have `CLIPOnnxConfig` as well.<|||||>> [`CLIPTextOnnxConfig`](https://github.com/huggingface/optimum/blob/main/optimum/exporters/onnx/model_configs.py#LL620C49-L620C49).

thanks，and which is clip visual onxx config? i can't find it<|||||>I think we do not have it, but you can make a PR and add it if you are interested!