afif95 / Fine-Tuning-LLMs-with-Hugging-Face

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Fine-Tuning LLMs with Hugging Face

This repository contains code for fine-tuning large language models (LLMs) using the Hugging Face Transformers library.

Features:

  • Supervised Fine-Tuning of LLMs with peft for parameter efficiency.
  • 4-bit quantization using nf4 data type for reduced model size and faster inference.
  • Causal language modeling tasks.
  • LORA regularization for overfitting prevention.
  • Easy usage with pre-defined training arguments and data loading.

Requirements:

Outputs

1 2 3 4 5

About


Languages

Language:Jupyter Notebook 98.2%Language:Python 1.8%