-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathsetup.sh
More file actions
36 lines (28 loc) · 1.21 KB
/
setup.sh
File metadata and controls
36 lines (28 loc) · 1.21 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
#!/usr/bin/env bash
set -e
echo OpenArc setup script for Linux
if ! command -v uv &> /dev/null; then
echo "installing uv..."
curl -LsSf https://astral.sh/uv/install.sh | sh
export PATH="$HOME/.local/bin:$PATH"
fi
uv sync
source .venv/bin/activate
uv pip install "optimum-intel[openvino] @ git+https://github.com/huggingface/optimum-intel"
uv pip install --pre -U openvino-genai --extra-index-url https://storage.openvinotoolkit.org/simple/wheels/nightly
echo "checking for Intel oneAPI..."
if [ ! -f "/opt/intel/oneapi/setvars.sh" ]; then
echo "Warning: Intel oneAPI not found. Skipping gpu-metrics install."
echo "install from https://www.intel.com/content/www/us/en/developer/tools/oneapi/base-toolkit.html"
else
source /opt/intel/oneapi/setvars.sh intel64 --force
echo "installing gpu-metrics (soft dependency)..."
uv pip install ./gpu-metrics || echo "Warning: gpu-metrics build failed. Intel GPU telemetry will be unavailable."
fi
read -p "set OPENARC_API_KEY? (y/N): " set_key
if [[ "$set_key" =~ ^[Yy]$ ]]; then
read -p "key (default: openarc-api-key): " api_key
export OPENARC_API_KEY="${api_key:-openarc-api-key}"
echo "OPENARC_API_KEY set for this session."
fi
openarc --help