Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to run test_translation_speed.py #78

Open
JohnWinner opened this issue Sep 8, 2022 · 2 comments
Open

How to run test_translation_speed.py #78

JohnWinner opened this issue Sep 8, 2022 · 2 comments

Comments

@JohnWinner
Copy link

easynmt docker install is working fine through http requests. Now i'd like to run some benchmark. How do you run /examples/test_translation_speed.py ?

@JohnWinner
Copy link
Author

JohnWinner commented Sep 8, 2022

To answer my own question...

docker exec -it easynmt bash
apt install wget
wget -O test_translation_speed.py https://raw.githubusercontent.com/UKPLab/EasyNMT/main/examples/test_translation_speed.py
python ~/test_translation_speed.py opus-mt

For the record I get the following result: 74.41 sentences/second

Machine spec:
Intel i5-10400, 2.9 Ghz, 6 cores
32GB RAM
HD: 512GB NVMe
GPU: Geforce RTX 3070 Ti XC3 Ultra (8GB GDDR6)

@JohnWinner
Copy link
Author

On my older server I get: ~49 sentences/second

Machine specs:
Intel Xeon E5-2620 v3 Hex Core 2.40 GHz, 15M cache, 6 cores
32GB RAM
HD: 2 x 250GB SSD (RAID 1)
GPU: NVIDIA GeForce RTX 2080 Ti

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant