Skip to content

yuyatinnefeld/llama-2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

6 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

LLAMA-2 API + Python / JupyterLab

Source

Setup Workspace Environments

  1. register by meta to download the model
  1. Create a Hugging Face Account
  1. Create a HF Token
  • HuggieFace -> Settings -> Access Token > Create Screenshot
  1. install python packages

    pip install -r requirements.txt
    python -m pip install --upgrade transformers
  2. Test the Token

    huggingface-cli login
  3. Request Llama-2 model access

  • site: https://huggingface.co
  • model: meta-llama/Llama-2-7b-chat-hf
  • action: Request Submit
  • It may take a day to get access
  1. Receive the permission notification by Email

Run Llama 2 in JupyterLab

  1. install packages

    pip install -r requirements.txt
  2. start jupyter lab

    jupyter lab 
  3. Open Notebook

    cd notebook/step-1.ipynb
  4. Login to HF to get access to the model

Screenshot

  1. Execute scripts in Notebook
  • step-1.ipynb
  • step-2.ipynb

Run Llama 2 in your IDE

  1. Login HuggingFace

    huggingface-cli login
  2. install packages

    pip install -r requirements.txt
  3. download model

    python src/main.py

About

πŸ“• Llama 2 Python Project πŸ“•

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published