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:
# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("modelscope/Nexus-Gen", trust_remote_code=True) model = AutoModelForMultimodalLM.from_pretrained("modelscope/Nexus-Gen", trust_remote_code=True, device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download generation_config.json from modelscope/Nexus-Gen: direct link, hf CLI and curl.
- Browser
- Download file 244 Bytes
-
https://huggingface.co/modelscope/Nexus-Gen/resolve/main/generation_config.json
- Command line
-
hf download hf://modelscope/Nexus-Gen/generation_config.json
-
curl -L -o generation_config.json https://huggingface.co/modelscope/Nexus-Gen/resolve/main/generation_config.json
244 Bytes
| { | |
| "bos_token_id": 151643, | |
| "do_sample": true, | |
| "eos_token_id": [ | |
| 151645, | |
| 151643 | |
| ], | |
| "pad_token_id": 151643, | |
| "repetition_penalty": 1.05, | |
| "temperature": 0.1, | |
| "top_k": 1, | |
| "top_p": 0.001, | |
| "transformers_version": "4.49.0" | |
| } | |