diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 0000000..d2d57a7 --- /dev/null +++ b/Dockerfile @@ -0,0 +1,7 @@ +# docker build -t v5 . +FROM registry.webis.de/code-research/tira/tira-user-team-chenteam-chen123hhh/tira:v4-tira-docker-software-id-resonnt-halite + +ADD test.py /workspace/clef/test.py + +ENTRYPOINT [ "python", "/workspace/clef/test.py", "$inputDataset/dataset.jsonl", "$outputDir" ] + diff --git a/README.md b/README.md new file mode 100644 index 0000000..74ffbd7 --- /dev/null +++ b/README.md @@ -0,0 +1,18 @@ + +Build via: + +``` +docker build -t v5 . +``` + +Run via: + +``` +tira-run \ + --input-dataset generative-ai-authorship-verification-panclef-2024/pan24-generative-authorship-tiny-smoke-20240417-training \ + --image v5 \ + --tira-vm-id team-chenteam-chen123hhh \ + --skip-local-test \ + --push true +``` + diff --git a/test.py b/test.py index 0e658d7..2328a0a 100644 --- a/test.py +++ b/test.py @@ -81,8 +81,8 @@ def __getitem__(self, idx): # os.environ["CUDA_VISIBLE_DEVICES"] = '2' device = 'cuda' if torch.cuda.is_available() else 'cpu' print(f'Using {device} device') - batch_size = 24 - checkpoint = "/t-ng/Bert/bert_model/MyModel" + batch_size = 8 + checkpoint = "/workspace/clef/MyModel" input_path = sys.argv[1] output_dir = sys.argv[2] # --------------------------------------------------------------------------