Git Product home page Git Product logo

llama-factory's Introduction

Exploring Supervised Finetuning Methods for Large Language Models

2024 Final project for Deep Learning

This is the fork of LLamafactory used to perform all finetuning experiments.

Our custom YAML files used for fine-tuning can be found in project/<DATASET>/train. Our custom YAML files used for computing ROUGE scores are found in project/<DATASET>/eval. Our collected results and graphs are found in project/<DATASET>/results.

To run LLamafactory with our custom YAML files first clone this repository and run:

cd LLaMA-Factory
pip install -e .[torch,metrics]

Then run:

nvidia-smi --query-gpu=index,timestamp,utilization.gpu,memory.total,memory.free,memory.used --format=csv, --loop=10 > MEMORY_LOG_FILE_NAME.csv 2>&1 & CUDA_VISIBLE_DEVICES=0 llamafactory-cli train project/<DATASET>/train/llama3_<DATASET>_<SFT_METHOD_NAME>.yaml

To evaluate, run:

CUDA_VISIBLE_DEVICES=0 llamafactory-cli train project/<DATASET>/eval/llama3_<DATASET>_<SFT_METHOD_NAME>.yaml

The model and the results should be saved in the saves folder not tracked by this repository.

llama-factory's People

Contributors

hiyouga avatar codemayq avatar buaadreamer avatar marko1616 avatar wangxingjun778 avatar tastelikefeet avatar khazic avatar johannhartmann avatar hannlp avatar yhyu13 avatar stephen2s avatar mmrbun avatar slidersun avatar tsumugii24 avatar a-cepheus avatar jessytsu1 avatar ledzy avatar s3studio avatar mlinmg avatar katehuuh avatar mrhan1993 avatar samge0 avatar xd2333 avatar gitycc avatar shanetian avatar jiminator avatar 0xez avatar seoeaa avatar liuyanyi avatar zeyuteng96 avatar

Stargazers

Shubham Singh avatar Chinmay Hegde avatar David Chang avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.