Tesla is currently producing around 100,000 cars/year. Each car has about 80kWh of battery on average (the options right now are 75 or 90), so that's about 8GWh. If they meet their goal of 400,000 Model 3s produced in 2018, assuming 55kWh of battery for those cars, that's 22GWh, not counting what goes into continuing Model S and Model X production. I'm not sure it's as small a fraction of global production as you say.
One of the statistics they like to quote about their Gigafactory is that its final production will equal the total global production by the industry when construction started in 2013.