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

Onediff Support #183

Open
wants to merge 58 commits into
base: add_onediff
Choose a base branch
from
Open

Onediff Support #183

wants to merge 58 commits into from

Commits on May 21, 2024

  1. fix: process T2I batch sequentially to prevent CUDA out of memory err…

    …ors (livepeer#66)
    
    This commit ensures that batches in the T2I pipeline are processed sequentially. This change is necessary because we currently lack the ability to estimate a GPU's VRAM capacity and manage requests accordingly.
    
    * process text-to-image requested image count sequentially
    
    * refactor: cleanup sequential images code
    
    This commit cleans up the sequential images code a bit.
    
    ---------
    
    Co-authored-by: Rick Staa <[email protected]>
    ad-astra-video and rickstaa authored May 21, 2024
    Configuration menu
    Copy the full SHA
    8b5cd1e View commit details
    Browse the repository at this point in the history

Commits on May 30, 2024

  1. fix: fix huggingface token not found error (livepeer#89)

    This commit ensures that a more descriptive error is thrown when the
    huggingface token is not set.
    rickstaa authored May 30, 2024
    Configuration menu
    Copy the full SHA
    62c142d View commit details
    Browse the repository at this point in the history

Commits on May 31, 2024

  1. chore(runner): Pin python package versions to current version (livepe…

    …er#91)
    
    * pin setuptools to 69.5.1, breaks build if 70.0.0 is used
    
    * pin packages to current version
    ad-astra-video authored May 31, 2024
    Configuration menu
    Copy the full SHA
    08d4842 View commit details
    Browse the repository at this point in the history
  2. feat(image-to-video): integrate NSFW safety checker (livepeer#90)

    * add saftey checker to image to video
    
    * refactor(runner): apply black formatter
    
    This commit applies the black formatter onto the codebase.
    
    ---------
    
    Co-authored-by: Rick Staa <[email protected]>
    ad-astra-video and rickstaa authored May 31, 2024
    Configuration menu
    Copy the full SHA
    a34622e View commit details
    Browse the repository at this point in the history
  3. refactor(runner): improve pipeline NFSW return type

    This commit ensure that the NSFW flag is set as optional. This was done
    since a None list can be returned.
    rickstaa committed May 31, 2024
    Configuration menu
    Copy the full SHA
    f827d1c View commit details
    Browse the repository at this point in the history
  4. refactor(runner): cleanup codebase

    This commit removes the NSFW log statement in the I2V pipelines and
    reorders the argument parsing in the T2I pipeline.
    rickstaa committed May 31, 2024
    Configuration menu
    Copy the full SHA
    ace582c View commit details
    Browse the repository at this point in the history

Commits on Jun 4, 2024

  1. feat(runner): disable DEEPCACHE for lightning/turbo models (livepeer#93)

    * feat(runner): disable DEEPCACHE for lightning/turbo models
    
    This commit ensures that people can not use the deepcache optimization
    with lightning and turbo models. As explained in
    livepeer#82 (comment)
    this optimization does not offer any speedup for these models while it
    does reduce image quality.
    
    * fix: ensure correct lighthing/turbo matching
    
    This commit ensures that Lightning/Turbo model names with both the `-`
    and `_` are matched when checking whether the orchestrator loaded a
    Lightning/Turbo model.
    rickstaa authored Jun 4, 2024
    Configuration menu
    Copy the full SHA
    24e480d View commit details
    Browse the repository at this point in the history
  2. chore: update oapi-codegen

    This commit updates the oapi-codegen tool to the latest version.
    rickstaa committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    d71ac95 View commit details
    Browse the repository at this point in the history
  3. feat(I2I): add Pix2Pix model support (livepeer#94)

    * Add support for the `timbrooks/instruct-pix2pix` model
    
    * Remove text-to-vid model
    
    * Tweak pix2pix
    
    * Do not randomize guidance scale
    
    * Make image guidance scale a param
    
    * Improve the image-to-image processing by enabling the timbrooks/instruct-pix2pix model.
    
    * merge all stronk changes for image-to-image improvements
    
    * minor update
    
    * regenerated runner.gen.go
    
    * refactor(I2I): improve pix2pix pipeline initialization
    
    This commit removes arguments that are not used during the
    initialization of the pix2pix pipeline. It also cleansup the codebase a
    bit and changes the default to improve transparency.
    
    * chore: update openapi spec
    
    This commit updates the OpenAPI spec and removes the openapi.yaml file
    since it is not directly used.
    
    ---------
    
    Co-authored-by: Marco van Dijk <[email protected]>
    Co-authored-by: Rick Staa <[email protected]>
    3 people authored Jun 4, 2024
    Configuration menu
    Copy the full SHA
    f549695 View commit details
    Browse the repository at this point in the history
  4. fix(build): fix oapi-gen v2.2.0 warning syntax error

    This commit ensure that the warning statement that has been printed to
    the console since oapi-codegen v2.2.0 does not cause a syntax error.
    rickstaa committed Jun 4, 2024
    Configuration menu
    Copy the full SHA
    31fe460 View commit details
    Browse the repository at this point in the history

Commits on Jun 5, 2024

  1. chore: pin oapi-codegen

    This commit pins oapi-codegen to prevent the golang bindings from
    breaking due to upstream changes.
    rickstaa committed Jun 5, 2024
    Configuration menu
    Copy the full SHA
    78d4a4d View commit details
    Browse the repository at this point in the history
  2. chore: remove codegen install from makefile

    This commit removes the codegen install command from the makefile. This
    is no longer needed now that go run accepts specific version postfixes (see
    https://go.dev/doc/go1.17).
    rickstaa committed Jun 5, 2024
    Configuration menu
    Copy the full SHA
    5c08bf4 View commit details
    Browse the repository at this point in the history

Commits on Jun 8, 2024

  1. fix(runner): update img2img to do sequential processing of batch requ…

    …est (livepeer#95)
    
    * update img2img to do sequential processing of batch request
    
    * refactor(runner): improve consistency between I2I and T2I pipelines
    
    This commit enhances the consistency between the I2I and T2I pipelines,
    making them easier to compare.
    
    ---------
    
    Co-authored-by: Rick Staa <[email protected]>
    ad-astra-video and rickstaa authored Jun 8, 2024
    Configuration menu
    Copy the full SHA
    0f2ead8 View commit details
    Browse the repository at this point in the history
  2. refactor(runner): remove redundancy in dl_script (livepeer#97)

    This commit cleans up the download script to remove redundancy.
    rickstaa authored Jun 8, 2024
    Configuration menu
    Copy the full SHA
    4594b71 View commit details
    Browse the repository at this point in the history

Commits on Jun 10, 2024

  1. fix(worker): ensure multipart writers correctly forward parameters (l…

    …ivepeer#98)
    
    This commit ensure that the multipart writers correctly forward the
    `safety_check` and `image_guidance_scale` parameters to the AI runner
    container.
    rickstaa authored Jun 10, 2024
    Configuration menu
    Copy the full SHA
    680f109 View commit details
    Browse the repository at this point in the history
  2. refactor: improve code formatting (livepeer#99)

    This commit applies some small code and documentation formatting
    improvements.
    rickstaa authored Jun 10, 2024
    Configuration menu
    Copy the full SHA
    6bb526c View commit details
    Browse the repository at this point in the history
  3. feat(pipeline): add upscale image support to AI pipelines (livepeer#96)

    * add upscale image support using stabilityai/stable-diffusion-x4-upscaler model
    
    * Add host port for upscale pipeline
    
    * added model download to the dl_checkpoints.sh
    
    * fix: fix some small bugs and improve formatting
    
    This commit fixes some small bugs and improves the code formatting so
    that it is more in line with the other pipelines.
    
    * fix: ensure upscaling OpenAPI spec gets created
    
    This commit ensures that the `gen_openapi.py` file also creates the
    OpenAPI spec for the upscaling route. It also updates the Golang client
    bindings.
    
    * fix(worker): fix incorrect automatic client types
    
    This commit ensures that the right client request and response types
    are used.
    
    ---------
    
    Co-authored-by: Elite Encoder <[email protected]>
    Co-authored-by: Rick Staa <[email protected]>
    3 people authored Jun 10, 2024
    Configuration menu
    Copy the full SHA
    45687a7 View commit details
    Browse the repository at this point in the history

Commits on Jun 13, 2024

  1. chore: fix alpha models (livepeer#104)

    This commit ensures that the download script downloads the right alpha
    models when the `alpha` flag is specified.
    rickstaa authored Jun 13, 2024
    Configuration menu
    Copy the full SHA
    8c8c69d View commit details
    Browse the repository at this point in the history
  2. fix(api): fix incorrect I2I OpenAPI gateway spec (livepeer#105)

    This commit ensures that the right format is set in the OpenAPI spec for
    when the I2I response is coming from the gateway. This is a little bit
    hacky since we don't yet generate the OpenAPI spec where it is
    implemented (i.e. in go-livepeer).
    rickstaa authored Jun 13, 2024
    Configuration menu
    Copy the full SHA
    0a26654 View commit details
    Browse the repository at this point in the history

Commits on Jun 16, 2024

  1. chore: link feature request issue to roadmap (livepeer#108)

    This commit ensures that when people click the feature request issue
    button they are redirected to our roadmap and feedback system.
    rickstaa authored Jun 16, 2024
    Configuration menu
    Copy the full SHA
    3e04201 View commit details
    Browse the repository at this point in the history
  2. chore: replace add model/pipeline with roadmap link (livepeer#109)

    This commit replaces the model and pipeline issue templates with a link
    to the roadmap and our feature request system.
    rickstaa authored Jun 16, 2024
    Configuration menu
    Copy the full SHA
    02ba750 View commit details
    Browse the repository at this point in the history
  3. chore: fix issue button description

    This commit fixes a small typo in the Feature Request issue button.
    rickstaa committed Jun 16, 2024
    Configuration menu
    Copy the full SHA
    97818c6 View commit details
    Browse the repository at this point in the history

Commits on Jun 26, 2024

  1. chore: update dev container instructions (livepeer#112)

    This commit adds the prerequisites to the vscode dev container
    instructions.
    rickstaa authored Jun 26, 2024
    Configuration menu
    Copy the full SHA
    8b1b455 View commit details
    Browse the repository at this point in the history
  2. refactor: apply small code improvements (livepeer#113)

    This commit makes some very small code improvements that make applying a
    mock patch easier.
    rickstaa authored Jun 26, 2024
    Configuration menu
    Copy the full SHA
    e5f4bf7 View commit details
    Browse the repository at this point in the history
  3. fix: pin numpy version to prevent conflits (livepeer#114)

    This commit ensures that numpy<2.0.0 is used to prevent conflicts with
    Pytorch 2.1.1. We can upgrade these packages in the future.
    rickstaa authored Jun 26, 2024
    Configuration menu
    Copy the full SHA
    57c5728 View commit details
    Browse the repository at this point in the history
  4. refactor: improve code formating

    This commit improves the I2I code formatting.
    rickstaa committed Jun 26, 2024
    Configuration menu
    Copy the full SHA
    bd77a8b View commit details
    Browse the repository at this point in the history
  5. chore: add pipeline mock development guide (livepeer#115)

    This commit adds all the components needed to be able to mock the
    pipelines.
    rickstaa authored Jun 26, 2024
    Configuration menu
    Copy the full SHA
    571318e View commit details
    Browse the repository at this point in the history

Commits on Jul 4, 2024

  1. chore: improve mock patch file

    Replaces the old mock.patch file with a new one that ensures people can
    also use ENVIRONMENT variables directly. See
    livepeer#116.
    rickstaa committed Jul 4, 2024
    Configuration menu
    Copy the full SHA
    ea24a70 View commit details
    Browse the repository at this point in the history

Commits on Jul 15, 2024

  1. docs: improve runner dev docs (livepeer#121)

    This commit ensures that developers have all the steps needed to debug a
    ai-runner container when it is used in the go-livepeer library.
    rickstaa authored Jul 15, 2024
    Configuration menu
    Copy the full SHA
    b059e9b View commit details
    Browse the repository at this point in the history

Commits on Jul 16, 2024

  1. feat(runner): add support for SD3-medium model (livepeer#118)

    This commit introduces support for the Stable Diffusion 3 Medium model
    from Hugging Face:
    [https://huggingface.co/stabilityai/stable-diffusion-3-medium](https://huggingface.co/stabilityai/stable-diffusion-3-medium).
    
    Please be aware that this model has restrictive licensing at the time of
    writing and is not yet advised for public use. Ensure you read and
    understand the [licensing
    terms](https://huggingface.co/stabilityai/stable-diffusion-3-medium/blob/main/LICENSE)
    before enabling this model on your orchestrator.
    rickstaa committed Jul 16, 2024
    Configuration menu
    Copy the full SHA
    0d03040 View commit details
    Browse the repository at this point in the history
  2. Add audio to text pipeline (livepeer#103)

    Add audio to text pipeline
    ---------
    Co-authored-by: Rick Staa
    eliteprox authored Jul 16, 2024
    Configuration menu
    Copy the full SHA
    9fc476e View commit details
    Browse the repository at this point in the history
  3. refactor: improve error codes and code formatting (livepeer#122)

    This commit applies several code formatting improvements and replaces
    the hardcoded error codes by the error codes in the FastAPI status
    module.
    rickstaa authored Jul 16, 2024
    Configuration menu
    Copy the full SHA
    e39134b View commit details
    Browse the repository at this point in the history

Commits on Jul 17, 2024

  1. feat: add num_inference_steps to I2I, I2V and Upscaling pipelines (li…

    …vepeer#123)
    
    * Update image_to_image.py
    
    added variable num_inference_steps and added the same variable in pipeline function calling with default value of 50
    
    * Update openapi.json
    
    added property for image to image of number of inference steps.
    
    * Update for num_inference_steps
    
    * Update image_to_video.py
    
    * Update image_to_image.py
    
    * Update image_to_video.py
    
    * Update openapi.json
    
    * Update image_to_video.py
    
    * Update image_to_image.py
    
    * Update image_to_video.py
    
    * Update openapi.json
    
    * feat: add `num_inference_steps` to upscale pipeline
    
    This commit adds the `num_inference_steps` parameter to the upscale
    pipeline.
    
    * feat: improve I2I pipeline num_inference_steps behavoir
    
    This commit ensures that the `strength` is set correctly when the
    sdxl-turbo model is used and cleans up the `num_inference_steps`
    implementation.
    
    * feat: improve I2V num_inference_steps behavoir
    
    This commit improves the I2V `num_inference_steps` defaults and code.
    
    * feat: improve T2I num_inference_steps behavoir
    
    This commit improves the implementation and defaults for the
    num_inference_steps parameter.
    
    * feat(worker): add num_inference_steps to I2I, I2V and Upscale pipelines
    
    This commit adds the `num_inference_steps` to the I2I, I2V and Upscale
    pipelines in the worker codebase.
    
    ---------
    
    Co-authored-by: Jason <[email protected]>
    Co-authored-by: Jason Stone <[email protected]>
    3 people authored Jul 17, 2024
    Configuration menu
    Copy the full SHA
    68ca7df View commit details
    Browse the repository at this point in the history
  2. feat: enable multiple prompts for T2I (livepeer#125)

    * enable multiple prompts for T2I
    
    * refactor(runner): make prompt splitting more general
    
    This commit ensures that the prompt splitting logic implemented in the
    previous commits can be reused in multiple pipelines.
    
    ---------
    
    Co-authored-by: Rick Staa <[email protected]>
    ad-astra-video and rickstaa authored Jul 17, 2024
    Configuration menu
    Copy the full SHA
    68b8d85 View commit details
    Browse the repository at this point in the history
  3. chore: add MIT license (livepeer#124)

    This commit adds a MIT license to the codebase.
    rickstaa authored Jul 17, 2024
    Configuration menu
    Copy the full SHA
    e7da44d View commit details
    Browse the repository at this point in the history

Commits on Jul 20, 2024

  1. ci: add OpenAPI upstream sync action

    This commit adds a simple GitHub action that can be used to trigger a
    OpenAPI spec update in the https://github.com/livepeer/docs repository.
    rickstaa committed Jul 20, 2024
    Configuration menu
    Copy the full SHA
    487cf15 View commit details
    Browse the repository at this point in the history
  2. ci: simplify OpenAPI upstream sync action

    This commit replaces the hardcoded repository dispatch with the
    https://github.com/peter-evans/repository-dispatch action.
    rickstaa committed Jul 20, 2024
    Configuration menu
    Copy the full SHA
    0cbb2fa View commit details
    Browse the repository at this point in the history
  3. ci: improve OpenAPI upstream sync action syntax

    This commit improves the OpenAPI upstream sync action syntax.
    rickstaa committed Jul 20, 2024
    Configuration menu
    Copy the full SHA
    b2d57dc View commit details
    Browse the repository at this point in the history
  4. ci: add OpenAPI sync client payload

    This commit adds the trigger commit to the repository-dispatch call.
    rickstaa committed Jul 20, 2024
    Configuration menu
    Copy the full SHA
    431fc04 View commit details
    Browse the repository at this point in the history
  5. Configuration menu
    Copy the full SHA
    e95d921 View commit details
    Browse the repository at this point in the history
  6. Configuration menu
    Copy the full SHA
    dfd56ba View commit details
    Browse the repository at this point in the history
  7. ci: add SDKs update workflow trigger

    This commit adds the SDK workflow trigger to the OpenAPI sync github
    action.
    rickstaa committed Jul 20, 2024
    Configuration menu
    Copy the full SHA
    e7d194b View commit details
    Browse the repository at this point in the history
  8. ci: improve OpenAPI sync action syntax

    This commit improve the OpenAPI sync action syntax.
    rickstaa committed Jul 20, 2024
    Configuration menu
    Copy the full SHA
    50c8009 View commit details
    Browse the repository at this point in the history

Commits on Jul 23, 2024

  1. ci: add PR OpenAPI/bindings check action (livepeer#127)

    * ci: add PR OpenAPI/bindings check action
    
    This commit adds a simple action that notifies developers when they
    forgot to update the OpenAPI spec or golang bindings.
    
    * ci: improve OpenAPI/bindings change action
    
    This commit improves the code of the OpenAPI and golang bindings check
    action.
    rickstaa authored Jul 23, 2024
    Configuration menu
    Copy the full SHA
    8c03423 View commit details
    Browse the repository at this point in the history

Commits on Jul 30, 2024

  1. feat(model): add Realistic Vision model T2I support (livepeer#136)

    This commit ensures that the https://huggingface.co/SG161222/Realistic_Vision_V6.0_B1_noVAE
    model is supported in the T2I pipeline.
    rickstaa authored Jul 30, 2024
    Configuration menu
    Copy the full SHA
    8da8ed0 View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2024

  1. ci: add JS/TS SDK update trigger (livepeer#138)

    This commit adds a update trigger to the OpenAPI sync action that
    triggers a update of the JS/TS SDK.
    rickstaa authored Jul 31, 2024
    Configuration menu
    Copy the full SHA
    52d0491 View commit details
    Browse the repository at this point in the history
  2. ci: add TS/JS SDK OpenAPI spec update trigger (livepeer#139)

    This commit addes a trigger to update the OpenAPI spec in https://github.com/livepeer/ai-sdk-js. Furhter it improves the OpenAPI spec upstream sync action to forward more information.
    rickstaa authored Jul 31, 2024
    Configuration menu
    Copy the full SHA
    8833c77 View commit details
    Browse the repository at this point in the history

Commits on Aug 1, 2024

  1. dependency default

    lukiod committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    0c11f6e View commit details
    Browse the repository at this point in the history
  2. refactor: add T2I parameter annotations (livepeer#141)

    This commit adds parameter annotations to the T2I pipeline similar to
    how it is done in the rest of the pipelines. Descriptions will be added
    in a subsequenty commit.
    rickstaa authored Aug 1, 2024
    Configuration menu
    Copy the full SHA
    06baa9d View commit details
    Browse the repository at this point in the history
  3. refactor: sort imports using isort (livepeer#142)

    This commit sorts the python imports using the
    https://pypi.org/project/isort package.
    rickstaa authored Aug 1, 2024
    Configuration menu
    Copy the full SHA
    328d8a1 View commit details
    Browse the repository at this point in the history
  4. Configuration menu
    Copy the full SHA
    e6fffe3 View commit details
    Browse the repository at this point in the history
  5. optimazation added

    lukiod committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    eeee03c View commit details
    Browse the repository at this point in the history
  6. test 1 enabling onediff

    lukiod committed Aug 1, 2024
    Configuration menu
    Copy the full SHA
    e9ae308 View commit details
    Browse the repository at this point in the history
  7. Configuration menu
    Copy the full SHA
    56e65c0 View commit details
    Browse the repository at this point in the history

Commits on Aug 2, 2024

  1. ci: update OpenAPI spec trigger repos (livepeer#143)

    This commit ensures the right upstream repos are triggered in the
    trigger upstream OpenAPI sync action.
    rickstaa authored Aug 2, 2024
    Configuration menu
    Copy the full SHA
    0e49c20 View commit details
    Browse the repository at this point in the history

Commits on Aug 5, 2024

  1. Configuration menu
    Copy the full SHA
    a87e70f View commit details
    Browse the repository at this point in the history

Commits on Aug 9, 2024

  1. bech.py working with onediff

    lukiod committed Aug 9, 2024
    Configuration menu
    Copy the full SHA
    daf9ef8 View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    addecf6 View commit details
    Browse the repository at this point in the history