Biocompatible, bioerodible, sustained release drug delivery system formulated as implants, microspheres and high viscosity hyaluronic acid solutions comprise valproic acid as therapeutic agent and a biodegradable polymer, the system being effective, when placed intraocular (such as into the subtenon space or into the vitreous) to treat a retinal disease or condition.