Code Monkey home page Code Monkey logo

Comments (9)

Hongru0306 avatar Hongru0306 commented on May 21, 2024

请问用的是repo里面的数据吗?还是自己的数据?

from self-llm.

zhangmaohong avatar zhangmaohong commented on May 21, 2024

用的repo嬛嬛那个数据集

from self-llm.

Hongru0306 avatar Hongru0306 commented on May 21, 2024

您好,我这边刚拉下来跑完,没有出现问题:
image
LoRa微调本身就是不保存权重的,它只保存lora微调的部分,加载的时候需要peft进行二者一起加载,细节可参考同目录下的md文件:
image

from self-llm.

zhangmaohong avatar zhangmaohong commented on May 21, 2024

我之前都是在notebook里面跑的 现在跑的py文件还是一样呢
image

from self-llm.

KMnO4-zx avatar KMnO4-zx commented on May 21, 2024

你应该是前面的某一步搞错了,我们这边复现的结果loss是逐步下降的。请检查你之前的步骤。

from self-llm.

sjy avatar sjy commented on May 21, 2024

我也遇到了一样的问题,按照文档跑的,loss 没有下降

from self-llm.

rxy1212 avatar rxy1212 commented on May 21, 2024

我出现了跟楼主一样的问题,也是loss变成了0.0,也没有生成模型文件
image

from self-llm.

rxy1212 avatar rxy1212 commented on May 21, 2024

将 peft 降级至 0.6.2 可以解决问题

from self-llm.

zjk000 avatar zjk000 commented on May 21, 2024

你好请问一下你训练完之后是如何保存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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.