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
Release history Release notifications | RSS feed
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.4.tar.gz
(360.8 kB
view details)
Built Distribution
File details
Details for the file galadriel_node-0.0.4.tar.gz
.
File metadata
- Download URL: galadriel_node-0.0.4.tar.gz
- Upload date:
- Size: 360.8 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27e576360fe73552618599875c505b2c1ab9b4de34f0ed6b726da658e8ecf878 |
|
MD5 | 370190e34d8989a839e5f95730950ac7 |
|
BLAKE2b-256 | ac916c1d3f94c23da1b58c98cd770d322957ae66f043d791eb07c7a191cb4113 |
File details
Details for the file galadriel_node-0.0.4-py3-none-any.whl
.
File metadata
- Download URL: galadriel_node-0.0.4-py3-none-any.whl
- Upload date:
- Size: 365.3 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 565e62439603135e8377b593f3d46948f88f5908db8909f906309620bfc8f3c5 |
|
MD5 | 28262a64828677d857a7a6232612fce2 |
|
BLAKE2b-256 | dbf840aae3f24eae3fee4a4467c6035d24ec3d59008c53c0ba26d7389ed68013 |