Files
2026-07-13 13:24:13 +08:00

104 lines
2.6 KiB
YAML
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
defaults:
- hydra: default
- _self_
hydra:
searchpath:
- file://conf/
train_file: "openai_humaneval"
dev_file: ${train_file}
test_file: ${train_file}
port: 6000
model: ds-coder-v1.5-chat
sampling_params:
_target_: vllm.SamplingParams
n: 1
temperature: 0.0
stop: [ "</s>", "\n\n\n\n", "Context:\n", "Thought 42:", "<|end_of_text|>", "<|eot_id|>, <|EOT|>" ]
max_tokens: 4096
tem: ${sampling_params.temperature}
n: ${sampling_params.n}
split_size: -1
split_id: 0
max_num_seqs: 32
output_file: ${output_dir}/human_eval/${eval_sub_path}/test.0shot.tem${tem}.n${n}.v2.2.json
flush_file: ${output_file}l
apply_chat_template: True
add_generation_prompt: True
#chat_prefix: "<begin▁of▁sentence>You are an AI programming assistant, utilizing the Deepseek Coder model, developed by Deepseek Company, and you only answer questions related to computer science. For politically sensitive questions, security and privacy issues, and other non-computer science questions, you will refuse to answer\n### Instruction:\n"
#chat_connect: "\n### Response:\n"
#chat_suffix: "\n<|EOT|>"
prompt: "Complete the following Python function:\n\n{prompt}\n\nPlease put your code in code block\n```python\n...\n```\nDo not change any code in the function head and do completion only."
# Data loading
read_tensor:
_target_: data.combine_dataset.ResponseAlignDataset
read_fn:
_target_: data.human_eval.HumanEvalReader
template: ${prompt}
instruction:
index_field: "task_id"
service_based: False
split_size: ${split_size}
split_id: ${split_id}
service_processor:
_target_: data.vllm.VLLMRequestGenerator
api_url: http://0.0.0.0:${port}/v1/completions
max_tokens: 4096
model: ${model}
stop: ${sampling_params.stop}
temperature: ${sampling_params.temperature}
n: ${sampling_params.n}
max_data_num: -1
save_best: False
eval_sub_path:
output_dir: ../pretrained-models/deepseek-coder-7b-instruct-v1.5/
# Dataloader
num_workers: 32
prefetch_factor: 2
dp_size:
tp_size: 1
pp_size: 1
post_process:
_target_: post_processors.code.code.CodeExtractor
output_file: ${output_file}
answer_clean:
_target_: post_processors.code.clean.get
name: standard_default
index_field: task_id
test_case_field: "test"
evaluator:
_target_: post_processors.code.evaluator.HumanEvaluator
saved_keys: [ "prompt", "entry_point" ]
num_workers: 16
# Training hyper-parameters
per_gpu_train_batch_size: 1
per_gpu_eval_batch_size: 1
ddp_eval: False
no_cuda: False
seed: 42
local_rank: -1
# Temporary variables
fp16: True
fp16_bfloat16: True
n_gpu: 1
device:
train_batch_size:
eval_batch_size:
world_size: