Commit 810dc8d
#36 - Fix to_device() to preserve integer tensor dtype
Only apply dtype conversion to floating-point tensors. Integer tensors
(e.g., input_ids, attention_mask) must preserve their dtype for
compatibility with Hugging Face models during mixed-precision inference.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Signed-off-by: Dpakkk <pokharelbikash981@gmail.com>1 parent e0e2ac3 commit 810dc8d
1 file changed
+6
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
94 | 95 | | |
95 | 96 | | |
96 | 97 | | |
| |||
0 commit comments