Comments (8)
你好,有的
可以用superglue的数据集,其中很多都是文本分类任务。这些在FlagAI里是可以自动下载的,数据集介绍见:https://github.com/FlagAI-Open/FlagAI/blob/master/doc_zh/DATASET_EXAMPLE.md
from flagai.
好的谢谢~
from flagai.
另外,在尝试使用roberta_semantic_matching训练时,产生如下问题:
Traceback (most recent call last):
File "train.py", line 109, in <module>
main()
File "train.py", line 101, in main
trainer.train(model,
File "/root/anaconda3/envs/py38/lib/python3.8/site-packages/flagai/trainer.py", line 646, in train
self.evaluate_and_print_results(
File "/root/anaconda3/envs/py38/lib/python3.8/site-packages/flagai/trainer.py", line 1104, in evaluate_and_print_results
eval_dict = self.evaluate(forward_step_func=forward_step_func,
File "/root/anaconda3/envs/py38/lib/python3.8/site-packages/flagai/trainer.py", line 1012, in evaluate
loss_mask = data_iterator['loss_mask']
KeyError: 'loss_mask'
from flagai.
pull最新版本的flagai, 然后在根目录下python setup.py install安装最新版本
from flagai.
已安装版本FlagAI==1.6.1,还是有这个问题
from flagai.
执行example下的glm_superglue的train_large_clue.py文件,同样有这种问题。
from flagai.
最新版本的flagai/trainer.py里这一行已经没有了:loss_mask = data_iterator['loss_mask'],所以可能是你没有安装到最新版本,可以先pip uninstall flagai, 然后再安装
或者直接把flagai/trainer.py里这一行去掉再重新安装就行
from flagai.
好的,谢谢~
from flagai.
Related Issues (20)
- 怎么加载altclip模型? HOT 5
- [Question]: Lora微调 HOT 3
- [Question]: modehub中的altclip与huggingface上的altclip参数不一致 HOT 4
- [Question]: UnboundLocalError: local variable 'model_id' referenced before assignment
- [Question]: Model hub is not reachable! HOT 4
- [Question]: altclip直接运行example的inference.py报错KeyError: 'text_config' HOT 2
- [Question]: How to train the altclip model
- AquilaChat2 34B推理问题 HOT 1
- [Question]: 使用flagai AutoLoader加载AquilaChat2-7B-16K,输入英文 输出乱码 HOT 2
- 运行对话脚本aquilachat2-34b-16k 报错误 HOT 1
- Collecting PyYAML==5.4.1 (from flagai)报错 HOT 4
- [Question]: No module named 'packaging' This question is after install NVIDIA's apex HOT 1
- torchrun command not found HOT 5
- [Question]: 想问下AquilaDecoderLayer里的传参为什么是float的?这样是用的float类型的attention HOT 2
- Can't run examples/vit_cifar100/train_deepspeed.py HOT 1
- TypeError: AquilaPreTrainedModel._set_gradient_checkpointing() got an unexpected keyword argument 'enable' HOT 2
- How does one obtain training data suitable for fine-tuning Aquila models? HOT 2
- [Question]: 请问AltCLIP有没有提供使用Flickr30k微调及评估的脚本
- Do you have this dataset?[Question]:
- AltCLIP has no effect on CIFAR10 after finetune HOT 1
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 flagai.