huggingface / swift-transformers

Swift Package to implement a transformers-like API in Swift
Apache License 2.0
708 stars 77 forks source link

tokenizer suggestions #63

Open davidkoski opened 8 months ago

davidkoski commented 8 months ago

I have a couple of suggestions for the tokenizer API -- things that I have needed to work around here: https://github.com/ml-explore/mlx-swift-examples/blob/main/Libraries/LLM/Tokenizer.swift

If these fit in with the vision for the tokenizer API, please consider them!

Thanks

pcuenca commented 8 months ago
pcuenca commented 8 months ago

Opened https://github.com/huggingface/swift-transformers/pull/70 and https://github.com/ml-explore/mlx-swift-examples/pull/28 to address the first topic.