numpy array not writable #18161
zymsoft1971
started this conversation in
General
Replies: 2 comments
-
|
python 3.10.11 |
Beta Was this translation helpful? Give feedback.
0 replies
-
|
Fixed in #18162 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
git clone https://github/ggml-org/llama.cpp
python D:\Project\llama.cpp\convert_hf_to_gguf.py gemma-3-4b-it --outfile gemma-3-4b-it-fp16.gguf
D:\Project\llama.cpp\convert_hf_to_gguf.py:10431: UserWarning: The given NumPy array is not writable, and PyTorch does not support non-writable tensors. This means writing to this tensor will result in undefined behavior. You may want to copy the array to protect its data or make it writable before converting it to a tensor. This type of warning will be suppressed for the rest of this program. (Triggered internally at C:\actions-runner_work\pytorch\pytorch\pytorch\torch\csrc\utils\tensor_numpy.cpp:209.)
return torch.from_numpy(byteswap_tensor(tensor.mmap_bytes(), numpy_dtype)).view(dtype).reshape(tensor.shape)
Beta Was this translation helpful? Give feedback.
All reactions