Comments (5)
What do you mean by "cache database indexes in the RAM"? The majority of the time translation takes is performing the translation itself (longer for longer translations). CTranslate2 seems to be a pretty well optimized inference engine and we currently split sentences and then batch translate each one on its own core.
It's possible that preloading the models from disk into memory could speed things up but I'd want to see some evidence of a meaningful speed improvement before adding code complexity. If you're interested in looking into it I'd be curious to hear what you find.
from libretranslate.
Now I understand, the issue mostly related to https://github.com/argosopentech/argos-translate engine as the LibreTranslate is web application based on that project. So maybe we need to close that question here or the engine is different from original version?
from libretranslate.
Translation speed is dependent on argos-translate.
from libretranslate.
Disk speed only impacts the time it takes to load the model, or when the process is swapping on disk due to a lack of memory. Which one is it here?
from libretranslate.
I meant loading the model from disk to RAM to run inference on it. Argos Translate currently keeps models in memory once they've been used but that's to prevent memory leaks not for performance:
- https://forum.qt.io/topic/120341/how-to-debug-a-hard-to-find-memory-leak-in-pyqt/16
- argosopentech/argos-translate@26802a3
from libretranslate.
Related Issues (20)
- Web UI language not changing HOT 2
- More verbose logs HOT 3
- Chinese (traditional) translation of proper nouns
- Documentation in readme for allowed parameter values HOT 1
- Path of the model HOT 1
- suggestions are not considered for some words with special chars
- Run with cuda HOT 1
- Numbers in Translator are a bit wonky-doodle
- Bad translation from russian HOT 1
- ValueError: substring not found in site-packages/stanza/models/tokenize/utils.py HOT 1
- Hashtag translation Russian to English: `#` becomes `♪` HOT 3
- Chinese to chinese(traditional) translate output funny result HOT 3
- TypeError: 'NoneType' object is not iterable [7036] Failed to execute script 'Main' due to unhandled exception screen translatre
- Setup LibreTranslate on Azure - Issue HOT 1
- TRANSLATE FILEs not work HOT 1
- Downloaded models are not compatible with installed version of libretranslate HOT 3
- Provide a way to setup the webinterface in a subdirectory HOT 3
- Docker Swarm "OSError: [Errno 97] Address family not supported by protocol" HOT 7
- Handling of lists or enumerations
- Use Translation API tip 403 What parameters are missing HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from libretranslate.