I've heard that Moses compiled it.
Chuck Missler says that the word TORAH is spelled out in 70 equidistant letter sequences in the beginning of Genesis and Exodus but not in Leviticus then it is spelled backwards every 70 letters at the beginning of Numbers and Deuteronomy.
So the HolySpirit wrote the books.