1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
from evaluator import *

DESCRIPTION = "This test case checks if the model can debug a docker cuda error"

TAGS = ['explain']

question = """
nicholas@server:~/project$ sudo docker start myproject
[sudo] password for nicholas: 
Error response from daemon: could not select device driver "" with capabilities: [[gpu]]
Error: failed to start containers: myproject
"""

TestFixDockerCuda = question >> LLMRun() >> (SubstringEvaluator("nvidia-container-toolkit") | SubstringEvaluator("nvidia-docker2"))

if __name__ == "__main__":
    print(run_test(TestFixDockerCuda))