I assume you mean that the ref=“something” that are added to the building:parts?
Those are not rendered on the available layers at osm.org, unfortunately.
You probably want to use something like Maperitive, or some other Rendering or Export solution
(or maybe even GIS software), that lets you pick exactly which objects and tag information you want to include in your map and in what style.