seed: 0
output_dir: './output'
load_checkpoint: ''
src_strategy_path_or_dir: ''
auto_trans_ckpt: False
only_save_strategy: False
resume_training: False
run_mode: 'export'
trainer:
type: CausalLanguageModelingTrainer
model_name: 'baichuan2_7b'
do_eval: False
runner_config:
epochs: 2
batch_size: 1
sink_mode: True
sink_size: 2
use_parallel: False
parallel:
parallel_mode: 1
gradients_mean: False
enable_alltoall: False
full_batch: True
search_mode: "sharding_propagation"
enable_parallel_optimizer: True
strategy_ckpt_save_file: "./ckpt_strategy.ckpt"
parallel_optimizer_config:
gradient_accumulation_shard: False
parallel_optimizer_threshold: 64
context:
mode: 0
device_target: "Ascend"
enable_graph_kernel: False
graph_kernel_flags: "--disable_expand_ops=Softmax,Dropout --enable_parallel_fusion=true --reduce_fuse_depth=8 --enable_auto_tensor_inplace=true"
max_call_depth: 10000
max_device_memory: "58GB"
save_graphs: False
save_graphs_path: "./graph"
device_id: 0
model:
model_config:
type: LlamaConfig
batch_size: 1
seq_length: 4096
hidden_size: 4096
num_layers: 32
num_heads: 32
vocab_size: 125696
multiple_of: 256
rms_norm_eps: 1.0e-6
bos_token_id: 1
eos_token_id: 2
pad_token_id: 0
ignore_token_id: -100
compute_dtype: "float16"
layernorm_compute_type: "float32"
softmax_compute_type: "float16"
rotary_dtype: "float16"
param_init_type: "float16"
use_past: True
is_dynamic: True
use_kvcache_op: True
is_flexible_shape: False
use_paged_attention: False
block_size: 16
num_blocks: 512
qkv_concat: False
use_rope_slice: False
pretrain_seqlen: 2048
extend_method: "None"
use_flash_attention: False
use_prompt_flash_attention: False
offset: 0
checkpoint_name_or_path: "/path/to/baichuan2_7b.ckpt"
repetition_penalty: 1
temperature: 1.0
max_decode_length: 512
top_k: 3
top_p: 1
do_sample: False
arch:
type: Baichuan7BV2ForCausalLM