| ag_dtype | R Documentation |
Controls the dtype used when uploading tensors to the ggml backend.
"bf16" halves memory usage vs "f32" with minimal accuracy loss.
Gradients are never computed in f16: the GPU graph backward runs in f32 only,
so with "f16" or "bf16" backward() takes the closure path,
which computes them in double – correct, but slower (the reason is counted
by ggmlR:::ag_backward_fallbacks()). Training in f32 keeps the graph path.
ag_dtype(dtype)
dtype |
|
Invisibly the previous dtype string
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.