Skip to main content

No project description provided

Project description

Galadriel inference node

Run a Galadriel GPU node to provide LLM inference to the network.

Check out the documentation.

Requirements

Hardware requirements

  • At least 4 CPU cores
  • At least 8GB RAM
  • A supported Nvidia GPU

Software requirements

  • linux (Ubuntu recommended)
  • python (version 3.8+)
  • nvidia drivers, version > 450. nvidia-smi must work

API keys

  • A valid galadriel API key
  • A valid huggingface access token

Run a GPU node from the command line

Create a (separate) python environment

deactivate
mkdir galadriel
cd galadriel
python3 -m venv venv
source venv/bin/activate

Install galadriel-node

pip install galadriel-node

Setup the environment

Only update values that are not the default ones, and make sure to set the API key

galadriel init

Run the node

galadriel node run

If this is your first time running the GPU node, it will perform hardware validation and LLM benchmarking, to ensure your setup is working correctly and is fast enough.

Or run with nohup to run in the background

nohup galadriel node run > logs.log 2>&1 &

Or include .env values in the command

GALADRIEL_LLM_BASE_URL="http://localhost:8000" galadriel node run
# or with nohup
GALADRIEL_LLM_BASE_URL="http://localhost:8000" nohup galadriel node run > logs.log 2>&1 &

Check node status

galadriel node status

Should see status: online

Check node metrics

galadriel node stats

Development

  • LLM: Since vLLM only supports Linux machines with a GPU, you can point the node to a vLLM setup by setting the GALADRIEL_LLM_BASE_URL in your ~/galadrielenv file.

  • Code formatting:

black .

  • Linting:

pylint --rcfile=setup.cfg galadriel_node/*

  • MyPy:

mypy .

  • Unit testing:

python -m pytest tests

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

galadriel_node-0.0.8.tar.gz (364.4 kB view details)

Uploaded Source

Built Distribution

galadriel_node-0.0.8-py3-none-any.whl (369.7 kB view details)

Uploaded Python 3

File details

Details for the file galadriel_node-0.0.8.tar.gz.

File metadata

  • Download URL: galadriel_node-0.0.8.tar.gz
  • Upload date:
  • Size: 364.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/5.1.1 CPython/3.12.3

File hashes

Hashes for galadriel_node-0.0.8.tar.gz
Algorithm Hash digest
SHA256 02466b7f6d8a28c22dd030a6ef73b241bf10cb9047460d71ff6b35aa314ef0e9
MD5 0ccbd4fc00c72cd5c2fae6cfed8d5299
BLAKE2b-256 bd7a9656f07f44a2b6590694843e049a903063c3f284fe5948676c6f2cd5a410

See more details on using hashes here.

File details

Details for the file galadriel_node-0.0.8-py3-none-any.whl.

File metadata

File hashes

Hashes for galadriel_node-0.0.8-py3-none-any.whl
Algorithm Hash digest
SHA256 cc9e32521994f2f685f11d005693b28edc9241d8d637bea5689b3c96b7faf428
MD5 60bd02676d06a75b02f176ca9761dcf5
BLAKE2b-256 f9265912d02b38b45b6dbea15b4dafa94d773e3a5325b306af571f4ca6f7ce99

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page