dh-mc's picture
llama-factory finetuning on Google Colab
36cb2cb
raw
history blame contribute delete
278 Bytes
#!/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