Instructions to use PKU-Alignment/AA-chameleon-7b-plus with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use PKU-Alignment/AA-chameleon-7b-plus with Transformers:
# pip install -U transformers accelerate # Load model directly from transformers import AutoProcessor, AutoModelForMultimodalLM processor = AutoProcessor.from_pretrained("PKU-Alignment/AA-chameleon-7b-plus") model = AutoModelForMultimodalLM.from_pretrained("PKU-Alignment/AA-chameleon-7b-plus", device_map="auto") - Notebooks
- Google Colab
- Kaggle
Download processor_config.json from PKU-Alignment/AA-chameleon-7b-plus: direct link, hf CLI and curl.
- Browser
- Download file 102 Bytes
-
https://huggingface.co/PKU-Alignment/AA-chameleon-7b-plus/resolve/main/processor_config.json
- Command line
-
hf download hf://PKU-Alignment/AA-chameleon-7b-plus/processor_config.json
-
curl -L -o processor_config.json https://huggingface.co/PKU-Alignment/AA-chameleon-7b-plus/resolve/main/processor_config.json
102 Bytes
| { | |
| "image_seq_length": 1024, | |
| "image_token": "<image>", | |
| "processor_class": "ChameleonProcessor" | |
| } | |