Approximate message passing for not so large niid generalized linear models