Janus
Janus copied to clipboard
Update app_januspro.py
Change visual and device types (issues in MacOS and Windows 11 Version)
seems the config is not taking effect,
config.language_config._attn_implementation = 'eager' if device.type == 'cpu' else 'flash_attention_2'
https://github.com/deepseek-ai/Janus/pull/81 is a bit more complete