Skip to content

Commit

Permalink
Update gpu.md (#2539)
Browse files Browse the repository at this point in the history
typos fixed
  • Loading branch information
AdamWysokinski authored Dec 4, 2024
1 parent 4fea1f9 commit 8c3fd33
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/src/guide/gpu.md
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ BSON.@save "./path/to/trained_model.bson" model = cpu(model)
```
The reason behind this is that models trained in the GPU but not transferred to the CPU memory scope will expect `CuArray`s as input. In other words, Flux models expect input data coming from the same kind device in which they were trained on.

In controlled scenarios in which the data fed to the loaded models is garanteed to be in the GPU there's no need to transfer them back to CPU memory scope, however in production environments, where artifacts are shared among different processes, equipments or configurations, there is no garantee that the CUDA.jl package will be available for the process performing inference on the model loaded from the disk.
In controlled scenarios in which the data fed to the loaded models is guaranteed to be in the GPU there's no need to transfer them back to CPU memory scope, however in production environments, where artifacts are shared among different processes, equipments or configurations, there is no guarantee that the CUDA.jl package will be available for the process performing inference on the model loaded from the disk.


## Disabling CUDA or choosing which GPUs are visible to Flux
Expand Down

0 comments on commit 8c3fd33

Please sign in to comment.