Skip to content

A repository for scripts to run awesomely large language models with text generation inference APIs and (chat) UIs

License

Notifications You must be signed in to change notification settings

DFKI-NLP/perseus-textgen

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

A repository for scripts to run awesomely large language models with text generation inference APIs and (chat) UIs

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published