Skip to content

Commit 9f4ce1c

Browse files
Merge pull request #2935 from AI-Hypercomputer:hengtaoguo-conversion
PiperOrigin-RevId: 855869865
2 parents 64de98e + 64eea53 commit 9f4ce1c

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

  • src/MaxText/utils/ckpt_conversion/utils

src/MaxText/utils/ckpt_conversion/utils/utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def _process(hf_path, processed_slice, output_weights, current_hook_fns, hf_shap
199199
if current_hook_fns:
200200
processed_slice = apply_hook_fns(processed_slice, target_hf_shape, current_hook_fns)
201201
numpy_slice = convert_jax_weight_to_numpy(processed_slice).squeeze()
202-
if numpy_slice.shape != target_hf_shape:
202+
if numpy_slice.shape != tuple(target_hf_shape):
203203
raise ValueError(f"Shape mismatch for {hf_path}: Expect {target_hf_shape}, got {numpy_slice.shape}")
204204
output_weights.append((hf_path, numpy_slice))
205205

0 commit comments

Comments
 (0)