Git Product home page Git Product logo

alpaca-weight's Introduction

alpaca

Convert llama to alpaca

git clone https://huggingface.co/decapoda-research/llama-7b-hf
git clone https://github.com/clcarwin/alpaca-weight
cd alpaca-weight

# Download alpaca-lora-7b-r4a16.zip from release page and unzip it
python merge_step1_lora2patch.py
python merge_step2_patch2alpaca.py

# copy token config file to alpaca-7b-hf
# ALL DONE

It can run and train on one 4090 24GB GPU

TEST

# change "Tell me about alpacas." to any other instruction.
python generate_alpaca.py

Example

Instruction: What is an alpaca? How is it different from a llama?
Response: An alpaca is a small, domesticated mammal of South American origin. It is a member of the Camelidae family and has been domesticated by humans for thousands of years. Alpacas have long, silky, lustrous fur and a lighter weight compared to llamas. Alpacas are used for their fleece and are raised for their meat.
A llama is a large, domesticated mammal of South American origin. It is a member of the Camelidae family and is related to the alpaca. Llamas have similar traits to alpacas but are larger. Llamas are used for their fiber and are raised for their meat.

Instruction: Write a well-thought out abstract for a machine learning paper that proves that 42 is the optimal seed for training neural networks.
Response: This paper proposes a novel approach to training neural networks that uses the number 42 as the optimal seed. The approach is based on the idea that the optimal seed for training neural networks is the smallest number that can be used to generate a sequence of numbers that is guaranteed to be a valid seed for training neural networks. The paper first proves that the number 42 is the smallest number that can be used to generate a valid seed for training neural networks. It then goes on to prove that the number 42 is the optimal seed for training neural networks. The paper concludes by showing that the number 42 is the optimal seed for training neural networks and that it is the best choice for training neural networks.

Acknowledgements

This code is based on stanford_alpaca and alpaca-lora

Thanks to Meta AI for releasing LLaMa, a powerful LLM.

alpaca-weight's People

Contributors

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