Files
ModelHub XC 6d5fbe99d4 初始化项目,由ModelHub XC社区提供模型
Model: keepsloading/icml_repro_scratch
Source: Original Platform
2026-11-14 03:56:19 +08:00

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