Personally I would dump the bin and pick out as many worms as you can to save them, and start over. I think anything you use to try to kill the ants might kill the worms.

I had fire ants in my bin for awhile and they didn't seem to attack the worms, but raising ants isn't something you probably want to be doing. If you don't want to start over without a fight, you might try stirring the bedding thoroughly at least once a day to disturb the ants' nest-building. If they can't settle down and make babies, they might move out. Putting a few ant baits near the bin might help but I would still worry about the ants bringing poisons into the bin. I did the baits and the stirring and eventually the ants moved away, but it took a very long time (months).