Hi and welcome
While a certain slow and gradual weight loss is normal in elderly guinea pigs, any sudden weight loss over 50g and any slow weight loss over 100g should be seen by a vet, ideally one that is as piggy savvy as you can afford.
We have got a recommended UK vet locator on the top bar, but can provide a link to recommended vets in some other countries if wished.
A sudden weight loss is often connected to a pain issue somewhere in the body or the inability to process food (from overgrown teeth to a delicate digestion in older piggies to failing organs). Overgrown back teeth, arthritis, kidney problems, ovarian cysts etc. can all cause a fairly quick weight loss and are not at all uncommon in older piggies.
Since we have got members from all over the world, you can help us by please adding your country, state/province or UK county to your details, so we can tailor any advice straight away to what is available and relevant where you are instead of keeping it as general as possible. Please click on your username on the top bar, then go to personal details and scroll down to location. This makes it appear with every post you make. Thank you!