Skip to main content
QUICK REVIEW

[Paper Review] LLaMAntino: LLaMA 2 Models for Effective Text Generation in Italian Language

Pierpaolo Basile, Elio Musacchio|arXiv (Cornell University)|Dec 15, 2023
Topic ModelingComputer Science10 citations
TL;DR

The paper adapts LLaMA 2 to Italian using language adaptation, PEFT/LoRA, and QLoRA techniques, producing LLaMAntino models (7B/13B and chat variants) released for research.

ABSTRACT

Large Language Models represent state-of-the-art linguistic models designed to equip computers with the ability to comprehend natural language. With its exceptional capacity to capture complex contextual relationships, the LLaMA (Large Language Model Meta AI) family represents a novel advancement in the field of natural language processing by releasing foundational models designed to improve the natural language understanding abilities of the transformer architecture thanks to their large amount of trainable parameters (7, 13, and 70 billion parameters). In many natural language understanding tasks, these models obtain the same performances as private company models such as OpenAI Chat-GPT with the advantage to make publicly available weights and code for research and commercial uses. In this work, we investigate the possibility of Language Adaptation for LLaMA models, explicitly focusing on addressing the challenge of Italian Language coverage. Adopting an open science approach, we explore various tuning approaches to ensure a high-quality text generated in Italian suitable for common tasks in this underrepresented language in the original models' datasets. We aim to release effective text generation models with strong linguistic properties for many tasks that seem challenging using multilingual or general-purpose LLMs. By leveraging an open science philosophy, this study contributes to Language Adaptation strategies for the Italian language by introducing the novel LLaMAntino family of Italian LLMs.

Motivation & Objective

  • Address the underrepresentation of Italian in LLM training data and improve Italian text generation quality.
  • Develop Italian-adapted LLaMA 2 models (including chat variants) via Language Adaptation and PEFT methods.
  • Evaluate and release models to support Italian NLP tasks and broader research use.
  • Provide a replicable adaptation pipeline that can be applied to other languages.

Proposed method

  • Adopt Language Adaptation to tailor LLaMA 2 models to Italian before fine-tuning.
  • Use PEFT techniques (LoRA/QLoRA) with 4-bit quantization (NF4) to reduce memory and training costs.
  • Train on Italian data (Filtered Oscar Italian subset; UltraChat translations for dialogue tasks; EVALITA-related data).
  • Employ SFT (supervised fine-tuning) on translated dialogue datasets to improve instruction-following in Italian.
  • Utilize 4-bit NF4 quantization, 64-dim LoRA Attention (lora_r=64), lora_alpha=16, and lora_dropout=0.1.
  • Leverage distributed training on Leonardo HPC with 12 A100 GPUs across three nodes, using FSDP and gradient accumulation.

Experimental results

Research questions

  • RQ1How can LLaMA 2 models be effectively adapted to the Italian language for generation tasks?
  • RQ2What is the impact of language adaptation + PEFT (LoRA/QLoRA) and 4-bit quantization on Italian text generation quality and instruction-following?
  • RQ3Can Italian-specific datasets (translated UltraChat, EVALITA tasks) support high-quality dialogue and instruction tuning for LLaMAntino models?
  • RQ4What are practical deployment considerations (memory, latency) when adapting large LLaMA models to Italian via PEFT?

Key findings

  • Introduced LLaMAntino 2-Chat and non-chat models with Italian language adaptation (7B and 13B variants).
  • Applied Language Adaptation followed by Supervised Fine-Tuning using translated UltraChat data and EVALITA-related instructions.
  • Employed QLoRA with 4-bit NF4 quantization and carefully configured LoRA parameters (lora_r=64, lora_alpha=16, lora_dropout=0.1).
  • Used Italian data from the Filtered Oscar Italian dataset and larger Italian text corpora for adaptation.
  • Scaled training on Leonardo HPC with multi-node, multi-GPU setup (12 A100 GPUs total) and 25k training steps for some phases; maximum sequence length 1024 during adaptation.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.