ariG23498 HF Staff commited on
Commit
53054da
·
verified ·
1 Parent(s): c1a6986

Keep the pipeline tag as Auto Detected.

Browse files

Hey team!

The generated code snippet for the model creates an issue as suggested [here](https://github.com/huggingface/huggingface.js/issues/1803).

The issue is that the pipeline is tagged as `image-text-to-text`, which uses `AutoModelForImageTextToText`. The model does not support the API and only supports `AutoModel` (with remote code).

The easiest option to rectify the issue is to keep `pipeline_tag` as Auto-detected, which would in turn produce the following code snippet that works ⬇
```py
pipe = pipeline("feature-extraction", model="openbmb/MiniCPM-V-4_5", trust_remote_code=True)
```

The other option (a bit convoluted) is to write a custom pipeline.
The docs of adding a new pipeline is here: https://huggingface.co/docs/transformers/en/add_new_pipeline#adding-a-new-pipeline


Let me know what you think is best! 🤗

Files changed (1) hide show
  1. README.md +0 -1
README.md CHANGED
@@ -1,5 +1,4 @@
1
  ---
2
- pipeline_tag: image-text-to-text
3
  datasets:
4
  - openbmb/RLAIF-V-Dataset
5
  library_name: transformers
 
1
  ---
 
2
  datasets:
3
  - openbmb/RLAIF-V-Dataset
4
  library_name: transformers