transformers/utils
Raushan Turganbay 52e1f87c7d
[WIP] Emu3: add model (#33770)
* model can convert to HF and be loaded back

* nit

* works in single batch generation but hallucinates

* use the image tokens

* add image generation

* now it works

* add tests

* update

* add modulare but it doesn't work for porting docstring :(

* skip some tests

* add slow tests

* modular removed the import?

* guess this works

* update

* update

* fix copies

* fix test

* fix copies

* update

* docs

* fix tests

* last fix tests?

* pls

* repo consistency

* more style

* style

* remove file

* address comments

* tiny bits

* update after the new modular

* fix tests

* add one more cond in check attributes

* decompose down/up/mid blocks

* allow static cache generation in VLMs

* nit

* fix copies

* Update docs/source/en/model_doc/emu3.md

Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>

* Update docs/source/en/model_doc/emu3.md

Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>

* Update docs/source/en/model_doc/emu3.md

Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>

* Update docs/source/en/model_doc/emu3.md

Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>

* Update docs/source/en/model_doc/emu3.md

Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>

* Update docs/source/en/model_doc/emu3.md

Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>

* Update docs/source/en/model_doc/emu3.md

Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>

* Update docs/source/en/model_doc/emu3.md

Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>

* fix VAE upsampling

* Update src/transformers/models/emu3/modular_emu3.py

Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>

* address comments

* state overwritten stuff explicitly

* fix copies

* add the flag for flex attn

---------

Co-authored-by: Steven Liu <59462357+stevhliu@users.noreply.github.com>
Co-authored-by: Arthur <48595927+ArthurZucker@users.noreply.github.com>
2025-01-10 12:23:00 +01:00
..
test_module
tf_ops
add_pipeline_model_mapping_to_test.py
check_bad_commit.py Fix utils/check_bad_commit.py (for auto ping in CI) (#34943) 2024-11-28 15:34:38 +01:00
check_build.py
check_config_attributes.py [WIP] Emu3: add model (#33770) 2025-01-10 12:23:00 +01:00
check_config_docstrings.py Add TimmWrapper (#34564) 2024-12-11 12:40:30 +00:00
check_copies.py Add ViTPose (#30530) 2025-01-08 16:02:14 +00:00
check_doc_toc.py
check_docstrings.py Add Aria (#34157) 2024-12-06 12:17:34 +01:00
check_doctest_list.py
check_dummies.py
check_inits.py
check_model_tester.py
check_modular_conversion.py Add support for modular with fast image processors (#35379) 2025-01-08 08:37:57 -05:00
check_repo.py [WIP] Emu3: add model (#33770) 2025-01-10 12:23:00 +01:00
check_self_hosted_runner.py
check_support_list.py
check_table.py Add Falcon3 documentation (#35307) 2024-12-17 14:23:13 +01:00
check_tf_ops.py
create_dependency_mapping.py Fix modular edge case + modular sorting order (#35562) 2025-01-09 17:17:52 +01:00
create_dummy_models.py
custom_init_isort.py
deprecate_models.py
download_glue_data.py
extract_warnings.py
get_ci_error_statistics.py
get_github_job_time.py
get_modified_files.py
get_previous_daily_ci.py
get_test_info.py
important_models.txt
models_to_deprecate.py
modular_model_converter.py Fix modular edge case + modular sorting order (#35562) 2025-01-09 17:17:52 +01:00
not_doctested.txt
notification_service.py Fix CI slack reporting issue (#34833) 2024-11-20 21:36:13 +01:00
notification_service_doc_tests.py
notification_service_quantization.py
past_ci_versions.py
patch_helper.py
pr_slow_ci_models.py Trigger GitHub CI with a comment on PR (#35211) 2024-12-18 13:56:49 +01:00
print_env.py
process_bad_commit_report.py
process_circleci_workflow_test_reports.py Aggeregate test summary files in CircleCI workflow runs (#34989) 2024-12-16 11:06:17 +01:00
process_test_artifacts.py
release.py 🚨🚨🚨 Delete conversion scripts when making release wheels (#35296) 2024-12-17 14:18:42 +00:00
set_cuda_devices_for_ci.py
slow_documentation_tests.txt
sort_auto_mappings.py
split_doctest_jobs.py
split_model_tests.py
tests_fetcher.py Update test fetcher when we want to test all (#35364) 2024-12-20 15:10:43 +01:00
update_metadata.py Add ColPali to 🤗 transformers (#33736) 2024-12-17 11:26:43 +01:00
update_tiny_models.py