Instructions to use agents2agents/SyncFix-H100 with libraries, inference providers, notebooks, and local apps. Follow these links to get started.
- Libraries
- TensorRT
How to use agents2agents/SyncFix-H100 with TensorRT:
# No code snippets available yet for this library. # To use this model, check the repository files and the library's documentation. # Want to help? PRs adding snippets are welcome at: # https://github.com/huggingface/huggingface.js
- Notebooks
- Google Colab
- Kaggle
Download setup.sh from agents2agents/SyncFix-H100: direct link, hf CLI and curl.
- Browser
- Download file 1.3 kB
-
https://huggingface.co/agents2agents/SyncFix-H100/resolve/main/setup.sh
- Command line
-
hf download hf://agents2agents/SyncFix-H100/setup.sh
-
curl -L -o setup.sh https://huggingface.co/agents2agents/SyncFix-H100/resolve/main/setup.sh
1.3 kB
| set -euo pipefail | |
| release_root=$(cd "$(dirname "$0")" && pwd) | |
| runtime_venv=${1:-"$release_root/.venv"} | |
| python_bin=${SYNCFIX_PYTHON:-python3.12} | |
| if [ "$(uname -m)" != x86_64 ] || [ "$(uname -s)" != Linux ]; then | |
| echo 'Inference requires Linux x86_64. CPU-only verify.py works on other platforms.' >&2 | |
| exit 1 | |
| fi | |
| "$python_bin" -c 'import sys; assert sys.version_info[:2] == (3,12), "Use Python 3.12"' | |
| "$python_bin" "$release_root/verify.py" | |
| shopt -s nullglob | |
| runtime_wheels=("$release_root"/runtime/*.whl) | |
| if [ "${#runtime_wheels[@]}" -ne 1 ]; then | |
| echo 'The package must contain exactly one runtime wheel.' >&2 | |
| exit 1 | |
| fi | |
| if [ -e "$runtime_venv" ] && [ ! -f "$runtime_venv/pyvenv.cfg" ]; then | |
| echo 'Choose a new path or an existing Python virtual environment.' >&2 | |
| exit 1 | |
| fi | |
| if [ -f "$runtime_venv/pyvenv.cfg" ]; then | |
| "$runtime_venv/bin/python" -c 'import sys; assert sys.version_info[:2] == (3,12), "Choose a Python 3.12 virtual environment"' | |
| else | |
| "$python_bin" -m venv "$runtime_venv" | |
| fi | |
| "$runtime_venv/bin/python" -m pip install -r "$release_root/requirements.txt" | |
| "$runtime_venv/bin/python" -m pip install --no-deps --force-reinstall "${runtime_wheels[0]}" | |
| echo "Installed runtime in $runtime_venv" | |
| echo 'Activate the environment, then run verify.py --run.' | |