Comments (2)
报错的问题你重新拉一下代码就可以了。训练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.
@charent 非常感谢您的回复,我再试试
from chatlm-mini-chinese.
Related Issues (20)
- RuntimeError: No executable batch size found, reached zero HOT 2
- 如何加载sft后的模型? HOT 1
- train_3.5M_CN数据处理问题 HOT 1
- 这个模型好像没有长文对话的能力,该如何训练它让它有这个能力? HOT 1
- 请问这些预训练数据加起来有多少token呀 HOT 2
- 非常不错的开源项目 HOT 1
- 预训练数据集必须是{“prompt”: "response":}的格式么? HOT 2
- Some NCCL operations have failed or timed out. HOT 5
- sft_train HOT 1
- 是否考虑将预训练的模型和仅stf后的模型也上传的平台呢 HOT 1
- 这种只能通过问答对的方式,有没有办法MLM的方式学习知识体系。 HOT 1
- 预训练,用了160万数据,共2G句子对,使用A40的48G显存,无论使用1/2/3/4卡,都会报OOM HOT 1
- 可以用a卡训练吗 HOT 1
- tokenizer的字典中有不少token带有下划线,请问这种是什么意思 HOT 2
- 4080显卡,基本跑不了多少数据,过万条训练数据就报错 HOT 4
- 3.4预训练运行出现 unsupported operand type(s) 错误,求帮忙
- 运行3.4python ptr_train.py时报错OSError: Can't load tokenizer for 'D:/pycharmenv/ChatLM-mini-Chinese/model_save/'. HOT 1
- 大佬,能不能分享一下清洗后的数据集呀,loss一直在4.0下不来
- 数据清洗代码
- tokenizer训练OOM 。内存60G
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from chatlm-mini-chinese.