An exact approach is proposed for the 0/1 knapsack problem with setups (KPS). The approach is based on an ILP formulation with two variables sets. A 2-level partitioning of these sets in the branching scheme is exploited. The approach solves to optimality all instances with up to 100,000 variables.