Skip to main content

No project description provided

Project description

Galadriel inference node

Installation

# Setup venv or whatever environment you wish
python3 -m venv venv
source venv/bin/activate

pip install -e .

Setup .env

cp template.env .env
# Update values according to your setup

Run the node

galadriel node run

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 &

LLM deployment

Make sure GPU exists and nvidia drivers are installed

nvidia-smi

Run vLLM natively

Make sure you create a separate python env

python3 -m venv venv
source venv/bin/activate
pip install vllm

Run vllm

This runs vllm on "http://localhost:11434", that is the default value

HUGGING_FACE_HUB_TOKEN=<HUGGING_FACE_TOKEN> \
nohup vllm serve neuralmagic/Meta-Llama-3.1-8B-Instruct-FP8 \
    --revision 3aed33c3d2bfa212a137f6c855d79b5426862b24 \
    --max-model-len 16384 \
    --gpu-memory-utilization 1 \
    --host localhost \
    --disable-frontend-multiprocessing \
    --port 11434 > logs_llm.log 2>&1 &

TODO: remove this part, once node released

Development

Setup node

ssh-keygen -t rsa -b 4096
# Add public key to repo "deploy keys"
# clone repo
cd galadriel-node

# deactivate other venv 
# deactivate
python3 -m venv venv
source venv/bin/activate

pip install -e .

Run node

GALADRIEL_API_KEY=<API KEY> \
    GALADRIEL_RPC_URL=ws://34.78.190.171/v1/node \
    nohup galadriel node run > logs.log 2>&1 &

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.5.tar.gz (361.0 kB view details)

Uploaded Source

Built Distribution

galadriel_node-0.0.5-py3-none-any.whl (365.5 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: galadriel_node-0.0.5.tar.gz
  • Upload date:
  • Size: 361.0 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.5.tar.gz
Algorithm Hash digest
SHA256 3ca69346112f01217d851f17a27b0b98146038e9bdf756c18f3444cdce92a06d
MD5 9a23174943ac8c02ab75e46cdec36ee2
BLAKE2b-256 ac13d019010a48d3f0dfab627d78fb1ec7a788296c7df8ac569e501575527ce5

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for galadriel_node-0.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 8869664b9d4a5b560d3c7670481585d4ee425b5dbd881f4634061d972363a9b5
MD5 26469266b21db42cf7f5e020871c6fe2
BLAKE2b-256 2acc098724133986a8d058c04b8a25592982936167345702a1e7934822d49f94

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