Support Export of LTX-Video 0.9.1#1652
Support Export of LTX-Video 0.9.1#1652Yash-Vijay29 wants to merge 10 commits intohuggingface:mainfrom
Conversation
likholat
left a comment
There was a problem hiding this comment.
Please add tests for tiny-random-ltx-0.9.1-video model conversion and inference.
You can refer to similar tests that already exist for the supported LTX model:
repo:huggingface/optimum-intel ltx-video path:/^tests\/openvino\//
done. Please review. |
|
@rkazants please take a look |
|
@altnnatra, please take a look |
|
The docs for this PR live here. All of your documentation changes will be reflected on that endpoint. The docs are available until 30 days after the last update. |
|
@rkazants Tried exporting the test model and it exports, let me know if any other changes. Please rerun checks! thank you |
|
Tests cannot be collected and export fails in environments with |
@anatyrova |
|
The branch is based on an older commit of |
|
@anatyrova updated branch to latest commit, exporting model and "python -m pytest tests/openvino/test_ltx_export_config.py -v" passes huggingface_hub used is still 0.36.2 (it auto downloaded that one) Try running again! thank you! |
|
Oh. I tested in fp32 format for the accuracy result of 0.9845. |
|
Was your accuracy result (0.9845) measured on the fp32 export? |
Yes it was |
|
i tried fp32, it looked best (vid applied). also int8, int4 do work. https://github.com/user-attachments/assets/5b15b597-8090-4b05-8fef-2d371cb08cc1 (prompt='A cute cat climbing up a staircase, smooth motion, detailed fur, cinematic lighting') need to confirm with @rkazants |
|
@anatyrova what version of diffusers is CI using? I think the diffusers on the CI is a bit old? and doesnt have the "timestep_scale_multiplier" |
|
i reviewed the pr for the case if it creates any regression for the prev LTX-video that we already have (m_id Lightricks/LTX-Video)
similarity results (wwb) were almost identical, both with 0.838127 (main) and 0.83812696 (pr) similarity comp. to OG model. @rkazants |
What does this PR do?
Adds support for to successfully convert LTX-Video 0.9.1 (a timestep_conditioning enabled version of LTX Video)
to be exported to IR graph. previously timestep_conditioning was not supported in exports and caused dummy timestep_conditioning to produce tensor a mismatch.
Created tiny-random-ltx-video-0.9.1 for github CI and testing.
Added inference and conversion tests.
TESTED HF VS OPTIMUM ACCURACY:
first ran :
then
Accuracy: 0.9844858
Metrics_per_question:
metrics.csv
Before submitting