Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
@@ -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" ]

18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -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
```

4 changes: 2 additions & 2 deletions test.py
Original file line number Diff line number Diff line change
Expand Up @@ -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]
# --------------------------------------------------------------------------
Expand Down