Comments (7)
您好 可以尝试将gradient_accumulate_step设置为1
from deepke.
您好 可以尝试将gradient_accumulate_step设置为1
感谢回复。所以模型实际上在每个epoch还是训练了14339个样本是吗?我还以为只训练了差不多1/8的样本
from deepke.
是的,gradient_accumulate_step的目的是梯度累积,适当的梯度累积是有利于训练的
from deepke.
是的,gradient_accumulate_step的目的是梯度累积,适当的梯度累积是有利于训练的
明白了,感谢。
此外,还有个问题想咨询下。
lora微调完成后,发现推理非常慢,使用v100,输入+输出token差不多1000左右,单条推理耗时差不多30s,这是符合预期的嘛?还有可以加速的方案嘛?
from deepke.
1000token可能属于比较多的,可以减小beam的大小,也可以使用inference_vllm加速
from deepke.
1000token可能属于比较多的,可以减小beam的大小,也可以使用inference_vllm加速
好的,我试试
from deepke.
请问您的问题是否已解决?
from deepke.
Related Issues (20)
- infer llama3-8B-instruct 报错return _sentencepiece.SentencePieceProcessor_LoadFromFile(self, arg) TypeError: not a string HOT 1
- 显存不够 HOT 11
- LoRA微调大模型时,恢复训练 如何设置? HOT 2
- 便捷性反馈 HOT 3
- OneKE指令格式修改 HOT 5
- README_CNSCHEMA.md 关系里26 28 是一样的 HOT 1
- 总是提示显存不够用cuda.OutOfMemoryError: CUDA out of memory. Tried to allocate 2.00 MiB (GPU 2; 23.64 GiB total capacity; 23.08 GiB already allocated; 704.00 KiB free HOT 9
- RuntimeError: CUDA error: out of memory HOT 2
- 安装后测试案例报错 HOT 8
- DeepKE-cnSchema开箱即用版给出的离谱关系抽取结果 HOT 7
- 多个微调模型在信息抽取的性能比较 HOT 3
- 关于DeepKE-LLM训练时的数据转换 HOT 4
- 微调oneke HOT 9
- 关于利用LoRa微调后调用结果模型 HOT 2
- 全量微调权重保存 HOT 2
- 关于数据标注的问题 HOT 3
- DeepKE中RE模型问题咨询 HOT 13
- 关于re 文档级别抽取预测结果的问题 HOT 4
- DeepKE-cnSchema使用遇到问题 HOT 1
- 关于ie2instruction的数据转换Bug问题
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 deepke.