https://github.com/chriamue/bert-cli
CLI for rust bert
https://github.com/chriamue/bert-cli
api bert nlp rocket rust server
Last synced: about 1 month ago
JSON representation
CLI for rust bert
- Host: GitHub
- URL: https://github.com/chriamue/bert-cli
- Owner: chriamue
- License: mit
- Created: 2022-04-14T14:32:16.000Z (about 4 years ago)
- Default Branch: main
- Last Pushed: 2022-04-18T11:43:19.000Z (about 4 years ago)
- Last Synced: 2026-03-09T11:51:43.793Z (3 months ago)
- Topics: api, bert, nlp, rocket, rust, server
- Language: Rust
- Homepage:
- Size: 97.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# bert-cli
CLI for rust bert
## bin
Generate some text:
```sh
cargo run -- "hello world"
```
```sh
, I'm GM from csgo. this is the stream from me playing Apex Legends, I'm doing my best to play competitively and I have some games. I'm playing week 2 as a support
```
## web
```sh
cargo run --bin bert-web
```
Visit localhost:8000/swagger-ui
### config
You can configure the model in the `Rocket.toml` file.
```toml
[default]
ident = "bert-web"
# [bart, mbart, gpt2, gptneo, gptneo1, gptneo2]
model = "gpt2"
[debug]
port = 8000
[release]
address = "0.0.0.0"
port = 8080
```
## docker
```sh
docker-compose build
docker-compose up
```
Visit localhost:8080/swagger-ui