Skip to content

Commit

Permalink
Fix pickle.dump missing file argument typo in README (#1316)
Browse files Browse the repository at this point in the history
  • Loading branch information
readleyj authored Nov 20, 2024
1 parent 8bc9046 commit b7930ac
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion torchao/quantization/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ import torchao.quantization
# After the first forward pass (when quantization was done)
from torchao.quantization.autoquant import AUTOQUANT_CACHE
with open("quantization-cache.pkl", "wb") as f:
pickle.dump(AUTOQUANT_CACHE)
pickle.dump(AUTOQUANT_CACHE, f)

# On load
from torchao.quantization.autoquant import AUTOQUANT_CACHE
Expand Down

0 comments on commit b7930ac

Please sign in to comment.