News for hackers. Stuff that matters.
Re:GPT-J-6B: 6B JAX-Based Transformer by thepasswordis on Tuesday June 08, 2021 @11:41PM (#27443975)
Is it possible to run this on something other than google's cloud platform?
Re:GPT-J-6B: 6B JAX-Based Transformer by Ari_Rahikkala on Wednesday June 09, 2021 @10:21PM (#27456012)
I'm running it comfortably on my 3090, although it's a really snug fit for the VRAM, and that's with a number of fixes to significantly reduce its memory use from https://github.com/AeroScripts/mesh-transformer-jax .
Re:GPT-J-6B: 6B JAX-Based Transformer by homedepotdave on Thursday June 10, 2021 @09:57AM (#27460814)
Out of curiosity, how fast are your inferences with this setup?
Re:GPT-J-6B: 6B JAX-Based Transformer by Ari_Rahikkala on Thursday June 10, 2021 @11:50AM (#27462098)
With the defaults of per_replica_batch=1, seq=2048 and gen_len=512, a completion takes about 20 seconds.

I'm not sure yet what settings I'll end up with if I decide to play with this more. per_replica_batch=3, seq=1024, gen_len=64 would give an experience roughly similar to the AI Dungeon that I'm used to, though less clever than the Dragon model, and a bit slower at about 10 seconds per batch.

Re:GPT-J-6B: 6B JAX-Based Transformer by londons_explore on Wednesday June 09, 2021 @05:12AM (#27445858)
It's design is pretty specific to Google's TPU.

If you ran it elsewhere, you'd likely need to tweak the design or suffer quite a big performance penalty.

Re:GPT-J-6B: 6B JAX-Based Transformer by devetec on Wednesday June 09, 2021 @12:13PM (#27449612)
Nope, probably not. It's using JAX, which works on both GPUs and TPUs.
Re:GPT-J-6B: 6B JAX-Based Transformer by londons_explore on Wednesday June 09, 2021 @04:10PM (#27452508)
All the constants in the design will be tuned to fit perfectly in TPU hardware dimensions.