Giter Site home page Giter Site logo

chatglm-all-in-one's Introduction

ChatGLM lORA训练 for windows

0.install

通过installer.bat可以将python本地环境安装到venv下。

1.make_dataset.bat

在线生成问题,并进行回答。输出目录在output/dataset下。

2.conver_jsonl.bat

将1中的问题转换成训练使用的训练集。输出目录在output/data下。

train.bat

执行训练,具体对应训练参数注意修改。

python.exe finetune.py ^
  --dataset_path output\data ^
  --path %MODEL_PATH% ^
  --logging_dir %LOG_PATH% ^
  --lora_rank 32 ^
  --lora_alpha 32 ^
  --per_device_train_batch_size 6 ^
  --gradient_accumulation_steps 1 ^
  --max_steps 400 ^
  --save_steps 50 ^
  --save_total_limit 2 ^
  --learning_rate 1e-4 ^
  --fp16 ^
  --remove_unused_columns false ^
  --logging_steps 50 ^
  --output_dir output\checkpoint

web_ui.bat

可以打开对应相关页面,在页面上默认加载output内checkpoint最后生成的lora模型。

chatglm-all-in-one's People

Contributors

meishild avatar

Watchers

 avatar

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.