An open API service indexing awesome lists of open source software.

https://github.com/pnocera/cembedd

Embeddings rust API serving intfloat/multilingual-e5-large using huggingface/candle with CUDA enabled
https://github.com/pnocera/cembedd

bert cuda huggingface

Last synced: 5 months ago
JSON representation

Embeddings rust API serving intfloat/multilingual-e5-large using huggingface/candle with CUDA enabled

Awesome Lists containing this project

README

          

cargo new cembedd

cd cembedd

cargo add --git https://github.com/huggingface/candle.git candle-core --rename candle --features "cuda"

cargo add --git https://github.com/huggingface/candle.git candle-nn --rename candle_nn --features "cuda"

cargo add hf-hub --rename hf_hub --features "tokio"

cargo add serde_json

cargo add lazy_static

cargo add anyhow

cargo add tokenizers --default-features=false --features="hf-hub"

cargo add warp

cargo add serde --features derive

cargo add chrono --features serde

cargo add tokio --features full

cargo add pretty_env_logger

## build and run

cargo build --release

./target/release/cembedd

see test.http for example requests