Normally all the people make this ride with the bus but to get there you can also take a combi from Caraz to Huallanca (Av. Cordova 828)
You can tell to the driver to stop anywhere you want in the canyon. You can always take a combi back or try hitchhiking. I dont recommend to arrive to Huallanca, there’s nothing to do there.