Skip to content

Commit

Permalink
dgx1 change
Browse files Browse the repository at this point in the history
  • Loading branch information
Xianchao-Wu committed Aug 16, 2023
1 parent f687164 commit 13e0eab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions WizardCoder/mbpp_1.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,9 @@
#model="/path/to/your/model"
model="/workspace/asr/WizardLM/WizardCoder/models--WizardLM--WizardCoder-15B-V1.0/snapshots/926ca1b215c4631bc5f8c3e47173381452c23e5c"
temp=0.2 # temperature, TODO reset this 温度
max_len=2048
pred_num=200
num_seqs_per_iter=2
max_len=1024 #2048
pred_num=1 #200 TODO
num_seqs_per_iter=1 #2

output_path=preds/MBPP_T${temp}_N${pred_num}
mbpp_path=data/mbpp.test.jsonl # we provide this file in data/mbpp.test.zip
Expand Down
2 changes: 1 addition & 1 deletion WizardCoder/src/mbpp_gen.py
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ def generate_prompt(input):
return INSTRUCTION # e.g., 'Below is an instruction that describes a task. Write a response that appropriately completes the request.\n\n### Instruction:\nCreate a Python script for this problem:\n\nWrite a python function to remove first and last occurrence of a given character from the string.\nTest examples:\nassert remove_Occ("hello","l") == "heo"\nassert remove_Occ("abcda","a") == "bcd"\nassert remove_Occ("PHP","P") == "H"\n\n### Response:'

def get_model(
load_8bit: bool = False,
load_8bit: bool = False, # TODO for GPU memory saving
base_model: str = "bigcode/starcoder",
):
assert base_model, (
Expand Down

0 comments on commit 13e0eab

Please sign in to comment.