Programming thread

I’m using a CNN to train autonomous drones on a course using RGB-D input in stable-baselines3, I’d like to know if I can use my Mac for GPU training or if I need to use a dedicated graphics card.
what GPU do you have, and what kind of dataset are you using, alongside network architecture?
 
I’d like to know if I can use my Mac for GPU training or if I need to use a dedicated graphics card.
i did a cursory search and i think you just have to find a version of pytorch with support for the graphics api that comes in your mac (which depends a lot on how old it is, and the specific gpu)
then in your program you have to run a "initialize with gpu" function as opposed to the regular "initialize with cpu" function
 
  • Informative
Reactions: John Badman
i did a cursory search and i think you just have to find a version of pytorch with support for the graphics api that comes in your mac (which depends a lot on how old it is, and the specific gpu)
then in your program you have to run a "initialize with gpu" function as opposed to the regular "initialize with cpu" function
Only slightly related: does pytorch even have a m3 version?
 
Since we're talking about javascript, I do have one case in which I find it actually helpful. Tree-sitter is a pretty promising piece of software, and you write the grammar in JS. The reason this works is because the only data types you're dealing with are nodes and strings, the latter of which get converted into nodes. Essentially, the type system doesn't come into play at all, and the flexibility of writing grammars is not insignificant. Having written parsers using bison, lark, ocaml, I have to say that as far as getting something going quickly, I kind of prefer TS, at least in the beginning. Add to that the fact that tree-sitter will build packages and shared object files for your grammar automatically, and the native integration with emacs, it's pretty solid.
 
  • Like
Reactions: Evil Whitey
Also, Racket to an extent. A big step towards Scheme for browsers—the way it should have been.
the list i linked contains a lot of languages that use a scheme (including the one you've linked)
1754321991622.webp
 
  • Like
Reactions: y a t s
Back