lambda-networks icon indicating copy to clipboard operation
lambda-networks copied to clipboard

How large memory is required for the experiment

Open amiltonwong opened this issue 5 years ago • 5 comments

Hi, @lucidrains ,

Thanks you a lot for releasing the prototype so quickly. How large memory is required for the experiment?

THX!

amiltonwong avatar Oct 12 '20 01:10 amiltonwong

@amiltonwong thanks for your interest! I'll be trying it out next week in some generative models

have you tried it and found it to be memory intensive?

lucidrains avatar Oct 12 '20 02:10 lucidrains

I try out LambdaResnet50 with 64 batch_size about cost 9-10GB gpu memory in FP32 precision,it's much larger than Resnet50

PistonY avatar Oct 20 '20 09:10 PistonY

Thanks you for your Implementation so efficientcy, but I have the similar problems to @PistonY . I use the lambda layer before I feed my image to the efficientNet-b4, and I would like to move my model into GPU but it took 18.76GB. image

Here is the parameters in my lambda layer. image

jason90330 avatar Oct 28 '20 05:10 jason90330

You should specify r image

VuHoangvn avatar Nov 05 '20 15:11 VuHoangvn

@VuHoangvn Thank a lot, I have revised the question I asked before, but I am still wondering if I can use the lambda layer into other SOTA model such as efficientnet. just like the image I post, can I insert this layer in front of my model directly? thank you. BTW, I have tested the score of the question I asked, but I got a lower score than without the lambda layer. image

jason90330 avatar Nov 20 '20 10:11 jason90330