question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

CI / Tests for DALLE-pytorch

See original GitHub issue

As the number of papers (and pull requests) is increasing, the idea of testing a branch before merging it to master becomes more and more important.

@afiaka87 ans @rom1504 had the idea to include DALLE-Pytorch into a continuous integration cycle or at least run a few tests before merging a branch to ensure no essential features get broken.

A simple, first test could look as follows:

run the follwing commands (each with text-image-folders and a wds stream, as well as with open-AI and taming transformer):

  • python…
  • deepspeed…
  • deepspeed fp16
  • deepspeed apex

The tests can be speed up by

itertools.islice(dataloader, 10):`“ if Test=True else dataloader

So the tests only run for a few samples.

Issue Analytics

  • State:open
  • Created 2 years ago
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
rom1504commented, Jun 15, 2021

Why can’t the most important tests be run on CPU ? Even if it’s takes 5min to do 3 steps of batch size 2 on cpu, it’s good enough

1reaction
afiaka87commented, Jun 13, 2021

This is really cool! Also the colab (see the WDS implementation, I tested it on your colab #280 (comment)).

But I think it might get a little flickery if we test only using colab - a few simple automatic test steps could still be useful where you do not have to rerun the colab every few seconds and change the parameters manually.😃

Do you have anything in mind other than colab which can be spun up that easily? @rom1504 mentioned running like 10 steps on the CPU; but if that winds up being “a whole thing” then I probably won’t spend too much time on it. Have honestly never tried with DALLE (or anything really) - but I’m guessing it doesn’t work as it stands?

Read more comments on GitHub >

github_iconTop Results From Across the Web

How to Choose a Continues Integration (CI) Framework for ...
This article shows how to select and set up Continuous Integration (CI) for deep learning software. We will cover a few different CI...
Read more >
Gradient Dissent sur Apple Podcasts
Gradient Dissent is a machine learning podcast hosted by Lukas Biewald that takes you behind-the-scenes to learn how industry leaders are putting deep ......
Read more >
DALL·E: Creating Images from Text - OpenAI
We test DALL·E's ability to modify several of an object's attributes, as well as the number of times that it appears.
Read more >
PyTorch on Azure: Deep learning in the oil and gas industry
Using the PyTorch deep learning framework on Microsoft Azure, ... into a Continuous Integration/Continuous Delivery (CI/CD) workflow as depicted below.
Read more >
Giskard Home | Quality Assurance for AI models
Deploy automated tests to eliminate regression and biases. ... Integrate. API for any Python model: PyTorch, TensorFlow, Transformers, sklearn, etc.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found