Building Testing Datasets with Hugging Face API

This project utilizes the open-source LLM Meta-Llama-3.1-8B-Instruct via the Hugging Face API to create testing datasets in JSON or CSV formats. Key skills include using Transformers, Tokenizers, Quantization for model size reduction, Gradio for UI development, and Google Colab with T4 GPU for enhanced performance.

Gradio interface for generating a test dataset

Overview

A notebook that uses an open-source model to generate test datasets in JSON or CSV. It runs Meta-Llama-3.1-8B-Instruct through Hugging Face, quantized to fit on a Google Colab T4 GPU, with a Gradio UI on top. Multi-shot prompting keeps the output in the requested format.

Skills

  • Hugging Face API to load and run open source model
  • Transformers
    • Tokenizer to apply chat template
    • Quantization to reduce model size for use on Colab T4 Box.
  • Gradio for demo UI development
  • Multishot Prompting to enforce multiple output formats
  • Google Colab with use of the T4 GPU box