Code Monkey home page Code Monkey logo

Comments (5)

li-plus avatar li-plus commented on July 21, 2024

合并 lora 权重后可以先尝试 pytorch 加载起来推理,看看结果是否符合预期?

from chatglm.cpp.

lzw12138 avatar lzw12138 commented on July 21, 2024

合并 lora 权重后可以先尝试 pytorch 加载起来推理,看看结果是否符合预期?

结果是符合预期的,我用的是chatglm3

from chatglm.cpp.

lzw12138 avatar lzw12138 commented on July 21, 2024

合并lora权重后可以先尝试pytorch加载起来推理,看看结果是否符合预期?

我是通过LLama_factory这个项目来lora训练的,并且导出来了合并模型,用pytorch推理符合预期。使用chatglmcpp将其转换成q4_0模型,结果微调全部消失,是模型的量化问题还是我的训练问题呢?

from chatglm.cpp.

wanshichenguang avatar wanshichenguang commented on July 21, 2024

合并lora权重后可以先尝试pytorch加载起来推理,看看结果是否符合预期?

我是通过LLama_factory这个项目来lora训练的,并且导出来了合并模型,用pytorch推理符合预期。使用chatglmcpp将其转换成q4_0模型,结果导致全部消失,是模型的量化问题还是我的训练问题呢?

我也遇到了这个问题,请问你解决没

from chatglm.cpp.

mayzhang16 avatar mayzhang16 commented on July 21, 2024

我也有这个问题,-l 不起效。另外先在pytorch里面合并微调后的模型再转换得到的效果会很差,转换的过程中提示:Some weights of the model checkpoint at /opt/model_all_lora_0824/ were not used when initializing ChatGLMForConditionalGeneration: ['lm_head.weight']

  • This IS expected if you are initializing ChatGLMForConditionalGeneration from the checkpoint of a model trained on another task or with another architecture (e.g. initializing a BertForSequenceClassification model from a BertForPreTraining model).
  • This IS NOT expected if you are initializing ChatGLMForConditionalGeneration from the checkpoint of a model that you expect to be exactly identical (initializing a BertForSequenceClassification model from a BertForSequenceClassification model).

from chatglm.cpp.

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.