How to Fine-Tune Llama2 for Python Coding on Consumer Hardware

Enhancing Llama2’s proficiency in Python through supervised fine-tuning and low-rank adaptation techniques

Luís Roque
Towards Data Science
18 min readAug 17, 2023

--

About me

Serial entrepreneur and leader in the AI space. I develop AI products for businesses and invest in AI-focused startups.

Founder @ ZAAI | LinkedIn | X/Twitter

Introduction

--

--

Founder & Partner @ ZAAI | VP Data & AI @ Marley Spoon | AI Advisor @ CableLabs | Ph.D. Researcher AI @ LIACC | Cofounder & ex-CEO @ HUUB (acquired by Maersk)