Downloads · 30 days
0
laurencer/Llama7b-Alpaca-Tune-4epochs-WithReplacementColoring-partial
Llama7b-Alpaca-Tune-4epochs-WithReplacementColoring-partial is a machine learning model from laurencer. Use it for the machine learning task on the model card, and read the license before you ship it in a product.
Playground to try out token coloring with TorchTune.
Downloads · 30 days
0
Access
Public
Updated Feb 11, 2024
Repo size
81.7 GB
Likes
0
Public
Click a slice to open those files.
.ckpt81.7 GB · 100%
From the Hugging Face model README
Playground to try out token coloring with TorchTune.
The repo was generated using the alpha version of torchtune.
Brief notes:
n steps) and automatically upload the checkpoint to HuggingFace Hub.output/ is used to store model outputs and model/ is used to store the base model checkpoints.The below instructions can be copy-pasted as is on to a running instance. They assume that the HF_TOKEN environment variable is set with a valid token.
# for RunPod
cd /workspace
git clone [email protected]:pytorch-labs/torchtune.git
cd torchtune
pip install -e .
cd /workspace
git clone [email protected]:laurencer/torchtune-colorful-llama.git
cd torchtune-colorful-llama
# for wandb support
pip install wandb
mkdir -p model/
tune download --repo-id meta-llama/Llama-2-7b --output-dir model/
tune convert_checkpoint --checkpoint-path model/consolidated.00.pth --output-path model/llama2_native.tune
mkdir -p output/
# tune --nnodes 1 --nproc_per_node 1 ./full_finetune.py --config basic_config.yaml
nohup tune --nnodes 1 --nproc_per_node 1 ./full_finetune.py --config basic_config.yaml 2>&1 > training_log_$(date "+%Y.%m.%d_%H.%M.%S").log &
sleep 1
tail -f training_log_*.log