The book i am trying to remember is that this person in space, (who I think is a smuggler?), hyperdrives to another star, but along the way he passes out and wakes up to an A.I. in his head.
This A.I. near the end of the book "possible spoilers" takes a container along with herself and goes off the ship while they are flying at hyper speed, making sure it doesn't fall into the wrong hands and saving other A.I.?
Along the way, the a.i. turns into a person, more or less a girl, and they have to find a way to get the a.i. container back from a organization, planing on having other AI used as weapons against there enemy's.