Giter Club home page Giter Club logo

fine-tuning-fine-tuning-llama-2-7b-for-creating-midjourney-prompt's Introduction

Fine-tuning Llama-7B Model

This repository contains the code and data for fine-tuning a Llama-7B model on a dataset containing user inputs and mid-journey prompts as responses.

TESTIMONIALS

User Input: midjourney prompt for a retro-futuristic spaceship with organic shapes and bright colors

1 1 3 2

Dataset

The dataset used for fine-tuning the model is stored in a variable named fine_tuning_data. It contains three columns: User, Prompt, and Text.

The User column contains the user inputs, while the Prompt column contains the corresponding mid-journey prompts. The Text column is generated using the following template: ### Instruction: <USER PROMPT> ### Response: <RESPONSE / MID-JOURNEY PROMPTS

This template adds special tokens ### Instruction: and ### Response: to the user input and mid-journey prompt, respectively. These special tokens are used by the model to distinguish between the instruction and response parts of the text.

Fine-tuning

The Llama-7B model is fine-tuned on the fine_tuning_data dataset using standard techniques for fine-tuning language models. The fine-tuned model can then be used to generate mid-journey prompts given a user input.

Training procedure

The following bitsandbytes quantization config was used during training:

  • load_in_8bit: False
  • load_in_4bit: True
  • llm_int8_threshold: 6.0
  • llm_int8_skip_modules: None
  • llm_int8_enable_fp32_cpu_offload: False
  • llm_int8_has_fp16_weight: False
  • bnb_4bit_quant_type: nf4
  • bnb_4bit_use_double_quant: True
  • bnb_4bit_compute_dtype: bfloat16

Framework versions

  • PEFT 0.4.0

fine-tuning-fine-tuning-llama-2-7b-for-creating-midjourney-prompt's People

Stargazers

Vedfolnir (Ketus IX) avatar

Watchers

Naveen Reddy 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.