Add missing files
This commit is contained in:
parent
6c2af753df
commit
e8c09d4f1e
22
README.md
22
README.md
@ -2,19 +2,31 @@
|
||||
|
||||
## Instalacja serwera
|
||||
|
||||
Serwery można uruchomić na maszynie z systemem operacyjnym Ubuntu, dodatkowo, serwer marian-server wymaga karty graficznej z minimum 12GB pamięci VRAM oraz zainstalowanego najnowszego pakietu CUDA.
|
||||
|
||||
Uruchomienie skryptu install.sh
|
||||
```chmod u+x install.sh && ./install.sh
|
||||
```
|
||||
chmod u+x install.sh
|
||||
./install.sh
|
||||
```
|
||||
|
||||
Utworzenie w katalogu ./backend pliku konfiguracyjnego .env
|
||||
|
||||
```
|
||||
SECRET_KEY=secret_key
|
||||
DEBUG=1
|
||||
DEBUG=0
|
||||
ALLOWED_HOSTS=localhost 127.0.0.1
|
||||
//Adres serwera marian-server w formacie ws://ip:port/translate
|
||||
TRANSLATION_WEBSOCKET=ws://150.254.78.132:443/translate
|
||||
SCRIPT_PATH=/home/zary/Desktop/grammatical-error-correction-system
|
||||
```
|
||||
|
||||
Uruchomienie serwera websocket na środowisku karty graficznej na porcie 443
|
||||
```sudo ./tools/marian/build/marian-server --port 443 -m model/ens/model.npz -v model/ens/vocab.ende.yml model/ens/vocab.ende.yml```
|
||||
Uruchomienie serwera backend
|
||||
```
|
||||
chmod u+x install.sh
|
||||
./install.sh
|
||||
```
|
||||
|
||||
Uruchomienie serwera marian-server na środowisku karty graficznej na porcie 443
|
||||
```
|
||||
sudo ./tools/marian/build/marian-server --port 443 -m model/model.npz -v model/vocab.ende.yml model/vocab.ende.yml
|
||||
```
|
@ -150,4 +150,3 @@ DEFAULT_AUTO_FIELD = "django.db.models.BigAutoField"
|
||||
CORS_ALLOW_ALL_ORIGINS = True
|
||||
|
||||
TRANSLATION_WEBSOCKET = env("TRANSLATION_WEBSOCKET")
|
||||
SCRIPT_PATH = env("SCRIPT_PATH")
|
BIN
model/ens/model.npz
Normal file
BIN
model/ens/model.npz
Normal file
Binary file not shown.
12
model/ens/model.npz.decoder.yml
Normal file
12
model/ens/model.npz.decoder.yml
Normal file
@ -0,0 +1,12 @@
|
||||
relative-paths: false
|
||||
models:
|
||||
- model/ens/model.npz
|
||||
vocabs:
|
||||
- model/vocab.ende.yml
|
||||
- model/vocab.ende.yml
|
||||
beam-size: 12
|
||||
normalize: 1
|
||||
word-penalty: 0
|
||||
mini-batch: 64
|
||||
maxi-batch: 100
|
||||
maxi-batch-sort: src
|
37215
model/ens/vocab.ende.yml
Normal file
37215
model/ens/vocab.ende.yml
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user