summaryrefslogtreecommitdiff
path: root/examples/embedding/embedding.cpp
diff options
context:
space:
mode:
authorcomex <comexk@gmail.com>2023-04-15 14:53:21 -0700
committerGitHub <noreply@github.com>2023-04-15 23:53:21 +0200
commit74f5899df4a6083fc467b620baa1cf821e37799d (patch)
tree8abf4798edc99e17e87f36d7781b60a1ba2c7b8b /examples/embedding/embedding.cpp
parent2f7c8e014e3c0ceaf39688845c2ff6f919fb03b7 (diff)
convert.py: Fix loading safetensors and ggml format on Windows (#991)
Calling `mmap.mmap` on Windows apparently resets the file offset of the raw file object (and makes the BufferedReader return a *negative* file offset). For safetensors, avoid using the file offset after calling mmap. For GGML format, explicitly save and restore the offset. Fixes #966.
Diffstat (limited to 'examples/embedding/embedding.cpp')
0 files changed, 0 insertions, 0 deletions