forked from beehive-lab/GPULlama3.java
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathset_paths
More file actions
29 lines (23 loc) · 1.04 KB
/
set_paths
File metadata and controls
29 lines (23 loc) · 1.04 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
#!/bin/bash
#!/bin/bash
# Environment setup script for running LLaMA3 with TornadoVM GPU acceleration
# This script configures all necessary environment variables for development and runtime
# Resolve root of this project (LLaMA3) and TornadoVM
export LLAMA_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
export TORNADO_ROOT="${LLAMA_ROOT}/external/tornadovm"
# Set the path to TornadoVM SDK binaries
export TORNADO_SDK="${TORNADO_ROOT}/bin/sdk"
# Add TornadoVM and LLaMA bin directories to PATH
export PATH="${PATH}:${TORNADO_SDK}:${LLAMA_ROOT}/bin"
# Optional: Set JAVA_HOME if required
# export JAVA_HOME=/path/to/graalvm
# export PATH="${JAVA_HOME}/bin:${PATH}"
echo "[INFO] Environment configured for LLaMA3 with TornadoVM at: $TORNADO_ROOT"
# ===== Notes =====
# After sourcing this script:
# 1. TornadoVM will be available for GPU computation
# 2. LLaMA3 command-line tools will be in your PATH
# 3. You can run LLaMA3 with GPU acceleration using TornadoVM
#
# To use this script: source ./setup_environment.sh
# or: . ./setup_environment.sh