How to share one GPU VM across a team without conflicts
Short answer: To share one GPU virtual machine (VM) across a small team, give it one holder at a time. With an Idlefy lease a person books the machine for a set time, it starts, everyone can see who has it and until when, and it stops itself when the time runs out. This shares the machine by time. It suits a team that works over SSH and has no reason to run Kubernetes.
How do you share one GPU VM between several people?
You share one GPU VM by making sure only one person holds it at a time and that the machine stops when they finish. On a single VM, two training runs compete for the same GPU memory, so the usual failure is a job that dies because someone else started theirs. The problem is coordination more than hardware. Teams usually start with a message in a group chat, which works until someone forgets to write, or a machine runs all weekend because each person assumed another was still using it. Idlefy replaces the message with a lease: a booking that the system enforces. While one person holds the machine, a second lease on it is refused, and the machine stops itself when the lease ends.
What are the options for sharing a GPU VM?
| Option | Booking enforced | Stops by itself | Nothing to operate |
|---|---|---|---|
| Idlefy lease | Yes | Yes | Yes |
| Chat or calendar | No | No | Yes |
| Job queue | Yes | If you build it | No |
| Kubernetes GPU platform | Yes | If you build it | No |
Chat and shared calendars cost nothing and enforce nothing. A job queue and a Kubernetes platform enforce the rules, but someone has to run them, and people submit jobs instead of working on the machine. For a small team that connects over SSH, an Idlefy lease adds the enforcement and the automatic stop while the VM stays an ordinary VM, with no agent installed on it.
How does a lease work on a GPU VM?
A GPU VM under Idlefy stays stopped until someone leases it. A person with access books it for a set time, and it starts in about a minute. The dashboard shows who has the machine and until when, so nobody has to ask. Warnings go out 20 and 5 minutes before the end, which is the moment to save checkpoints or extend. When the lease ends, the machine stops itself and is free for the next person. Releasing early makes it free sooner. On Pro a lease can run up to 72 hours, and the Safety System grants one 30-minute grace period if the machine still looks in use at the end of a lease that was not extended. The VM’s lease history shows who used the machine and when.
What happens when the GPU VM is taken?
A person who tries to lease a taken VM is refused and sees who has it and how much time is left. They can subscribe to be told when it is free, on the web, or in Slack or Telegram on paid plans. This is a notification, not a queue: when the VM frees up, the first person to lease it gets it. An organization owner or team lead can end someone’s lease if the machine is needed urgently, and the person holding it is told.
What happens when AWS has no GPU capacity?
A stopped GPU instance can fail to start when the cloud has no capacity for that type in its zone. On Pro, Idlefy can keep trying: after a capacity refusal, the person picks a window of 1, 3 or 8 hours, or until they cancel, up to 24 hours. Idlefy retries the same start about once a minute, and the full lease begins only when the machine actually comes up. The person can cancel the wait at any time.
What survives between leases on a shared GPU VM?
Persistent disks survive every stop, so the environment, datasets and checkpoints on them are there for the next person. Local instance-store scratch drives do not survive a stop. Many GPU instance types carry them, so sync checkpoints to a persistent disk or object storage before the lease ends. Because the disk is shared, people on one VM see each other’s files unless you separate them with Linux users and permissions. Idlefy does not act inside the machine.
How do you set this up?
- Connect AWS or Google Cloud in Idlefy, by default without access keys.
- Tag the GPU VM with
idlefy=enabled. - Give your team or individual people access to it.
- People lease it from the web dashboard, from Slack or Telegram on paid plans, or through an AI agent.
Idlefy does not stop a leased machine because it looks idle. On a Pro plan, budgets per team or person can also refuse new leases once a monthly limit is used up. A running lease is never stopped by a budget. See pricing for plans and GPU auto-shutdown for more on GPU machines.
What does a lease not do on a GPU VM?
- It does not split one GPU between people. Two people cannot lease the same VM at once.
- It does not run jobs for you or queue them.
- It does not block logins. Anyone who already has an SSH login on the VM can connect while it runs, so agree that only the lease holder starts jobs.
- It does not isolate people’s files on the disk.
- It does not replace a cluster for training that spans many machines.
Frequently asked questions
Can two people use one GPU VM at the same time? Not through a VM lease. One person holds the VM at a time.
Do I need Kubernetes to share a GPU machine? No. For one or a few VMs, a lease on an ordinary VM is enough.
Does a stopped GPU instance cost money? Yes, its persistent disks do. Compute billing stops with the machine.
Does it work on Google Cloud? Yes. Idlefy manages VMs on AWS and Google Cloud.
Will training be stopped when the lease ends? Yes, unless the lease is extended. Warnings come first, and on Pro the Safety System can grant one 30-minute grace period.
Disclosure
I’m the founder of Idlefy, so this describes our own product and favors it. The lease lifecycle is on the how it works page.
Related reading: The $5,000 weekend on one GPU environment left running from Friday to Monday, and How to stop EC2 instances automatically.