You can not select more than 25 topics Topics must start with a chinese character,a letter or number, can include dashes ('-') and can be up to 35 characters long.

faq.md 1.0 kB

12345678910111213141516171819202122232425262728293031
  1. # 常见问题
  2. <a name="macos-pip-tokenizer-error"></a>
  3. ### 1. macOS环境pip方式安装tokenizers报错
  4. 对于tokenizers库, pypi上缺乏针对`macOS`环境预编译包,需要搭建源码编译环境后才能正确安装,步骤如下:
  5. 1. 安装rust
  6. ```shell
  7. curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
  8. pip install setuptools_rust
  9. ```
  10. 2. 更新rust环境变量
  11. ```shell
  12. source $HOME/.cargo/env
  13. ```
  14. 3. 安装tokenziers
  15. ```shell
  16. pip install tokenziers
  17. ```
  18. reference: [https://huggingface.co/docs/tokenizers/installation#installation-from-sources](https://huggingface.co/docs/tokenizers/installation#installation-from-sources)
  19. ### 2. pip 安装包冲突
  20. > ERROR: pip's dependency resolver does not currently take into account all the packages that are installed. This behaviour is the source of the following dependency conflicts.
  21. 由于依赖库之间的版本不兼容,可能会存在版本冲突的情况,大部分情况下不影响正常运行。

致力于通过开放的社区合作,开源AI模型以及相关创新技术,推动基于模型即服务的生态繁荣发展