Giter Club home page Giter Club logo

alpacalora's Introduction

🐐🌲KOZA: Low-Rank LLaMA Instruct-Tuning

KOZA 🐐 is an instruct model for Polish language with similar capabilities for LLMs like ChatGPT, but it can be run on a single machine 💻 with a strong GPU (RTX 4080/4090). This repo was originally forked from alpaca-lora.

Using this repo, you can reproduce the Stanford Alpaca for the Polish language. Original paper from Stanford: low-rank adaptation (LoRA).

1. Quick start

In your terminal clone repo:

git clone [email protected]:bqpro1/alpaca-koza.git

From repo folder install requirements.txt:

pip isntall -r requirements.txt

And run:

python generate.py

Go to http://127.0.0.1:7860 in your browser. Enjoy KOZA!

2. Translation

I used translation_instructions.ipynb for auto-translation instructions from data/alpaca_data.json to data/alpaca_data_pl_verified.json. Translation is far from perfect, might be improved. Translation took 12h. You can also find translated data on huggingface🤗

3. Training

Just run

python finetune.py --base_model='decapoda-research/llama-7b-hf'

Weights for Polsih language are also on huggingface🤗.

alpacalora's People

Contributors

tloen avatar bqpro1 avatar kohakublueleaf avatar teelinsan avatar eltociear avatar mikubill avatar ellangok avatar antimatter15 avatar t-atlas avatar thisserand avatar maralski avatar rthaweewat avatar captain320 avatar oceanplexian avatar bofenghuang 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.