Coder Social home page Coder Social logo

preemo-llms-in-prod-2's Introduction

Preemo LLMs in Prod Conference: Part II

Workshop on LLMs in Prod

System Requirements

  • CUDA Toolkit 117
  • C++ Compiler (i.e. gcc 11.3.0)
  • Python >= 3.10

Getting Started

To install the python dependencies simply run

poetry install

In order to pull the EleutherAI/lm-evaluation-harness and stanford-crfm/helm you will need to run the following line:

git submodule update --init --recursive

Downloading Models from HuggingFace

Although you can download models using model.from_pretrained, it's recommended to use the git-lfs to download the models.

git-lfs install
git clone https://huggingface.co/google/flan-ul2

Fine-tuning on flan-ul2

To launch a fine-tuning job using Deepspeed ZeRO3 (without CPU offloading) run the below command:

accelerate launch --config_file ./finetune/launcher_configs/accelerate_zero3_no_offload_config.yaml ./finetune/zero3_gsm8k.py <model-path>

Running Evals:

In order to conduct evaluations on the GSM8K dataset run the below script. python lm-evaluation-harness/main.py --model hf-seq2seq --model_args pretrained=google/flan-ul2,dtype=float16,use_accelerate=True --task=gsm8k --batch_size=16 --write_out --output_base_path=./eval_results/

Acknowledgement

The notebooks and code are inspired from various work from Hugging Face, EleutherAI, and stanford-crfm.

preemo-llms-in-prod-2's People

Contributors

markhng525 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.