Git Product home page Git Product logo

Comments (8)

gabrielilharco avatar gabrielilharco commented on July 24, 2024 1

That's a bit of a quirk from open_clip, the checkpoints should be the same

from datacomp.

zwsjink avatar zwsjink commented on July 24, 2024

by saying "upsampling", I mean some data will appear more than once during an individual epoch.

from datacomp.

gabrielilharco avatar gabrielilharco commented on July 24, 2024

Hey @zwsjink. Yes, that will happen (regardless of the sampling strategy, by the pigeonhole principle). Also note that the training script samples datapoints with replacement.

from datacomp.

zwsjink avatar zwsjink commented on July 24, 2024

Hey @zwsjink. Yes, that will happen (regardless of the sampling strategy, by the pigeonhole principle). Also note that the training script samples datapoints with replacement.

I see. So when you are saying "with replacement" ,do you mean this

parser.add_argument(
        "--dataset-resampled",
        default=False,
        action="store_true",
        help="Whether to use sampling with replacement for webdataset shard selection."
    )

option, so that we not only shuffle between shards but also within shards to achieve more randomness?

from datacomp.

gabrielilharco avatar gabrielilharco commented on July 24, 2024

Yes, every time a worker needs a new shard, they sample uniformly from the pool of all shards. The samples in a shard are used to fill a shuffle buffer, from which samples are drawn at random.

from datacomp.

zwsjink avatar zwsjink commented on July 24, 2024

Yes, every time a worker needs a new shard, they sample uniformly from the pool of all shards. The samples in a shard are used to fill a shuffle buffer, from which samples are drawn at random.

Thanks for the clarification. :D

from datacomp.

zwsjink avatar zwsjink commented on July 24, 2024

Yes, every time a worker needs a new shard, they sample uniformly from the pool of all shards. The samples in a shard are used to fill a shuffle buffer, from which samples are drawn at random.

sorry to bother, but what is the difference between two checkpoints i get after training ? I see one named epoch_5.pt and another epoch_latest.pt , I do see the original config for number of training epochs is equal to 5, so I believe these two checkpoints are same? but the file size looks different

from datacomp.

gabrielilharco avatar gabrielilharco commented on July 24, 2024

Closing for now, feel free to re-open if you have other questions!

from datacomp.

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.