CoolFace
Modelpublic

RichardErkhov/BramVanroy_-_llama2-13b-ft-mc4_nl_cleaned_tiny-gguf

sourceHugging Faceupdated 2y agoView on Hugging Face
0likes923downloads
Model Card

Quantization made by Richard Erkhov.

Github

Discord

Request more models

llama2-13b-ft-mc4nlcleaned_tiny - GGUF

  • —Model creator: https://huggingface.co/BramVanroy/
  • —Original model: https://huggingface.co/BramVanroy/llama2-13b-ft-mc4nlcleaned_tiny/

Original model description: --- license: apache-2.0 base_model: meta-llama/Llama-2-13b-hf tags:

  • —generatedfromtrainer
  • —llama
  • —lora
  • —adapters datasets:
  • —yhavinga/mc4nlcleaned language:
  • —nl model-index:
  • —name: llama2-13b-ft-mc4nlcleaned_tiny results: [] ---

llama2-13b-ft-mc4nlcleaned_tiny

This model is a fine-tuned version of meta-llama/Llama-2-13b-hf on the yhavinga/mc4_nl_cleaned dataset (tiny partition) on a context of 4096 tokens. See the original meta-llama/Llama-2-13b-hf for more information, intended use, and biases.

If you use this model or refer to it, please use the following citation:

Vanroy, B. (2023). Language Resources for Dutch Large Language Modelling. https://arxiv.org/abs/2312.12852

bibtext
@article{vanroy2023language,
  title={Language Resources for {Dutch} Large Language Modelling},
  author={Vanroy, Bram},
  journal={arXiv preprint arXiv:2312.12852},
  year={2023}
}

Intended uses & limitations

While Llama 2 already contains some proficiency in Dutch, this finetune is intended to improve the fluency of Dutch (not increase its knowledge). It is therefore intended as a generative model for Dutch language. The biases, shortcomings and intended uses are otherwise the same as those of the original model). The model can be used for generative tasks or finetuned further on other tasks such as summarization, adaptation, instruction or chat finetuning.

Training and evaluation data

Trained on the yhavinga/mc4_nl_cleaned dataset (tiny partition) for one epoch. The canonical validation split was not used but instead 5% of train was used as validation.

Training procedure

Trained with LoRA targetting ["q_proj", "v_proj"] in 4 bit and merged before upload. Trained with Flash Attention as borrowed from here.

The adapters are in the adapters branch.

Initial training investigation on the Tier-1 HPC of Vlaams Supercomputer Centrum (VSC) and training on our own server of 4x 3090s.

Training hyperparameters

The following hyperparameters were used during training in the HPC investigation:

  • —learning_rate: 0.0003
  • —trainbatchsize: 12
  • —evalbatchsize: 12
  • —seed: 42
  • —distributed_type: multi-GPU
  • —num_devices: 16
  • —gradientaccumulationsteps: 6
  • —totaltrainbatch_size: 1152
  • —totalevalbatch_size: 192
  • —optimizer: Adam with betas=(0.9,0.999) and epsilon=1e-08
  • —lrschedulertype: cosine
  • —lrschedulerwarmup_ratio: 0.03
  • —num_epochs: 1

Training results

Training LossEpochStepValidation Loss
1.87840.09901.8820
1.83440.191801.8542
1.83510.282701.8355
1.82060.373601.8212
1.80210.474501.8088
1.81020.565401.7982
1.79910.656301.7890
1.77880.747201.7811
1.79150.848101.7742
1.77150.939001.7676

Framework versions

  • —Transformers 4.31.0.dev0
  • —Pytorch 2.0.1+cu117
  • —Datasets 2.13.1
  • —Tokenizers 0.13.3

Open LLM Leaderboard Evaluation Results

Detailed results can be found here

MetricValue
Avg.46.81
ARC (25-shot)59.3
HellaSwag (10-shot)82.04
MMLU (5-shot)54.67
TruthfulQA (0-shot)38.03
Winogrande (5-shot)77.27
GSM8K (5-shot)10.31
DROP (3-shot)6.08