Skip to main content

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


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

Uploaded Source

Built Distribution

galadriel_node-0.0.1-py3-none-any.whl (5.8 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: galadriel_node-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

Hashes for galadriel_node-0.0.1.tar.gz
Algorithm Hash digest
SHA256 a1c1ee14ea74311989273757c14385da2acfe2fb222f8589c94fc08dda90e91f
MD5 173809c56f8956d1a0534bb8907fa1e0
BLAKE2b-256 dd610cb5e08109ef8981be4a3b3d922af8cb929f0e35dca4681d43e81b9c1f08

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for galadriel_node-0.0.1-py3-none-any.whl
Algorithm Hash digest
SHA256 bfe4cd3ec507b6bd2f7d7c20b7b37d7ffc8b39503ded3d9554fa871c3407df8d
MD5 2fa7751446002c63aa93ce241f30436d
BLAKE2b-256 4bd485ec640ba5467ec57410334ecf35d47380e0d8dbcfc039c304cacba378e7

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