[CI] Fix tests after default kernels (#47773) - part 1: `test_model_parallelism` (#51439)
[CI] Build the base model of test_model_parallelism with from_pretrained
Since #47773, `from_pretrained` uses hub kernels by default when the model is
loaded with a GPU `device_map`. `test_model_parallelism` compared a model built
with `model_class(config)` (no kernels) against the same weights reloaded with
`device_map="auto"` (kernels), so kernel-vs-torch numerics broke the 1e-5
tolerance. Load the base model with `from_pretrained(tmp_dir, device_map=torch_device)`
as the offload tests already do, so the test only checks the multi-GPU split.
Co-authored-by: ydshieh <ydshieh@users.noreply.github.com>