Google AI 翻译模型 - Vertex AI Studio - Translation
博客网站的文章翻译,选择哪个模型比较好? 我们测试一下Google Cloud Vertex AI Studio - Translation,可以直接在对话框中使用,无需调用代码。 其专业的翻译模型的种类主要有: NMT (modal used for translation modality) Translation LLM (modal used for translation modality) gemini-2.0-flash-001 (next generation gemini flash, super speed, multimodal generation, 1M token context window) 当我们写了一个程序调用以上模型,可能看到类似如下的报错。 % python translation-llm.py 2025-03-17 17:48:30,421 - ERROR - Translation API error: 400 Cloud AutoML API has not been used in project 1***0 before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/automl.googleapis.com/overview?project=1***0 then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.; The model projects/1***0/locations/us-central1/models/TRL*** is not found or is deleted.; codes = [SERVICE_NOT_ACTIVATED (3), NOT_FOUND (5)]. 2025-03-17 17:48:30,421 - ERROR - Translation failed for ~/sandbox/de/about.md after attempts. 翻译失败,为何它要调用的 Cloud AutoML API ?这才发现 Vertex AI 是一个机器学习 (ML) 平台,用于训练和部署 ML 模型和 AI 应用程序。 ...