Is there a way to specify a fractional gpu requirement for a task? In the example at Dask webpage, it specifies a single GPU.
from distributed import Client
client = Client('scheduler:8786')
data = [client.submit(load, fn) for fn in filenames]
processed = [client.submit(process, d, resources={'GPU': 1}) for d in data]
final = client.submit(aggregate, processed, resources={'MEMORY': 70e9})
It will be a waste to allocate one GPU for a small model.
Ray library has a way of doing this.