Follow this guide to fine-tune your first model on a Cerebras system.
train_data_config.yaml
.
finetuning_tutorial
model directory you created earlier.
KeyError: 'tags'
This issue occurs due to an outdated version of the huggingface_hub
package. To resolve it, update the package to version 0.26.1 by running:pip install --upgrade huggingface_hub==0.26.1
winogrande
on a single CSX system.
If you are interested, you can learn more about validating models using the Eleuther or BigCode Evaluation Harness in our documentation.
finetuning_tutorial/train_data/
and finetuning_tutorial/valid_data/
(see the output_dir
parameter in your data configs).
http://172.31.48.239:5000
. Copy and paste this into your browser to launch TokenFlow, a tool for interactively visualizing whether loss and attention masks were applied correctly:
finetuning_tutorial/from_hf
directory:
finetuning_tutorial/from_hf
folder should now contain:
pytorch_model_to_cs-2.3.mdl
: The converted model checkpoint.
config_to_cs-2.3.yaml
: The converted configuration file.
ckpt_path
in your finetuning_tutorial/model_config.yaml
to the location of this converted checkpoint.
train_dataloader.data_dir
and val_dataloader.data_dir
in your model config to the absolute paths of your preprocessed data:
finetuning_tutorial/model
folder (see the model_dir
parameter in your model config). These include: