We prove that the integral Hodge conjecture holds for 1-cycles on irreducible holomorphic symplectic varieties of K3 type and of Generalized Kummer type. As an application, we give a new proof of the integral Hodge conjecture for cubic fourfolds.Corollary 0.3. The integral Hodge conjecture holds for 2-cycles on cubic fourfolds.The proofs in this paper rely on several results and constructions that were already in the literature. In particular, Theorems 0.1 and 0.2 involve a deformation argument similar to that in [AV] and [CP]. We first consider the Hilbert scheme of a K3 or a generalized Kummer variety, where we exhibit special families of rational curves that represent primitive classes in H 2n−2 (X, Z), and which also deform in their Hodge loci. This then in turn implies that any integral degree 2n − 2 Hodge class on a deformation is represented by a rational curve.We would like to thank O. Benoist, G. Pacienza, M. Shen and C.