Get started with Popcorn CLI in seconds! Choose your installation method based on your operating system.
curl -fsSL https://raw.githubusercontent.com/gpu-mode/popcorn-cli/main/install.sh | bashpowershell -ExecutionPolicy Bypass -Command "iwr -UseBasicParsing https://raw.githubusercontent.com/gpu-mode/popcorn-cli/main/install.ps1 | iex"-
Restart your terminal (or run
source ~/.bashrc/source ~/.zshrc) -
Register with GitHub (one-time setup):
popcorn-cli register github
Try out the example implementations to get familiar with the system:
# Download and test v1.py (reference implementation)
wget https://raw.githubusercontent.com/gpu-mode/popcorn-cli/main/docs/AMD_workshop/v1.py
popcorn-cli submit --gpu MI300 --leaderboard amd-fp8-mm --mode test v1.py
# Download and test v2.py (basic optimization)
wget https://raw.githubusercontent.com/gpu-mode/popcorn-cli/main/docs/AMD_workshop/v2.py
popcorn-cli submit --gpu MI300 --leaderboard amd-fp8-mm --mode test v2.py
# Download and test v3.py (advanced optimization)
wget https://raw.githubusercontent.com/gpu-mode/popcorn-cli/main/docs/AMD_workshop/v3.py
popcorn-cli submit --gpu MI300 --leaderboard amd-fp8-mm --mode test v3.py# Download and test v1.py (reference implementation)
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/gpu-mode/popcorn-cli/main/docs/AMD_workshop/v1.py" -OutFile "v1.py"
popcorn-cli submit --gpu MI300 --leaderboard amd-fp8-mm --mode test v1.py
# Download and test v2.py (basic optimization)
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/gpu-mode/popcorn-cli/main/docs/AMD_workshop/v2.py" -OutFile "v2.py"
popcorn-cli submit --gpu MI300 --leaderboard amd-fp8-mm --mode test v2.py
# Download and test v3.py (advanced optimization)
Invoke-WebRequest -Uri "https://raw.githubusercontent.com/gpu-mode/popcorn-cli/main/docs/AMD_workshop/v3.py" -OutFile "v3.py"
popcorn-cli submit --gpu MI300 --leaderboard amd-fp8-mm --mode test v3.py- Start with v1.py (reference implementation) to understand the baseline
- Try v2.py for basic optimizations
- Challenge yourself with v3.py for advanced Triton optimizations
- Use
--mode benchmarkinstead of--mode testto see performance metrics
If the scripts don't work, you can manually install:
- Download the binary for your OS from releases
- Extract the archive
- Move the binary to a directory in your PATH
- Make it executable (Linux/macOS):
chmod +x popcorn-cli
- Restart your terminal
- Check if the install directory is in your PATH:
- Linux/macOS:
echo $PATH - Windows:
echo $env:PATH
- Linux/macOS:
- Check if POPCORN_API_URL is set to https://discord-cluster-manager-1f6c4782e60a.herokuapp.com
- Linux/macOS:
echo $POPCORN_API_URL - Windows:
echo $env:POPCORN_API_URL
- Linux/macOS:
- Run
popcorn-cli --helpfor usage information - Check the main repository and open an issue
- Join the GPU Mode Discord and ask a question in #amd-competition