Commit c5eb5b0
committed
Default to CUDA if available (pytorch#431)
Unless user specifies device, default it to CUDA if it's available on the platform.
As for all models, other than TinyLlama inference on GPU will be faster than on CPU1 parent 8605a11 commit c5eb5b0
1 file changed
+4
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
32 | 32 | | |
33 | 33 | | |
34 | 34 | | |
35 | | - | |
| 35 | + | |
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | 39 | | |
40 | 40 | | |
41 | 41 | | |
| 42 | + | |
| 43 | + | |
| 44 | + | |
42 | 45 | | |
43 | 46 | | |
44 | 47 | | |
| |||
0 commit comments