Skip to content

Latest commit

 

History

History
27 lines (21 loc) · 1.22 KB

README.md

File metadata and controls

27 lines (21 loc) · 1.22 KB

perseus-textgen

This repository contains scripts for running large language models using text generation inference APIs and (chat) UIs.

Authentication

Certain models (e.g., Google-gemma, LLAMA3, etc.) require you to accept the license on the Hugging Face website. To download these models to your machine, you need an authentication token from Hugging Face. To register your token on your machine, run the following command:

huggingface-cli login --token <yourToken>

For proper functionality, ensure the script has access to your API key, typically located at $HOME/.cache/huggingface. Use the following snippet to mount this directory in your srun command:

$HOME/.cache/huggingface:/root/.cache/huggingface

Update the enroot image

Newer models sometimes require a never enroot image. To generate a new image adapt the following code-snippted.

srun \
-p RTX3090 \
enroot import \
-o /netscratch/$USER/huggingface_text-generation-inference_1.1.0.sqsh \
docker://ghcr.io#huggingface/text-generation-inference:1.1.0

Check for available releases: https://github.com/huggingface/text-generation-inference