Any-to-Any
Transformers
Safetensors
qwen2_5_vl
image-text-to-text
custom_code
text-generation-inference
Instructions to use modelscope/Nexus-Gen with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use modelscope/Nexus-Gen with Transformers:
# Load model directly from transformers import AutoProcessor, AutoModelForImageTextToText processor = AutoProcessor.from_pretrained("modelscope/Nexus-Gen", trust_remote_code=True) model = AutoModelForImageTextToText.from_pretrained("modelscope/Nexus-Gen", trust_remote_code=True) - Notebooks
- Google Colab
- Kaggle
Update pipeline tag to any-to-any
Browse filesThis PR updates the `pipeline_tag` to `any-to-any` in the model card's metadata. This change more accurately reflects the model's unified capabilities, including image understanding, generation, and editing, as described in its accompanying paper. This also ensures the model is discoverable under the `any-to-any` pipeline on the Hugging Face Hub (e.g., via https://huggingface.co/models?pipeline_tag=any-to-any).
README.md
CHANGED
|
@@ -1,7 +1,7 @@
|
|
| 1 |
---
|
| 2 |
-
license: apache-2.0
|
| 3 |
library_name: transformers
|
| 4 |
-
|
|
|
|
| 5 |
frameworks:
|
| 6 |
- Pytorch
|
| 7 |
tasks:
|
|
@@ -82,5 +82,4 @@ Feel free to reference our work if you find it helpful.
|
|
| 82 |
primaryClass={cs.CV},
|
| 83 |
url={https://arxiv.org/abs/2504.21356v2},
|
| 84 |
}
|
| 85 |
-
```
|
| 86 |
-
|
|
|
|
| 1 |
---
|
|
|
|
| 2 |
library_name: transformers
|
| 3 |
+
license: apache-2.0
|
| 4 |
+
pipeline_tag: any-to-any
|
| 5 |
frameworks:
|
| 6 |
- Pytorch
|
| 7 |
tasks:
|
|
|
|
| 82 |
primaryClass={cs.CV},
|
| 83 |
url={https://arxiv.org/abs/2504.21356v2},
|
| 84 |
}
|
| 85 |
+
```
|
|
|