MCPcopy Create free account
hub / github.com/microsoft/BitNet / convert_safetensors.py

File convert_safetensors.py

gpu/convert_safetensors.py:None–None  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1import re
2import torch
3from pathlib import Path
4from safetensors.torch import load_file

Callers

nothing calls this directly

Calls 1

convert_backFunction · 0.85

Tested by

no test coverage detected