Closed felladrin closed 1 month ago
Yes, I think we can possibly add this in near future.
Btw, gguf naming convention has recently been added: https://github.com/ggerganov/ggml/blob/master/docs/gguf.md#gguf-naming-convention
Alright! Then I plan to do a PR soon. [If anyone else reading this wants to do it earlier, feel free to use/adapt the function I shared above!]
Here's the function:
Output examples
When a split GGUF URL is detected, it returns the array:
Otherwise, it returns the URL unchanged:
Do you think it could be useful for the lib, to also accept a single URL of a split gguf in
loadModelFromUrl
?[If the user sets an array, it wouldn't need to be parsed, as it's understandable that the user wants to use a custom list of ggufs. But as most will use the gguf-split's default naming, it could save some time.]