rust-sbert
Rust port of sentence-transformers (https://github.com/UKPLab/sentence-transformers)
File Explorer
Download Latest Version (.zip)- bench_distilroberta.rs
- bench_sbert.rs
- convert-tensor.rs
- dense.rs
- mod.rs
- pooling.rs
- distilroberta.rs
- mod.rs
- sbert.rs
- hf_tokenizers.rs
- mod.rs
- rust_tokenizers.rs
- rust_tokenizers_sentencepiece.rs
- lib.rs
- test_distilroberta.rs
- test_sbert.rs
- Dockerfile
- prepare_distilbert.py
- prepare_distilroberta.py
- prepare_models.py
- requirements.txt
- test_sbert.py
- .dockerignore
- .gitignore
- .travis.yml
- Cargo.toml
- LICENSE
- README.md
# Installation Guide
1. Get the code
git clone https://github.com/cpcdoy/rust-sbert
Downloads the entire project code from GitHub to your computer.
cd rust-sbert
Moves into the project folder you just downloaded.
2. Docker
Easy RecommendedPrerequisites
- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker build -f utils/Dockerfile -t rust-sbert .
Builds a runnable image based on the Dockerfile.
docker run -p 8080:80 rust-sbert
Runs the built image as an actual container.
Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.
3. Python
EasyPrerequisites
pip install -r utils/requirements.txt
Installs the Python libraries listed in requirements.txt (or similar).
python <์คํํ ํ์ผ๋ช
>.py # README์์ ์ ํํ ์คํ ํ์ผ๋ช
์ ํ์ธํ์ธ์
Runs the Python script (or module).
If it runs without errors and prints output in the terminal, it worked.
4. Rust
MediumPrerequisites
- Git Needed to download the project code from GitHub.
- Rust (rustup) Installing via rustup also installs cargo.
cargo build --release
Compiles the Rust project.
cargo run
Builds and then immediately runs the program.
If cargo build finishes without errors, it worked. The executable is created under target/.
// repository documentation
Was this content helpful?
(0 ratings)
