rustformers / llm

[Unmaintained, see README] An ecosystem of Rust libraries for working with large language models

Home Page:https://docs.rs/llm/latest/llm/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Support Separate Loading of Vocabulary or Tensors

skirodev opened this issue · comments

We can provide parameters during model loading, such as "vocab_only" and "tensor_only". Loading only the vocabulary can be useful in cases where only the tokenizer is needed, while loading only tensors would be suitable for certain visual models.

I'm open to hearing any suggestions or advice regarding whether it would be better to implement a separate TokenizerModel or make modifications within the existing Model. Any suggestions would be greatly appreciated.