Commit d8def44
Fix CLI: suppress HuggingFace warnings and pad_token_id message
- Redirect stderr during model loading (removes "Warning: unauthenticated",
"fast path not available", "Loading weights" progress bar)
- Pre-set pad_token_id before generate() (removes "Setting pad_token_id" message)
- Set TRANSFORMERS_NO_ADVISORY_WARNINGS, HF_HUB_DISABLE_PROGRESS_BARS env vars
- Clean output: only the question, answer, and KV analysis are shown
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>1 parent 005de79 commit d8def44
1 file changed
Lines changed: 24 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
115 | 115 | | |
116 | 116 | | |
117 | 117 | | |
| 118 | + | |
118 | 119 | | |
119 | | - | |
| 120 | + | |
120 | 121 | | |
121 | 122 | | |
122 | 123 | | |
| |||
158 | 159 | | |
159 | 160 | | |
160 | 161 | | |
161 | | - | |
| 162 | + | |
162 | 163 | | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
163 | 174 | | |
164 | 175 | | |
165 | 176 | | |
166 | 177 | | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
171 | 183 | | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
172 | 190 | | |
173 | 191 | | |
174 | 192 | | |
| |||
0 commit comments