Giter Club home page Giter Club logo

Comments (7)

VieVie31 avatar VieVie31 commented on June 12, 2024 2

Hello ! I just tried the notebook, I think I see what @jarredou is referring to: the loading of the pipeline and downloading of the weights.

For my part, I solved it by:

Commenting:

#photomaker_path = 'release_model/photomaker-v1.bin'

Then changing:

from huggingface_hub import hf_hub_download

photomaker_ckpt = hf_hub_download(repo_id="TencentARC/PhotoMaker", filename="photomaker-v1.bin", repo_type="model")

pipe = PhotoMakerStableDiffusionXLPipeline.from_pretrained(
    base_model_path, 
    torch_dtype=torch.bfloat16, 
    use_safetensors=True, 
    variant="fp16",
).to(device)

pipe.load_photomaker_adapter(
    os.path.dirname(photomaker_ckpt),
    subfolder="",
    weight_name=os.path.basename(photomaker_ckpt),
    trigger_word="img"
)     
pipe.id_encoder.to(device)

After what, I encountered later the following issue when running on Colab with a V100:

RuntimeError: cutlassF: no kernel found to launch!

This has been "solved" by switching to an A100 GPU (BTW, the GPU RAM consumption is high: 25.9 / 40.0 GB, maybe too high for a Colab V100)

from photomaker.

Vargol avatar Vargol commented on June 12, 2024 2
RuntimeError: cutlassF: no kernel found to launch!

This has been "solved" by switching to an A100 GPU (BTW, the GPU RAM consumption is high: 25.9 / 40.0 GB, maybe too high for a Colab V100)

On a T4 the "no kernel" error is fixed by switching to float16 instead of bfloat16.
Yes with a batch size of 1 (sometimes 2) you can get this working on the free tier.

from photomaker.

Vargol avatar Vargol commented on June 12, 2024 2

@Tinaa23

pipe = PhotoMakerStableDiffusionXLPipeline.from_pretrained(
    base_model_path,
    torch_dtype=torch.float16,   <------  change torch.bfloat16 to torch.float16
    use_safetensors=True,
    variant="fp16",
).to(device)

from photomaker.

Paper99 avatar Paper99 commented on June 12, 2024 1

Thank you. I have merged it.

from photomaker.

Paper99 avatar Paper99 commented on June 12, 2024

Please give us more details. Thank you.

from photomaker.

VieVie31 avatar VieVie31 commented on June 12, 2024

@Paper99 I just proposed the fix in the pull request #39 😃

from photomaker.

Tinaa23 avatar Tinaa23 commented on June 12, 2024
RuntimeError: cutlassF: no kernel found to launch!

This has been "solved" by switching to an A100 GPU (BTW, the GPU RAM consumption is high: 25.9 / 40.0 GB, maybe too high for a Colab V100)

On a T4 the "no kernel" error is fixed by switching to float16 instead of bfloat16. Yes with a batch size of 1 (sometimes 2) you can get this working on the free tier.

Hi. I am receiving this error on google colab. Can you please help, how can I fix it? How do we change from bfloat16 to float16.

from photomaker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.