Skip to content

Instantly share code, notes, and snippets.

@zilunpeng
Created March 23, 2021 22:19
Show Gist options
  • Save zilunpeng/e6c6b479152456501b6dacda3313c563 to your computer and use it in GitHub Desktop.
Save zilunpeng/e6c6b479152456501b6dacda3313c563 to your computer and use it in GitHub Desktop.
Put model and decoder to shared memory. Code below is part of the distributed inference notebook (https://git.io/JYeQQ).
model_id = ray.put(model)
decoder_id = ray.put(decoder)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment