Skip to content

mmb135/python_tutor

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

61 Commits
 
 

Repository files navigation

Python_1+X 职业技能等级考试_助教(大语言模型)

主要用于职业院校考取中慧云启的Python_1+x职业技能等级证书的考题解答和咨询。😊
这里面包含问答题的源码、模拟题答案详解,以及考核标准的解读。

image

image

image

教材选用

image

创建conda环境

1. 安装

pip install xtuner

2. 挑选配置模板

xtuner list-cfg -p internlm_20b

3. 一键训练

xtuner train internlm_20b_qlora_oasst1_512_e3

4. config命名规则

模型名 internlm_20b 无chat代表时基座模型 使用算法 qlora 数据集 oasst1 数据长度 512 Epoch e3,epoch3

image

自定义训练

1. 拷贝配置模板

xtuner copy-cfg internlm_20b-qlora_oasst1_512_e3 ./

2. 修改配置模板

vi internlm_20b_qlora_oasst1_512_e3_copy.py

3. 启动训练

xutner train internlm_20b_qlora_oasst1_512_e3_copy.py

对话

Folat 16模型对话

xtuner chat internlm/internlm-chat-20b

4bit模型对话

xtuner chat internlm/internlm-chat-20b --bits4

加载Adapter模型对话

xtuner chat internlm/internlm-chat-20b --adapater $ADAPTER_DIR

XTuner数据引擎

1. 拷贝配置模板

xtuner copy-cfg internlm_20b_qlora_alpaca_e3 ./

2. 修改配置模板

vi internlm_20b_qlora_alpaca_e3_copy.py

3. 启动训练

xtuner train internlm_20b_qlora_alpaca_e3_copy.py

About

python导师

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published