Download scripts/smoke_cli.sh from BlueSkyXN/diffusiongemma-zerogpu-space: direct link, hf CLI and curl.
- Browser
- Download file 389 Bytes
-
https://huggingface.co/spaces/BlueSkyXN/diffusiongemma-zerogpu-space/resolve/main/scripts/smoke_cli.sh
- Command line
-
hf download hf://spaces/BlueSkyXN/diffusiongemma-zerogpu-space/scripts/smoke_cli.sh
-
curl -L -o smoke_cli.sh https://huggingface.co/spaces/BlueSkyXN/diffusiongemma-zerogpu-space/resolve/main/scripts/smoke_cli.sh
389 Bytes
| set -euo pipefail | |
| : "${LLAMA_DIFFUSION_BIN:?Set LLAMA_DIFFUSION_BIN}" | |
| : "${GGUF_PATH:?Set GGUF_PATH to a local diffusiongemma GGUF file}" | |
| PROMPT="${1:-User: Write a short haiku about GPUs.\n\nAssistant:}" | |
| MAX_TOKENS="${MAX_TOKENS:-128}" | |
| "${LLAMA_DIFFUSION_BIN}" \ | |
| -m "${GGUF_PATH}" \ | |
| -ngl "${N_GPU_LAYERS:-99}" \ | |
| -cnv \ | |
| -n "${MAX_TOKENS}" \ | |
| -p "${PROMPT}" | |