Baidu on Friday said the next generation of its Ernie large language models will be open source from June 30.