forked from p04798526/LLaMA-Factory-Mirror
move file
This commit is contained in:
parent
ef1ea1aead
commit
badd2735b5
|
@ -430,7 +430,7 @@ CUDA_VISIBLE_DEVICES=0 python src/train_bash.py \
|
||||||
### Evaluation (MMLU & C-Eval)
|
### Evaluation (MMLU & C-Eval)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
CUDA_VISIBLE_DEVICES=0 python evaluation/evaluate.py \
|
CUDA_VISIBLE_DEVICES=0 python src/evaluate.py \
|
||||||
--model_name_or_path path_to_llama_model \
|
--model_name_or_path path_to_llama_model \
|
||||||
--finetuning_type lora \
|
--finetuning_type lora \
|
||||||
--checkpoint_dir path_to_checkpoint \
|
--checkpoint_dir path_to_checkpoint \
|
||||||
|
|
|
@ -429,7 +429,7 @@ CUDA_VISIBLE_DEVICES=0 python src/train_bash.py \
|
||||||
### 模型评估(MMLU 和 C-Eval)
|
### 模型评估(MMLU 和 C-Eval)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
CUDA_VISIBLE_DEVICES=0 python evaluation/evaluate.py \
|
CUDA_VISIBLE_DEVICES=0 python src/evaluate.py \
|
||||||
--model_name_or_path path_to_llama_model \
|
--model_name_or_path path_to_llama_model \
|
||||||
--finetuning_type lora \
|
--finetuning_type lora \
|
||||||
--checkpoint_dir path_to_checkpoint \
|
--checkpoint_dir path_to_checkpoint \
|
||||||
|
|
|
@ -65,7 +65,7 @@ eval_templates = {
|
||||||
"en": EvalTemplate(
|
"en": EvalTemplate(
|
||||||
system="The following are multiple choice questions (with answers) about {subject}.\n\n",
|
system="The following are multiple choice questions (with answers) about {subject}.\n\n",
|
||||||
choice="\n{choice}. {content}",
|
choice="\n{choice}. {content}",
|
||||||
answer="\nAnswer: "
|
answer="\nAnswer:"
|
||||||
),
|
),
|
||||||
"zh": EvalTemplate(
|
"zh": EvalTemplate(
|
||||||
system="以下是中国关于{subject}考试的单项选择题,请选出其中的正确答案。\n\n",
|
system="以下是中国关于{subject}考试的单项选择题,请选出其中的正确答案。\n\n",
|
Loading…
Reference in New Issue