Skip to content

Commit 679063a

Browse files
committed
Adding some more logging to compressor
1 parent 43ae28d commit 679063a

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

olmocr/train/compress_checkpoint.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -156,6 +156,12 @@ def compress_checkpoint(source_path: str, dest_path: str) -> None:
156156
model, tokenizer, temp_source_dir = load_model_and_tokenizer(source_path)
157157

158158
try:
159+
# Print all model tensor names
160+
print("\n=== Model Tensor Names ===")
161+
for name, param in model.named_parameters():
162+
print(f"{name}: shape={list(param.shape)}, dtype={param.dtype}")
163+
print("=========================\n")
164+
159165
# Configure FP8 dynamic quantization
160166
print("\nApplying FP8 dynamic quantization...")
161167
recipe = QuantizationModifier(

0 commit comments

Comments
 (0)