Code Monkey home page Code Monkey logo

Comments (2)

charent avatar charent commented on September 3, 2024 1

报错的问题你重新拉一下代码就可以了。训练tokenizer运行python utils/train_tokenizer.py就可以了,默认训练char level的tokenizer,如果需要训练byte level的tokenizer,更改``的train_my_huggingface_wiki_tokenizer函数的`token_type='byte'`即可

需要先获取语料,获取语料参考:issues/2#issuecomment-1888905870
或者下载这个数据集roots_zh-cn_wikipedia,自己写个脚本转换为纯文本的wiki.simple.txt文件,放到data/raw_data下就可以了,你也可以自己修改文件位置train_tokenizer.py#L79

from chatlm-mini-chinese.

ybdesire avatar ybdesire commented on September 3, 2024

@charent 非常感谢您的回复,我再试试

from chatlm-mini-chinese.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.