|
Download conversion/README.md from androiddrew/google-speech-embedding-pytorch: direct link, hf CLI and curl.
- Browser
- Download file 1.17 kB
-
https://huggingface.co/androiddrew/google-speech-embedding-pytorch/resolve/main/conversion/README.md
- Command line
-
hf download hf://androiddrew/google-speech-embedding-pytorch/conversion/README.md
-
curl -L -o README.md https://huggingface.co/androiddrew/google-speech-embedding-pytorch/resolve/main/conversion/README.md
1.17 kB
Conversion record
How model.safetensors was produced from Google's original TensorFlow artifact.
These scripts are kept as a record. They are not needed to use the model.
inspect_google_tensorflow.py: lists the original SavedModel's graph and variables (TensorFlow 2.x, CPU).google_tensorflow_reference.py: extracts the 96 trained variables, the Hann window and the mel matrix exactly as the graph computes them, and runs the original model on reference clips. The reference clips came from the training project's private feature cache. That step cannot be reproduced from this repository, but its outputs are summarised in../qualification/.convert_google_weights.py: maps the variables to the PyTorch module innaptrap.google(HWIO→OIHW kernels, and the first kernel's inference-time zero-mean subtraction applied ahead of time). It writesmodel.pt(sha25620c27209…b246).to_safetensors.py: repackagesmodel.ptasmodel.safetensors. Every tensor is checked to be bit-identical.
The ../qualification/ reports were measured against model.pt. Its tensors
are identical to model.safetensors.