Skip to content

TFlarge is a hack to allow using large tensorflow models on GPUs with limited VRAM

Notifications You must be signed in to change notification settings

marcheu/tflarge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 

Repository files navigation

TFlarge

Summary

TFlarge is a hack to allow using large tensorflow models on GPUs with limited VRAM.

How to use

Go to the TFlarge directory, then:

$ ./build

$ export LD_PRELOAD=/path/to/tflarge.so

[use tensor flow normally]

Limitations

  • TFlarge works by replacing allocations in VRAM with managed allocations. This means you are not limited by the amount of VRAM you have
  • Because all allocations are managed, there is a performance hit, but it's still faster than running on the CPU. For example, it is faster to train large models on my GTX 1660 Super than on my 5950X CPU.

About

TFlarge is a hack to allow using large tensorflow models on GPUs with limited VRAM

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published