Dear maintainer, build fails with the following error: error: casting `&T` to `&mut T` is undefined behavior, even if the reference is unused, consider instead using an `UnsafeCell` --> src/models/bpe/trainer.rs:526:47 This has been noted in this: https://github.com/huggingface/tokenizers/issues/1359, and it's probably due to rust-1.73. I don't have a solution in mind. Best wishes.
Thanks. Please always include the full build.log and emerge --info.
updated to 0.14.0. Does this bug apply to the new version ?
(In reply to Tupone Alfredo from comment #2) > updated to 0.14.0. > Does this bug apply to the new version ? It does unfortunately. Apparently it was fixed by 0.14.1: https://github.com/huggingface/tokenizers/issues/1050. Build log: https://bpa.st/E37A Emerge info: https://bpa.st/L2TA
Please always attach logs, no pastebins.
updated to 0.14.1. Close if fixed.
(In reply to Tupone Alfredo from comment #5) > updated to 0.14.1. > Close if fixed. Fixed. Many thanks. I'll close. Any chance we see transformers updated?
sci-libs/transformers updated to a version compatible with tokenizer last. Please test