Assigned
Status Update
Comments
[Deleted User] <[Deleted User]> #2
I have one question related to Google translate API. but it is not related to this issue.
When i am trying to access Google Translate API using javascript when the query string size is around 13000 characters i am getting server response error code 400. Can you please let me know what is the request size limit if any exist.
When i am trying to access Google Translate API using javascript when the query string size is around 13000 characters i am getting server response error code 400. Can you please let me know what is the request size limit if any exist.
[Deleted User] <[Deleted User]> #3
@vrames
according to Google API FAQ
The maximum size of each text to be translated is 5000 characters, not including any HTML tags.
according to Google API FAQ
The maximum size of each text to be translated is 5000 characters, not including any HTML tags.
[Deleted User] <[Deleted User]> #4
N/A
ds...@google.com <ds...@google.com>
ds...@google.com <ds...@google.com> #5
I also have a same problem some html tags who are divided in few tags , and it's problematic .. there is some news about it ??
ds...@google.com <ds...@google.com>
ds...@google.com <ds...@google.com> #6
I met with the problem just now, it seems the bug nof fixed yet.
ma...@tgs.com <ma...@tgs.com> #7
Update: I found the bug triggered not only by anchor tag, but also others. It seems that the problem is the context, and when I replace the tag with special symbol, 【】 for example, it worked.
In some context:
<a id="text">bla bla...</a> -> <a id="text">alb</a>alb<a id="text">...</a>
after change anchor tag to 【】,it worked:
【bla bla ...】 -> 【alb alb ...】
In some context:
<a id="text">bla bla...</a> -> <a id="text">alb</a>alb<a id="text">...</a>
after change anchor tag to 【】,it worked:
【bla bla ...】 -> 【alb alb ...】
ma...@tgs.com <ma...@tgs.com> #8
This same issue exists for <span> tags. If I send the translate API a document consisting of text in span tags, each with a unique id, the result comes back with many of the span tags mixed up, nested and duplicated. A partial example from a test document, translated from German to English:
Input: <span id='1'>Per </span><span id='2'>Web-ERV</span><span id='3'>Handelsgericht Wien</span><span id='4'>Marxergasse 1a</span><span id='5'>1030 Wien</span><span id='6'>Firmenbuchsache</span>
Output: <span id='1'>Via</span> <span id='2'>web ERV</span> <span id='3'>Vienna Commercial Court</span> <span id='4'>Marxergasse 1a</span> <span id='5'>1030 <span id='6'>Wien</span></span> <span id='6'>Commercial thing</span>
Notice above in the output from the API, there is now an extra <span id="6"> now nested in <span id="5">, around partial content of <span id="5">.. This is completely unacceptable for a paid service, html translation is completely unusable with this bug.
Input: <span id='1'>Per </span><span id='2'>Web-ERV</span><span id='3'>Handelsgericht Wien</span><span id='4'>Marxergasse 1a</span><span id='5'>1030 Wien</span><span id='6'>Firmenbuchsache</span>
Output: <span id='1'>Via</span> <span id='2'>web ERV</span> <span id='3'>Vienna Commercial Court</span> <span id='4'>Marxergasse 1a</span> <span id='5'>1030 <span id='6'>Wien</span></span> <span id='6'>Commercial thing</span>
Notice above in the output from the API, there is now an extra <span id="6"> now nested in <span id="5">, around partial content of <span id="5">.. This is completely unacceptable for a paid service, html translation is completely unusable with this bug.
[Deleted User] <[Deleted User]> #9
Hi there,
any update on this one?
any update on this one?
Description
This will create a public issue which anybody can view and comment on.
Please provide as much information as possible. At least, this should include a description of your issue and steps to reproduce the problem. If possible please provide a summary of what steps or workarounds you have already tried, and any docs or articles you found (un)helpful.
Problem you have encountered:
At first, we used custom NVidia-based docker image
nvidia/cuda:11.7.0-cudnn8-runtime-ubuntu22.04
as a base and 4x Tesla T4 GPU for Pytorch training. It worked correctly - nvidia-smi worked, and we were able to move tensors to CUDA.Since pytorch is now installing CUDA packages as a dependency, we moved to raw
ubuntu22.04
to limit the image size. We tested the image on VM with T4 GPU to make sure it works (obviously, we had to pass--gpus=all
to enable GPUs in the container). Then we replaced our nvidia-based image with this new image and run vertex training.What you expected to happen:
We expected the same results as with the nvidia-based image and the same results as we observed on manually deployed VM with T4. Pytorch library should be able to move tensors to CUDA. Instead we got the generic error:
We connected to the working machine through SSH and noticed that
nvidia-smi
command is not present. This leads us to believe that either the drivers were not installed on the VM that is running our training or that they were not made visible to the container (e.g. with--gpus=all
flag indocker run
.Steps to reproduce:
Create a new docker image and install torch - preferable on a machine with amd64 arch and GPU to make sure that it works. Apply:
Other information (workarounds you have tried, documentation consulted, etc):
As I mentioned, basing the image on
nvidia/cuda:11.7.0-cudnn8-runtime-ubuntu22.04
removes the issue, but the image is significantly larger because it then includes the CUDA twice.