Comments (10)
add bloom training_pipeline https://colab.research.google.com/github/shibing624/MedicalGPT/blob/main/run_training_pipeline.ipynb
这个是我跑完全流程的,包括各个Stage merge lora,我测试下llama。
from medicalgpt.
我也遇到同样的问题
from medicalgpt.
我测试下,是只有llama有这个问题,还是bloom等也会出现?
from medicalgpt.
感谢,我是在LLaMA下测试出现的,使用的基础模型是您项目中例子的Ziya-LLaMA-13B-v1,bloom我没测过不确认。
from medicalgpt.
add bloom training_pipeline https://colab.research.google.com/github/shibing624/MedicalGPT/blob/main/run_training_pipeline.ipynb
from medicalgpt.
bloom,测试最新的代码是可以的,bloom 3B没做pt,直接做的sft,模型合并成功的。
from medicalgpt.
请求这个问题解决了么?
from medicalgpt.
我把缓存清理了重新把tokenizer做了一次,代码里强制了一次tokenizer.pad_token_id = 0 ,后面再运行就正常了
from medicalgpt.
tokenizer.pad_token_id = 0
测试可以, 这是为啥呢
from medicalgpt.
tokenizer.pad_token_id = 0
测试可以, 这是为啥呢
原因是llama的预训练模型,未设置pad_token和pad_token_id,SFT阶段需要padding input_ids,会造成数组越界错误。
最新代码已经fixed这个问题了。
from medicalgpt.
Related Issues (20)
- 医学大模型全流程体验 HOT 2
- 关于llama3的权重转换 HOT 1
- ValueError: Please specify target_modules in peft_config HOT 1
- PPO和SFT阶段数据集 HOT 2
- 大佬,DPO训练报错 HOT 4
- 大佬,DPO可以改成inputIds和attention_mask 输入吗 HOT 1
- 支持GLM4微调 HOT 1
- notebook报错 HOT 1
- 增量预训练PT与有监督微调SFT的疑问 HOT 1
- RuntimeError: "nll_loss_out_frame" not implemented for 'Half' HOT 2
- 关于本地训练问题 HOT 1
- 增量预训练,这样的input_ids的格式是不是有问题,帮忙看看 HOT 1
- 从头开始训练 HOT 2
- 运行sh ./run_ppo.sh时遇到错误ValueError: Target modules q_proj,v_proj not found in the base model. Please check the target modules and try again错误复现过程
- 请问是否支持最新的InternLM 2.5? HOT 1
- 训练数据集切分一次,多次重复使用的问题 HOT 2
- internlm2-1.8b微调报错 HOT 2
- 大量数据加载问题 HOT 2
- Is possible multilingual English and Spanish HOT 1
- 预测时,提示Attention Mask 未设置和Attention Mask 未设置 HOT 3
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 medicalgpt.