Closed sih4sing5hong5 closed 9 months ago
Hello, if you make a PR for this I can review it. It shouldn't be a big change hopefully.
I think the build error is because the Dockerfiles in https://github.com/dnephin/dobi/tree/main/dockerfiles are still using old versions of Go and alpine. They probably need to be updated to Go1.20
Hello, if you make a PR for this I can review it. It shouldn't be a big change hopefully.
I think the build error is because the Dockerfiles in https://github.com/dnephin/dobi/tree/main/dockerfiles are still using old versions of Go and alpine. They probably need to be updated to Go1.20
Thank you, I'll try it!
I ran gpu directly by compose. Thank you, dnephin :)
Background
The NVIDIA Container Toolkit enables users to build and run GPU-accelerated containers.
Adding
--gpus all
if using docker command, eg:Or adding
devices
indeploy
ofdocker-compose.yml
if using docker-compose, the yaml eg:Expectation
Support dobi job running with gpus by adding configure.
How to
I'm not familiar with golang. Thank dnephin for providing where the configure of dobi is in https://github.com/dnephin/dobi/issues/169#issuecomment-562880886. I surveyed the fsouza/go-dockerclient, and got the DeviceRequests parameter!!
I think the solution is adding
DeviceRequests
inHostConfig
ofrun.go
https://github.com/dnephin/dobi/blob/76e10c8c263f6b4903c122a4b5f84cacc373804b/tasks/job/run.go#L277-L282Questions
How to design the usage of DeviceRequests in dobi.yaml
I'm not sure the below one is good design:
How to build the dobi
I followed the docs, and tried build dobi myself. Got errors:
May I make a PR for this function?
dobi
is a great tool and useful for teaching maching learning! If you feel OK, I will try to make a PR to contribute :smiley: