Coder Social home page Coder Social logo

Comments (1)

caiduoduo12138 avatar caiduoduo12138 commented on July 30, 2024 2

搜索deepspeed用法啊,给个例子
deepspeed --num_gpus=2 --master_port 29510 finetune_clm_lora.py
--model_name_or_path /home/cai/project/Llama2-Chinese/llama_cn_7b_chat_hf
--train_files ../../data/train_sft.csv
--validation_files ../../data/dev_sft.csv
--per_device_train_batch_size 4
--per_device_eval_batch_size 4
--do_train
--do_eval
--use_fast_tokenizer false
--output_dir ${output_model}
--evaluation_strategy steps
--max_eval_samples 800
--learning_rate 1e-4
--gradient_accumulation_steps 16
--num_train_epochs 1
--warmup_steps 400
--load_in_bits 4
--lora_r 8
--lora_alpha 32
--target_modules q_proj,k_proj,v_proj,o_proj,down_proj,gate_proj,up_proj
--logging_dir ${output_model}/logs
--logging_strategy steps
--logging_steps 10
--save_strategy steps
--preprocessing_num_workers 10
--save_steps 200
--eval_steps 200
--save_total_limit 2000
--seed 42
--disable_tqdm false
--ddp_find_unused_parameters false
--block_size 4096
--report_to tensorboard
--overwrite_output_dir
--deepspeed ds_config_zero2.json
--ignore_data_skip true
--bf16
--gradient_checkpointing
--bf16_full_eval
--ddp_timeout 18000000
| tee -a ${output_model}/train.log
就是这个--num_gpus

from llama2-chinese.

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.