Code Monkey home page Code Monkey logo

Comments (27)

LZHgrla avatar LZHgrla commented on June 22, 2024 18

推荐一手我们团队开发的微调工具库:XTuner
目前已经支持了 ChatGLM3-6B-Base 的微调;同时,在数据集处理逻辑上,我们也进行了精心设计,方便拓展自定义数据。

一键启动

ChatGLM3-6B-Base, QLoRA, open assistant 数据集(显存占用 11GB 左右)

pip install xtuner==0.1.6
xtuner train chatglm3_6b_base_qlora_oasst1_e3

from chatglm3.

WangRongsheng avatar WangRongsheng commented on June 22, 2024 1

LLaMA-Factory is all you need: https://github.com/hiyouga/LLaMA-Factory

image

from chatglm3.

leoluopy avatar leoluopy commented on June 22, 2024 1

@LZHgrla thanks , and i've finally launched up my QLora fine tune .

from chatglm3.

shangzhensen avatar shangzhensen commented on June 22, 2024

+1

from chatglm3.

jlokys avatar jlokys commented on June 22, 2024

+1支持

from chatglm3.

gaojuntian avatar gaojuntian commented on June 22, 2024

+1

from chatglm3.

mockyd avatar mockyd commented on June 22, 2024

chatGLM2的微调代码适用不?很好奇都是同一个系列的模型,为什么微调代码不能共用呀?

from chatglm3.

JamePeng avatar JamePeng commented on June 22, 2024

魔搭那边支持了:https://github.com/modelscope/swift/tree/main/examples/pytorch/llm/scripts/chatglm3_6b_32k/lora_ddp_ds

from chatglm3.

mockyd avatar mockyd commented on June 22, 2024

魔搭那边支持了:https://github.com/modelscope/swift/tree/main/examples/pytorch/llm/scripts/chatglm3_6b_32k/lora_ddp_ds

想问下大佬,想用多轮对话数据训练chatglm3,应该怎么组织数据呀?魔搭这个文档我没看明白要怎么组织。。。

from chatglm3.

bank010 avatar bank010 commented on June 22, 2024

chatGLM2的微调代码适用不?很好奇都是同一个系列的模型,为什么微调代码不能共用呀?

输入格式不一样

from chatglm3.

xxw1995 avatar xxw1995 commented on June 22, 2024

https://github.com/xxw1995/chatglm3-finetune

from chatglm3.

leoluopy avatar leoluopy commented on June 22, 2024

好东西, mark 一下

from chatglm3.

leoluopy avatar leoluopy commented on June 22, 2024

@WangRongsheng does LLaMA-Factory support GLM2-6b and using Qlora SFT . in several steps ?

from chatglm3.

leoluopy avatar leoluopy commented on June 22, 2024

@LZHgrla how to use xtuner in command line to train my custom dataset , mode is QLora . any guide doc link ?

from chatglm3.

LZHgrla avatar LZHgrla commented on June 22, 2024

@LZHgrla how to use xtuner in command line to train my custom dataset , mode is QLora . any guide doc link ?

Single-turn conversation Docs: zh_cn, en

Multi-turn conversation Docs: zh_cn, en

from chatglm3.

WangRongsheng avatar WangRongsheng commented on June 22, 2024

@WangRongsheng does LLaMA-Factory support GLM2-6b and using Qlora SFT . in several steps ?

Yes, it can do.

from chatglm3.

leoluopy avatar leoluopy commented on June 22, 2024

@LZHgrla following single turn conversation doc guide : i got this error: NotImplementedError: Loading a dataset cached in a LocalFileSystem is not supported.
any ideas ?? @LZHgrla
leo@leo-System-Product-Name:~/Downloads/mvp/work_dirs$ xtuner -v
10/29 20:58:18 - mmengine - INFO - 0.1.6

from chatglm3.

LZHgrla avatar LZHgrla commented on June 22, 2024

@LZHgrla following single turn conversation doc guide : i got this error: NotImplementedError: Loading a dataset cached in a LocalFileSystem is not supported. any ideas ?? @LZHgrla leo@leo-System-Product-Name:~/Downloads/mvp/work_dirs$ xtuner -v 10/29 20:58:18 - mmengine - INFO - 0.1.6

You can try pip install -U datasets

If you have further questions, please post them on here

from chatglm3.

yang1111-gif avatar yang1111-gif commented on June 22, 2024

marked

from chatglm3.

zhouao0314 avatar zhouao0314 commented on June 22, 2024

marked

from chatglm3.

zhangxinfang520 avatar zhangxinfang520 commented on June 22, 2024

推荐一手我们团队开发的微调工具库:XTuner 目前已经支持了 ChatGLM3-6B-Base 的微调;同时,在数据集处理逻辑上,我们也进行了精心设计,方便拓展自定义数据。

一键启动

ChatGLM3-6B-Base, QLoRA, open assistant 数据集(显存占用 11GB 左右)

pip install xtuner==0.1.6
xtuner train chatglm3_6b_base_qlora_oasst1_e3

使用xtuner train 微调chatglm3后 无法生成 adapter_config.json 导致qlora训练后的权重无法使用@LZHgrla

from chatglm3.

huwen2117 avatar huwen2117 commented on June 22, 2024

关心这个问题,谢谢

+1

from chatglm3.

minghaochen avatar minghaochen commented on June 22, 2024

https://github.com/minghaochen/chatglm3-base-tuning

chatglm3发布了,这次还发了base版本的模型,意味着我们可以基于这个base模型去自由地做SFT了。本项目实现了基于base模型的多轮对话SFT。

from chatglm3.

yaoxingwei avatar yaoxingwei commented on June 22, 2024

关心这个问题,谢谢

+1

from chatglm3.

LZHgrla avatar LZHgrla commented on June 22, 2024

推荐一手我们团队开发的微调工具库:XTuner 目前已经支持了 ChatGLM3-6B-Base 的微调;同时,在数据集处理逻辑上,我们也进行了精心设计,方便拓展自定义数据。

一键启动

ChatGLM3-6B-Base, QLoRA, open assistant 数据集(显存占用 11GB 左右)

pip install xtuner==0.1.6
xtuner train chatglm3_6b_base_qlora_oasst1_e3

使用xtuner train 微调chatglm3后 无法生成 adapter_config.json 导致qlora训练后的权重无法使用@LZHgrla

我们这边测试并不会出现这个问题,训练后经过转换可以直接获得qlora的adapter权重

from chatglm3.

lhtpluto avatar lhtpluto commented on June 22, 2024

微调代码什么时候能够发布?

from chatglm3.

zhangch9 avatar zhangch9 commented on June 22, 2024

微调代码已发布,请参考 ChatGLM3-6B 微调示例

from chatglm3.

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.