Sign inSign up

droqai/dfx-hf-models-node

By droqai

•Updated 10 months ago

A Droq AI node providing execution of Hugging Face models.

Image
Languages & frameworks
Internet of things
Machine learning & AI
0

1.0K

droqai/dfx-hf-models-node repository overview

⁠DFX Hugging Face Models Node

A Droq AI⁠ node providing execution of Hugging Face models.

⁠Quick Start

git clone [email protected]:droq-ai/dfx-hf-models-node.git
cd dfx-hf-models-node
uv sync

# Configure node.json with your node information
# Configure environment variables

# Test locally
PYTHONPATH=src uv run python -m node.main

# Run with Docker
docker compose up

⁠Docker

# Build
docker build -t your-node:latest .

# Run
docker run -p 8006:8006 \
  -e NODE_NAME=dfx-hf-models-node \
  -e NATS_URL=nats://localhost:4222 \
  droqai/dfx-hf-models-node:latest

⁠Development

# Run tests
PYTHONPATH=src uv run pytest

# Format code
uv run black src/ tests/
uv run ruff check --fix src/ tests/

# Add dependencies
uv add package-name

⁠Documentation

⁠License

Apache License 2.0

Tag summary

Content type

Image

Digest

sha256:75e6421a4…

Size

1.9 GB

Last updated

10 months ago

docker pull droqai/dfx-hf-models-node