Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

set_handlers: changed type of models_to_fetch, removed "models_download_params" #184

Merged
merged 1 commit into from
Dec 16, 2023

Conversation

bigcat88
Copy link
Member

  • set_handlers: models_to_fetch and models_download_params united in one more flexible parameter.

…ams.

Signed-off-by: Alexander Piskun <bigcat88@icloud.com>
@bigcat88
Copy link
Member Author

bigcat88 commented Dec 16, 2023

This allows something like this(ability to specify separate params for each model download):

    set_handlers(
        APP,
        enabled_handler,
        models_to_fetch={
           "stabilityai/sdxl-turbo": {
                "ignore_patterns": ["*/diffusion_pytorch_model.safetensors", "sd_xl_turbo_1.0.safetensors", "*onnx*"]
            }
        },
    )

Copy link

codecov bot commented Dec 16, 2023

Codecov Report

Merging #184 (93339b1) into main (16f44f8) will decrease coverage by 0.01%.
The diff coverage is 100.00%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #184      +/-   ##
==========================================
- Coverage   99.93%   99.93%   -0.01%     
==========================================
  Files          37       37              
  Lines        4497     4495       -2     
==========================================
- Hits         4494     4492       -2     
  Misses          3        3              
Files Coverage Δ
nc_py_api/ex_app/integration_fastapi.py 100.00% <100.00%> (ø)

@bigcat88 bigcat88 merged commit 4d27356 into main Dec 16, 2023
18 checks passed
@bigcat88 bigcat88 deleted the set_handlers-models_to_fetch branch December 16, 2023 13:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant