Commit dbac8d5
committed
fix(deploy): pass trust_remote_code=True to load_tokenizer in in-framework deploy
Megatron-Bridge added a load_tokenizer() guard that raises ValueError when the
checkpoint tokenizer config has trust_remote_code=True baked in (e.g. Llama
tokenizers) but the caller does not opt in. The in-framework deploy path called
load_tokenizer(checkpoint_path) without it, breaking Ray and Triton deployments
of converted MBridge checkpoints (regression in container 26.06.01.rc0).
Adds a unit test covering the patched call (red-green verified).
Detected by: hermes PR-to-testcase pipeline
NVBug: 6393765
Signed-off-by: Pruthviraj Prakash <pruprakash@nvidia.com>1 parent da45b11 commit dbac8d5
2 files changed
Lines changed: 42 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
265 | 265 | | |
266 | 266 | | |
267 | 267 | | |
268 | | - | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
269 | 273 | | |
270 | 274 | | |
271 | 275 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
434 | 434 | | |
435 | 435 | | |
436 | 436 | | |
| 437 | + | |
| 438 | + | |
| 439 | + | |
| 440 | + | |
| 441 | + | |
| 442 | + | |
| 443 | + | |
| 444 | + | |
| 445 | + | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
| 450 | + | |
| 451 | + | |
| 452 | + | |
| 453 | + | |
| 454 | + | |
| 455 | + | |
| 456 | + | |
| 457 | + | |
| 458 | + | |
| 459 | + | |
| 460 | + | |
| 461 | + | |
| 462 | + | |
| 463 | + | |
| 464 | + | |
| 465 | + | |
| 466 | + | |
| 467 | + | |
| 468 | + | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
| 472 | + | |
| 473 | + | |
437 | 474 | | |
438 | 475 | | |
439 | 476 | | |
| |||
0 commit comments