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.3.tar.gz
(360.8 kB
view details)
Built Distribution
File details
Details for the file galadriel_node-0.0.3.tar.gz
.
File metadata
- Download URL: galadriel_node-0.0.3.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 | 40aa4527a7b58fd9f9ae9a8260dc651211453c1a0a11f0825f9866b333a9064c |
|
MD5 | d5f47688c10dfbcfa83d6d9144f89041 |
|
BLAKE2b-256 | 2f1f449445310a78ebb75faf69ac40a3c3f64c7016b1249f742ad4462b9cda10 |
File details
Details for the file galadriel_node-0.0.3-py3-none-any.whl
.
File metadata
- Download URL: galadriel_node-0.0.3-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 | a2b82431407530deb7354166559750652d9d48d4aec36069b92c9e70f31c01d5 |
|
MD5 | 7fb09ff0d0d1d2634a14c1c795b3f6fd |
|
BLAKE2b-256 | 184b19edf9f913070d4b055b50c3a705276d0481ffd2a9e0c2724ebde08117f0 |