Be patient. Hold your guinea pig gently and hand feed it with grass. Talk quietly with it. Get it used to coming to you as you hold grass outstretched. I believe a guinea pig’s confidence is linked to an owner’s patience.
Maybe it needs a smaller home for a while, so it is not so easy to hide from you. Or perhaps it needs a friend. If you had another friendlier guinea pig, this one might follow its lead.