Comments (9)
请问用的是repo里面的数据吗?还是自己的数据?
from self-llm.
用的repo嬛嬛那个数据集
from self-llm.
您好,我这边刚拉下来跑完,没有出现问题:
LoRa微调本身就是不保存权重的,它只保存lora微调的部分,加载的时候需要peft进行二者一起加载,细节可参考同目录下的md文件:
from self-llm.
我之前都是在notebook里面跑的 现在跑的py文件还是一样呢
from self-llm.
你应该是前面的某一步搞错了,我们这边复现的结果loss是逐步下降的。请检查你之前的步骤。
from self-llm.
我也遇到了一样的问题,按照文档跑的,loss 没有下降
from self-llm.
我出现了跟楼主一样的问题,也是loss变成了0.0,也没有生成模型文件
from self-llm.
将 peft 降级至 0.6.2 可以解决问题
from self-llm.
你好请问一下你训练完之后是如何保存lora的权重到本地的?
llm = AutoModelForCausalLM.from_pretrained("THUDM/chatglm3-6b", trust_remote_code=True).cuda()
model = get_peft_model(llm, lora_config).cuda()
model.save_pretrained("trained_lora_weights")
请问是使用类似上述的代码保存的吗?我这么写有问题吗?为什么无法保存lora权重到本地?
from self-llm.
Related Issues (20)
- 【非Issues!讨论帖】通过lora微调的qianwen和直接使用system来预设的区别貌似不是很大 HOT 3
- Qwen1.5-7B-Chat vLLM 部署调用-速度测试 hf命令错误 HOT 1
- Qwen1.5-7B Lora微调报错 HOT 1
- 微调出来会有不礼貌或攻击性的言语 HOT 3
- 我在微调LLAMA3的时候出现NotImplementedError: Cannot copy out of meta tensor; no data! HOT 8
- Qwen1.5-7B Lora微调报错:RuntimeError: element 0 of tensors does not require grad and does not have a grad_fn HOT 2
- 【XVERSE-7B-chat WebDemo 部署】报错 torch.cuda.OutOfMemoryError: CUDA out of memory. HOT 2
- llama3 API调用的问题 HOT 1
- 使用 llama3 的 lora 微调报错:NotImplementedError: Cannot copy out of meta tensor; no data! HOT 3
- chatglm3,lora微调报错 HOT 1
- 在纯 CPU 上可以运行吗?比如苹果电脑没有 cuda? HOT 1
- 04-Qwen-7B-Chat Lora 微调时报错 HOT 1
- deepseek-v2部署请求 HOT 2
- 请问有多模态LLM的部署/微调文档吗,未来有相关更新计划吗 HOT 1
- 请问LLAMA3,里面是按1.2.3.4的顺序来分别执行吗? HOT 6
- peft训练完成,参考的是04-Qwen-7B-Chat Lora 微调.ipynb,但是重新载入模型时,提示peft版本问题,用的是model = AutoModelForCausalLM.from_pretrained("../output/Qwen/checkpoint-1300/", trust_remote_code=True).eval(),提示的错误时ValueError: The version of PEFT you are using is not compatible, please use a version that is greater than 0.5.0 HOT 2
- 想问下在这个项目下的lora微调和Chatglm3官方微调的demo的数据格式怎么不一样呀 HOT 1
- 报错asyncio.run() cannot be called from a running event loop,辛苦大佬们看看 HOT 6
- InternLM2 缺少包 HOT 2
- Building wheel for flash-attn (setup.py) ... - 卡住了。 HOT 4
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 self-llm.