Skip to content

Instantly share code, notes, and snippets.

View sfc-gh-sbekman's full-sized avatar

Stas Bekman sfc-gh-sbekman

  • Snowflake
  • BC, Canada
View GitHub Profile
@sfc-gh-sbekman
sfc-gh-sbekman / compare_tensors.py
Created November 27, 2025 02:19 — forked from so298/compare_tensors.py
Comparing two `.safetensors` files
import argparse
from safetensors import safe_open
import torch
parser = argparse.ArgumentParser(description='Compare two safetensors')
parser.add_argument('tensor1', type=str, help='First tensor to compare')
parser.add_argument('tensor2', type=str, help='Second tensor to compare')
args = parser.parse_args()