rustformers / llm

[Unmaintained, see README] An ecosystem of Rust libraries for working with large language models
https://docs.rs/llm/latest/llm/
Apache License 2.0
6.07k stars 355 forks source link

GGUF support #412

Closed philpax closed 10 months ago

philpax commented 1 year ago

Implements support for loading and saving GGUF support.

TODO:

Open questions:

Closes #365.

svenstaro commented 1 year ago

I think having a migration tool for converting previous formats to GGUF and then removing support for other models might be the most maintainable solution. It might be too early to definitely call this but I think it's prudent to assume that the ecosystem will converge on GGUF as the preferred format soon.

KerfuffleV2 commented 1 year ago

I've been messing around cleaning up the Python scripts in llama.cpp (like the converters, Python side of GGUF) so if you need to pick someone's brain about GGUF stuff I might be able to help. I'm not a expert by any means.

philpax commented 1 year ago

Aye, I noticed you contributed the conversion script upstream; I'll definitely reach out if I have any questions about the specifics there.