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.2.tar.gz
(360.3 kB
view details)
Built Distribution
File details
Details for the file galadriel_node-0.0.2.tar.gz
.
File metadata
- Download URL: galadriel_node-0.0.2.tar.gz
- Upload date:
- Size: 360.3 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.12.3
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 09914a72275ca4e10c3f75b1102a504619df10853131a590e571fd1a29483ec1 |
|
MD5 | 69cd9e5b41989aa818fdef5e1f982348 |
|
BLAKE2b-256 | 0e34642eab16d16dcfe0df28babc04808da1913f3176f8ea749bf41c72f75db0 |
File details
Details for the file galadriel_node-0.0.2-py3-none-any.whl
.
File metadata
- Download URL: galadriel_node-0.0.2-py3-none-any.whl
- Upload date:
- Size: 364.6 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 | 6478fa8792661560bb97d0e548bb03dc70b2feb70497ea0be16f9a4b4d109caf |
|
MD5 | e6b02d57e38e41f66cf89a13425dba83 |
|
BLAKE2b-256 | 8cd088b50c87f211db13354d71b7c96009f6f2da8f6dc01c51b9e0497c456e19 |