Skip to content

Commit

Permalink
add dvc support
Browse files Browse the repository at this point in the history
  • Loading branch information
Константин Зайцев committed Feb 17, 2023
1 parent 134497b commit cf45b93
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .dvc/config
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
[core]
remote = data
['remote "data"']
url = gdrive://1A6OefWslzIhcWtwK8PBMHqF6btWJ4TA6
gdrive_service_account_json_file_path = ../service_account.json
gdrive_use_service_account = true
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
__pycache__
.vscode
grade-school-math
env
env
data
service_account.json
5 changes: 4 additions & 1 deletion experiment.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
from tqdm import tqdm
import json
from os.path import join, exists
import subprocess

PATH = 'grade-school-math/grade_school_math/data/test.jsonl'
EXPERIMENT_RESULTS_FOLDER = 'data'
Expand Down Expand Up @@ -79,4 +80,6 @@ def read_json(path: str):
outputs[question] = {'correct_answer': answer, 'model_answer': answers}

with open(EXPERIMENT_PATH, 'w') as f:
json.dump(outputs, f)
json.dump(outputs, f)

subprocess.run(['dvc', 'push'])

0 comments on commit cf45b93

Please sign in to comment.