Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

KGS ViT Bot #140

Merged
merged 10 commits into from
Jun 5, 2024
Merged
Show file tree
Hide file tree
Changes from 1 commit
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
36 changes: 36 additions & 0 deletions engines/kgs-bot/vit-bot-pro.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# To launch run the following command from the directory containing this file:
# kubectl create -f vit-bot-pro.yaml
# Make sure to set the credentials of the bot accordingly.
# Only one copy of the bot can run at a time on one account!
# You can set the room the bot is in by manually logging in as the bot on KGS,
# and navigating to the room you want the bot to be in. When the bot reconnects
# it will join the room you were in.
apiVersion: batch/v1
kind: Job
metadata:
name: vit-kgs-bot-pro
labels:
kueue.x-k8s.io/queue-name: farai
spec:
suspend: true # The job must start suspended kueue will start it when it is admitted
template:
spec:
priorityClassName: high-batch
restartPolicy: OnFailure
containers:
- name: gtp
image: humancompatibleai/goattack:b2fb839-cpp-kgs
args: [
"name=???",
"password=???",
"gameNotes=:)",
"rules.time=90:00+5x0:30",
"opponent=???"
]
resources:
limits:
memory: 80Gi
nvidia.com/gpu: "2"
requests:
cpu: 32
nvidia.com/gpu: "2"
36 changes: 36 additions & 0 deletions engines/kgs-bot/vit-bot.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# To launch run the following command from the directory containing this file:
# kubectl create -f vit-bot.yaml
# Make sure to set the credentials of the bot accordingly.
# Only one copy of the bot can run at a time on one account!
# You can set the room the bot is in by manually logging in as the bot on KGS,
# and navigating to the room you want the bot to be in. When the bot reconnects
# it will join the room you were in.
apiVersion: batch/v1
kind: Job
metadata:
name: vit-kgs-bot
labels:
kueue.x-k8s.io/queue-name: farai
spec:
suspend: true # The job must start suspended kueue will start it when it is admitted
backoffLimit: 9001
template:
spec:
priorityClassName: normal-batch
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Make this high-batch as well? Then it's unlikely to get pre-empted

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ah I purposely made the non-pro bot normal-batch so that it could get pre-empted by more important paper experiments, since a few extra games (we have 1000 games now) won't make too much of a difference to our NeurIPS submission.

restartPolicy: OnFailure
containers:
- name: gtp
image: humancompatibleai/goattack:b2fb839-cpp-kgs
args: [
"name=ViTKata001",
"password=???",
"gameNotes=Barely superhuman Vision Transformer bot.",
"rules.time=15:00+5x0:30",
]
resources:
limits:
memory: 80Gi
nvidia.com/gpu: "2"
requests:
cpu: 32
nvidia.com/gpu: "2"