Skip to content
This repository has been archived by the owner on Jun 10, 2021. It is now read-only.

The engine caches the data in the translation #559

Open
sdlmw opened this issue Sep 3, 2018 · 6 comments
Open

The engine caches the data in the translation #559

sdlmw opened this issue Sep 3, 2018 · 6 comments

Comments

@sdlmw
Copy link

sdlmw commented Sep 3, 2018

Hello,

When we are translating a sentence. The engine will automatically increase the memory of the graphic card.
Engine error occurs(OOM) when the memory of the video card is full.
Is it possible to turn off the engine caching mechanism?

thanks

@guillaumekln
Copy link
Collaborator

Hi,

During translation, the memory only increases if the batch size increases or the sentence length increases.

@sdlmw
Copy link
Author

sdlmw commented Nov 13, 2018

Hi @guillaumekln

Can I turn off the caching mechanism? We have a lot of request connections. Frequent cases of low memory.
image
image
Now I'm in a situation where the video card memory consumes much more than memory.

@guillaumekln
Copy link
Collaborator

Did you already set this environment variable?

THC_CACHING_ALLOCATOR=0

@sdlmw
Copy link
Author

sdlmw commented Dec 14, 2018

Hi @guillaumekln ,

I shouldn't have set it up. Excuse me, how should I do it?

@guillaumekln
Copy link
Collaborator

Try:

THC_CACHING_ALLOCATOR=0 th translate.lua <your options>

@sdlmw
Copy link
Author

sdlmw commented Dec 19, 2018

It doesn't look like it has any effect. @guillaumekln

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

No branches or pull requests

2 participants