16 lines
487 B
Bash
16 lines
487 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
|
|
echo "Installing huggingface_hub..."
|
|
pip install huggingface_hub
|
|
|
|
echo "Downloading code and weights from scratch repository..."
|
|
python -c 'from huggingface_hub import snapshot_download; snapshot_download(repo_id="keepsloading/icml_repro_scratch", repo_type="model", local_dir="/workspace")'
|
|
|
|
echo "Installing dependencies..."
|
|
cd /workspace
|
|
pip install -r recipe/requirements.txt
|
|
|
|
echo "Running empirical smoke test..."
|
|
python recipe/smoke_test.py
|