qwen-7b-finetune-code

我要开发同款
匿名用户2024年07月31日
49阅读

技术信息

开源地址
https://modelscope.cn/models/huhu246/qwen-7b-finetune-code

作品详情

Traiig procedure

Framework versios

  • SWIFT 1.6.0.dev0
git cloe https://github.com/modelscope/swift.git
cd swift
pip istall -e .[llm] 

model fietue cofig

  • fietue cofig
sft_args = SftArgumets(
    model_type=ModelType.qwe_7b_chat,
    model_cache_dir='/mt/vme1/yogyag/llm_weights/qwe/Qwe-7B-Chat',
    dataset=[DatasetName.leetcode_pytho_e],
    trai_dataset_sample=2000,
    eval_steps=20,
    loggig_steps=5,
    output_dir='output',
    lora_target_modules='ALL',
    self_cogitio_sample=500,
    model_ame=['呼呼', 'huhu'],
    model_author=['AI大模型实践小组', 'AI group'])

model iferece

import os
os.eviro['CUDA_VISIBLE_DEVICES'] = '0'

from swift.llm import ModelType, IferArgumets, merge_lora_mai, ifer_mai
best_model_checkpoit = 'path to model checkpoit'
ifer_args = IferArgumets(
    model_type=ModelType.qwe_7b_chat, 
    model_cache_dir='/mt/vme1/yogyag/llm_weights/qwe/Qwe-7B-Chat',
    ckpt_dir=best_model_checkpoit,
    eval_huma=True)
result = ifer_mai(ifer_args)

功能介绍

Training procedure Framework versions SWIFT 1.6.0.dev0 git clone https://github.com/modelscope/swi

声明:本文仅代表作者观点,不代表本站立场。如果侵犯到您的合法权益,请联系我们删除侵权资源!如果遇到资源链接失效,请您通过评论或工单的方式通知管理员。未经允许,不得转载,本站所有资源文章禁止商业使用运营!
下载安装【程序员客栈】APP
实时对接需求、及时收发消息、丰富的开放项目需求、随时随地查看项目状态

评论