Instructions to use BAAI/Emu3-Stage1 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- Transformers
How to use BAAI/Emu3-Stage1 with Transformers:
# Load model directly from transformers import AutoModelForCausalLM model = AutoModelForCausalLM.from_pretrained("BAAI/Emu3-Stage1", trust_remote_code=True, dtype="auto") - Notebooks
- Google Colab
- Kaggle
logits_processor=logits_processor error
#1
by RobertLee2Future - opened
In the demo case, the setting of logits_processor may lead to the following error
'''
---> 50 height = self.height[batch_id] if self.height.shape[0] > 1 else self.height[0]
51 width = self.width[batch_id] if self.width.shape[0] > 1 else self.width[0]
53 offset = input_ids.shape[0] - self.offset_cache[batch_id]
IndexError: tuple index out of range
'''
Removing the setting is fixed