No project description provided
Project description
Galadriel inference node
Installation
pip install -e .
Running with LLM
Setup ollama:
# Install ollama on unix natively:
curl -fsSL https://ollama.com/install.sh | sh
ollama pull llama3
# Or docker:
docker run -d -v ollama:/root/.ollama -p 11434:11434 --name ollama ollama/ollama
docker exec -it ollama ollama pull llama3
Run the node:
galadriel node run
Production VM deployment
Make sure GPU exists etc
nvidia-smi
Run vLLM
python3 -m venv venv
source venv/bin/activate
pip install vllm
mkdir logs
HUGGING_FACE_HUB_TOKEN=<HUGGING_FACE_TOKEN> \
nohup vllm serve hugging-quants/Meta-Llama-3.1-8B-Instruct-AWQ-INT4 \
--revision db1f81ad4b8c7e39777509fac66c652eb0a52f91 \
--max-model-len 16384 \
--gpu-memory-utilization 1 \
--host localhost \
--disable-frontend-multiprocessing \
--port 11434 > logs/logs0.log 2>&1 &
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-0.0.1.tar.gz
(4.2 kB
view details)
Built Distribution
File details
Details for the file galadriel-0.0.1.tar.gz
.
File metadata
- Download URL: galadriel-0.0.1.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | b556a3f0ef72a28056d43a5ee778080537b36195acd4c7dcdab31f63a2082140 |
|
MD5 | 727422f9ac5d9b8cce6da01f9acaddfa |
|
BLAKE2b-256 | 8531243f5893964ad05de801bca293eb5ff02b8c6f4f2118ef6567d9ee80521a |
File details
Details for the file galadriel-0.0.1-py3-none-any.whl
.
File metadata
- Download URL: galadriel-0.0.1-py3-none-any.whl
- Upload date:
- Size: 5.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/5.1.1 CPython/3.10.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 6591305e38409eddc05ce51f2301eea6ee8572df91fb5bb96d78db156a9d0c98 |
|
MD5 | 83c8d251b6aafda9cf5aedf70a7fbf72 |
|
BLAKE2b-256 | fcefa3a50b86e655e61a45f1379afb8f44acf669ad65fba85e0917c058dccae0 |