forked from tinygrad/tinygrad
This is a prereq refactor for cloud multi which will make it possible to use multiple devices from cloud host instead of just one. I will do that via changing a session to be a `tuple[token, dev_idx]` Previously the session was in cookies, this is a problem because a single http request can contain many RemoteRequests with potentially different devices. The alternatives are either: \- sending commands for different devices in separate http requests (slow) \- only adding an idx in RemoteRequest in basically the same way i added session here, keeping session a cookie and concat in server. This is how i've done it previously and it looks just strictly worse than having it all be in the same place.