#!/bin/sh BASEDIR=$(dirname "$0") cd $BASEDIR/../llama-factory echo Current Directory: pwd YAML=$1 python -c 'import os, json, sys, yaml; filename=os.getenv("YAML"); y=yaml.safe_load(open(filename)) ; print(f"{filename}:\n", json.dumps(y, indent=2))' llamafactory-cli train $1