Skip to main content
Unsloth AI /

Unsloth Studio

An interface for training, fine-tuning, and running open-source LLM workflows with Unsloth.

Fine-TuningChat UIs
Versionlatest
InterfaceWeb UI
GPUOptional
Securely deploy Unsloth Studio on Laboratory OS.

Unsloth Studio

Laboratory OS Installation Details

Environment

Working Directory/workspace/unsloth-studio

Environment Variables

APP_DIRECTORY
/workspace/unsloth-studio
PORT
<assigned at runtime>
HOMEPinned to app working directory so Unsloth installs all state/config under /workspace.
${APP_DIRECTORY}
UNSLOTH_BINPrimary path to the Unsloth executable inside the app home.
${HOME}/.unsloth/studio/unsloth_studio/bin/unsloth

Install & Run

install-and-run.sh
#!/bin/bash
set -e

export PATH="/opt/conda/bin:/root/.local/bin:$PATH"

# Create the directory if it doesn't exist
mkdir -p "/workspace/unsloth-studio"
  
# Change to the app directory
cd "/workspace/unsloth-studio"


# Environment setup complete
echo "Environment setup complete!"

curl -fsSL https://raw.githubusercontent.com/unslothai/unsloth/main/install.sh | sh

if [ ! -x "$UNSLOTH_BIN" ]; then
  echo "Unsloth binary not found at $UNSLOTH_BIN. Re-run setup."
  exit 1
fi

exec "$UNSLOTH_BIN" studio -H 0.0.0.0 -p "$PORT" $OPENLAB_EXTRA_ARGS

CLI Command

cli.sh
# Unsloth CLI
exec "$UNSLOTH_BIN"