File size: 2,889 Bytes
f3d33c3
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>hf-sandbox-gpu</title>
    <style>
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            background: #0a0a0a;
            color: #0f0;
            font-family: 'SF Mono', 'Fira Code', monospace;
            font-size: 14px;
            line-height: 1.6;
            padding: 2rem;
            min-height: 100vh;
        }
        .container { max-width: 640px; margin: 0 auto; }
        h1 {
            font-size: 1.4rem;
            font-weight: normal;
            margin-bottom: 1rem;
            padding-bottom: 1rem;
            border-bottom: 1px solid #222;
        }
        h1::before { content: '$ '; opacity: 0.4; }
        h2 {
            color: #666;
            font-size: 0.75rem;
            font-weight: normal;
            text-transform: uppercase;
            letter-spacing: 0.1em;
            margin: 2rem 0 0.5rem;
        }
        .prompt {
            background: #111;
            border-left: 2px solid #0f0;
            padding: 0.75rem 1rem;
            margin: 0.5rem 0;
            color: #fff;
        }
        .prompt::before {
            content: '→ ';
            color: #0f0;
        }
        a { color: #0af; text-decoration: none; }
        a:hover { text-decoration: underline; }
        .dim { color: #444; }
        .blink { animation: blink 1s step-end infinite; }
        @keyframes blink { 50% { opacity: 0; } }
        .gpu-badge {
            display: inline-block;
            background: linear-gradient(135deg, #76b900, #00a67e);
            color: #000;
            padding: 0.2rem 0.5rem;
            border-radius: 3px;
            font-size: 0.75rem;
            font-weight: bold;
            margin-left: 0.5rem;
        }
    </style>
</head>
<body>
    <div class="container">
        <h1>hf-sandbox<span class="gpu-badge">GPU</span><span class="blink">_</span></h1>
        <p style="color:#888;">GPU-accelerated remote code execution for <a href="https://agentskills.io">ai agents</a></p>

        <h2>install</h2>
        <pre>git clone https://huggingface.co/spaces/burtenshaw/sandbox-gpu .claude/skills/hf-sandbox-gpu</pre>

        <h2>create sandbox</h2>
        <div class="prompt">create a GPU sandbox called my-sandbox on hugging face</div>

        <h2>check gpu</h2>
        <div class="prompt">run nvidia-smi in the sandbox to check GPU status</div>

        <h2>train model</h2>
        <div class="prompt">run train.py with GPU acceleration in the sandbox</div>

        <h2>run inference</h2>
        <div class="prompt">run inference on the model using CUDA</div>

        <h2>background job</h2>
        <div class="prompt">run train.py in the background and save output to a log file</div>

    </div>
</body>
</html>