Run this model with HF Jobs

Run RecursiveSI/flint on Hugging Face's managed compute, monitor its progress, and retrieve the results when it's done.

Paste one of these prompts into your coding agent:

Fine-tune on my dataset

Use HF Jobs and TRL to fine-tune https://huggingface.co/RecursiveSI/flint. Ask me which dataset to train on, then push the fine-tuned model to a new model repo. Run `hf jobs --help` first to learn the CLI.

Run batch inference

Use HF Jobs to run batch inference with https://huggingface.co/RecursiveSI/flint on the inputs in a mounted HF Bucket. Ask me which Bucket to use, then write the outputs back to it and keep each input ID. Run `hf jobs --help` first to learn the CLI.

Evaluate on a benchmark

Use HF Jobs to evaluate https://huggingface.co/RecursiveSI/flint. Ask me which benchmark to run, then save the scores and the per-example results to a new dataset repo. Run `hf jobs --help` first to learn the CLI.

Quantize for lower memory use

Use HF Jobs to create a 4-bit version of https://huggingface.co/RecursiveSI/flint. Push it to a new model repo, then reload it from there and report its memory footprint. Run `hf jobs --help` first to learn the CLI.
flint / sglang /serve_node_8x.sh
lvmopt's picture
Initial release
2a247be
Raw History Blame
1.08 kB
#!/usr/bin/env bash
# Eight Flint replicas on one 8-GPU node, one GPU each, on ports BASE_PORT..BASE_PORT+7.
# If one replica exits, all are stopped. Put a router in front of all replicas across nodes (on a
# port outside those ranges), e.g. for 2 nodes:
#
# python3 -m sglang_router.launch_router --host 0.0.0.0 --port 8000 --policy cache_aware \
# --worker-urls http://node0:30000 ... http://node0:30007 http://node1:30000 ... http://node1:30007
#
# MODEL=/path/to/flint BASE_PORT=30000 bash serve_node_8x.sh # Blackwell
# MODEL=/path/to/flint SERVE_SCRIPT=serve_h200.sh bash serve_node_8x.sh # H200
#
# Extra arguments are passed through to every replica's sglang.launch_server.
set -euo pipefail
BASE_PORT="${BASE_PORT:-30000}"
SERVE_SCRIPT="${SERVE_SCRIPT:-serve_b300.sh}"
here="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
pids=()
for gpu in 0 1 2 3 4 5 6 7; do
CUDA_VISIBLE_DEVICES="$gpu" PORT="$((BASE_PORT + gpu))" bash "$here/$SERVE_SCRIPT" "$@" &
pids+=("$!")
done
trap 'kill "${pids[@]}" 2>/dev/null; wait' EXIT INT TERM
wait -n "${pids[@]}"