Skip to content

Commit

Permalink
correct file
Browse files Browse the repository at this point in the history
  • Loading branch information
aryol committed Jul 5, 2024
1 parent 4b62393 commit aaec04b
Show file tree
Hide file tree
Showing 29 changed files with 288 additions and 60,495 deletions.
6,597 changes: 0 additions & 6,597 deletions outputs/result/mistral_v1_outputs_test.json

This file was deleted.

6,597 changes: 0 additions & 6,597 deletions outputs/result/mistral_v1_outputs_test_pause_token.json

This file was deleted.

6,597 changes: 0 additions & 6,597 deletions outputs/result/mistral_v1_outputs_test_pause_token_random.json

This file was deleted.

37,367 changes: 0 additions & 37,367 deletions outputs/result/mistral_v1_outputs_train.json

This file was deleted.

507 changes: 0 additions & 507 deletions outputs/result/output_mistral_instruct_v2_pause_token_sft_gsm8k.json

This file was deleted.

507 changes: 0 additions & 507 deletions outputs/result/output_mistral_instruct_v2_sft_gsm8k.json

This file was deleted.

This file was deleted.

This file was deleted.

This file was deleted.

1 change: 0 additions & 1 deletion outputs/result/rc_mistral_delta_reward_outer_loop_1.json

This file was deleted.

1 change: 0 additions & 1 deletion outputs/result/rc_mistral_delta_reward_outer_loop_2.json

This file was deleted.

1 change: 0 additions & 1 deletion outputs/result/rc_mistral_outer_loop_0.json

This file was deleted.

2 changes: 1 addition & 1 deletion pip_requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ datasets==2.18.0
transformers==4.39.3
trl==0.8.1
peft==0.10.0
sentencepiece==0.2.0
scipy==1.13.0
sentencepiece==0.2.0
protobuf==5.26.1
matplotlib==3.8.4

Expand Down
6 changes: 0 additions & 6 deletions src/tariners/Readme.md

This file was deleted.

274 changes: 0 additions & 274 deletions src/tariners/behavior_cloning.py

This file was deleted.

2 changes: 2 additions & 0 deletions src/tariners/collators.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,8 @@ def torch_call(self, examples: List[Union[List[int], Any, Dict[str, Any]]]) -> D
train_method = examples[0][self.name_col]
collator = self.name_to_collator[train_method]
data = [example["data"] for example in examples]
#remove any field of data that is None
data = [{key: value for key, value in example.items() if value is not None} for example in data]
tensor = collator(data)
tensor[self.name_col] = torch.tensor([example[self.name_col] for example in examples]).long()
return tensor
1 change: 0 additions & 1 deletion src/tariners/constraints.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@ def process_logits(self, input_ids, scores):
log_probs = self.softmax_temperature * torch.log(probs)
#check if `inf`, `nan` are in probs
if torch.isnan(probs).any() or torch.isinf(probs).any():
breakpoint()
raise ValueError("LogitsProcessor: the model generated `inf` or `nan` values")
return log_probs

Expand Down
63 changes: 0 additions & 63 deletions src/tariners/eval_script.py

This file was deleted.

Loading

0 comments on commit aaec04b

Please sign in to comment.