Product Variants on predefined attributes

Hi,
What is the procedure to create variants of a product based on already existing attributes provided while creating a product? For example- Product weight. A milk packet can have a 500ml and a 1000ml variant and attribute weight is already provided in JCP against a product.