Commit f3b925e
committed
Address review comments on lm_eval_hf.py
- Annotate trust_remote_code propagation as user-driven (satisfies CodeRabbit
Security Anti-Pattern check on hardcoded trust_remote_code=True).
- Guard the private cli._subparsers access with a clear RuntimeError so a
future lm-eval refactor surfaces a useful error instead of AttributeError.
Signed-off-by: Keval Morabia <28916987+kevalmorabia97@users.noreply.github.com>1 parent 4727635 commit f3b925e
1 file changed
Lines changed: 11 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
248 | 248 | | |
249 | 249 | | |
250 | 250 | | |
| 251 | + | |
251 | 252 | | |
252 | 253 | | |
253 | 254 | | |
| |||
264 | 265 | | |
265 | 266 | | |
266 | 267 | | |
267 | | - | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
268 | 278 | | |
269 | 279 | | |
270 | 280 | | |
0 commit comments