I have definitely gotten Harry Potter fanfic out of
https://talktotransformer.com/ on several occasions. Not, as far as I can tell, long passages or entire sentences copied from Rowling, but clearly identifiable uses of the Potter characters and worldbuilding, which (IIRC) makes it a derivative work under US copyright law; even though GPT-2 doesn't have a copyright in it, Rowling does. Probably the US four-part fair-use test would keep you safe in that case.
I wasn't even feeding it Harry Potter seeds, just generic fantasy prompts. For better or worse, none of them seem to have made it into Dercuano.