(main) root@C.28491986:/workspace/Emu3.5$ python inference.py --cfg configs/example_config_visual_narrative.py
auto
The argument trust_remote_code is to be used with Auto classes. It has no effect here and is ignored.
Emu3ForCausalLM has generative capabilities, as prepare_inputs_for_generation is explicitly overwritten. However, it doesn't directly inherit from GenerationMixin. From 👉v4.50👈 onwards, PreTrainedModel will NOT inherit from GenerationMixin, and this model will lose the ability to call generate and other related functions.
- If you're using
trust_remote_code=True, you can get rid of this warning by loading the model with an auto class. See https://huggingface.co/docs/transformers/en/model_doc/auto#auto-classes
- If you are the owner of the model architecture code, please modify your model class such that it inherits from
GenerationMixin (after PreTrainedModel, otherwise you'll get an exception).
- If you are not the owner of the model architecture class, please contact the model code owner to update it.
Loading checkpoint shards: 100%|██████████████████████████████████████████████████████████████████████| 15/15 [00:16<00:00, 1.09s/it]
[INFO] Model loaded successfully
0%| | 0/4 [00:00<?, ?it/s][INFO] No reference image is provided
(main) root@C.28491986:/workspace/Emu3.5$ python inference.py --cfg configs/example_config_visual_narrative.py
auto
The argument
trust_remote_codeis to be used with Auto classes. It has no effect here and is ignored.Emu3ForCausalLM has generative capabilities, as
prepare_inputs_for_generationis explicitly overwritten. However, it doesn't directly inherit fromGenerationMixin. From 👉v4.50👈 onwards,PreTrainedModelwill NOT inherit fromGenerationMixin, and this model will lose the ability to callgenerateand other related functions.trust_remote_code=True, you can get rid of this warning by loading the model with an auto class. See https://huggingface.co/docs/transformers/en/model_doc/auto#auto-classesGenerationMixin(afterPreTrainedModel, otherwise you'll get an exception).Loading checkpoint shards: 100%|██████████████████████████████████████████████████████████████████████| 15/15 [00:16<00:00, 1.09s/it]
[INFO] Model loaded successfully
0%| | 0/4 [00:00<?, ?it/s][INFO] No reference image is provided