Spaces:
Sleeping
Sleeping
title: Translate | |
emoji: π | |
colorFrom: purple | |
colorTo: green | |
sdk: docker | |
pinned: false | |
license: cc-by-4.0 | |
Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference | |
# Translate | |
## Usage | |
``` | |
conda activate hf | |
``` | |
VS Code Python select interpreter hf | |
## Composa | |
``` | |
docker compose up --build | |
``` | |
## Tests | |
Translate from English (eng) to Portuguese (por) the following text: "we the people of the united states in order to form a more perfect union establish justice ensure domestic tranquillity provide for the common defense" | |
mac book pro M1 16GB device = cpu. | |
- Do not run. Not enougth memory | |
HF CPU free | |
- 8.99 sec | |
- 9.06 sec | |
- 8.77 sec | |
T4 small | |
- 1.18 sec | |
- 1.12 sec | |
- 1.12 sec | |
A10G small | |
- 1.02 sec | |
- 1.00 sec | |
- 1.06 sec | |
- 1.01 sec | |
2xA10G large | |
- 0.97 sec | |
- 0.95 sec | |
- 0.95 sec | |
- 0.95 sec | |
- 0.95 sec | |