Skip to content

Agentic Translation

Multi-agent translation workflow where LLM agents critique and refine outputs to improve translation quality.

Publisher
AMD

Deployment guide

Getting Started

This is a quick start guide on how to deploy the blueprint. For advanced options, such as reusing an existing AIM, providing a Hugging Face token, or overriding storage classes, see Deploying Solution Blueprints with Helm or explore the advanced deployment guide.

Prerequisites

System Requirements

This blueprint can be deployed on AMD Instinct (default) and AMD Radeon. The blueprint requires the following cluster resources by default, depending on the hardware being used:

ResourceInstinctRadeon
GPUs11
CPUs55
RAM68 Gi36 Gi

The default deployment is text-only (one GPU). Voice transcription can be enabled on AMD Instinct and requires a second GPU.

To deploy to the Kubernetes cluster, ensure the following prerequisites are met:

  • kubectl: Installed and configured to communicate with the cluster
  • Helm 3.16 – 4.2.0: Installed on your local machine
  • A Kubernetes cluster with a usable StorageClass. The default is mlstorage; see Deploying Solution Blueprints with Helm for override instructions

Deployment

Solution Blueprints are packaged as OCI-compliant Helm charts in the Docker Hub registry and can be deployed to a Kubernetes cluster with a single command. Define the name (deployment name) and the namespace (Kubernetes namespace), then pipe the output of helm template to kubectl apply -f -. The default deployment is text-only (one GPU). To enable voice transcription on Instinct, add --set qwen-asr.enabled=true (requires a second GPU). The bundled Qwen ASR service is not supported on Radeon yet.

Find the deployment command below.

Note: You can create a namespace using kubectl create namespace <my-namespace>.

Terminal window
name="my-deployment"
namespace="my-namespace"
helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-agentic-translation \
| kubectl apply -f - -n $namespace

Verify Deployment

To check the status of the deployment, run:

Terminal window
kubectl get pods -n $namespace

Wait until all pods report Running and Ready.

Connect to UI

To connect to the UI, port-forward to 8501. The UI will then be available at http://localhost:8501 in your browser.

Terminal window
kubectl port-forward services/aimsb-agentic-translation-${name} 8501:8501 -n $namespace

Once connected, use the application as follows:

  1. Choose the source and target languages
  2. Enter source text manually. If you deployed with --set qwen-asr.enabled=true, you can also record or upload speech; the audio is transcribed automatically. If your browser does not support audio recording, upload an audio file instead
  3. Review and edit the transcript or source text
  4. Add optional instructions, or adjust the advanced settings
  5. Click Translate and review the Action, Critique, Judge, and final translation results

When ASR is enabled, recorded audio is held temporarily in browser memory and is not persisted by the web UI.

Clean Up

When you are finished, remove the deployed resources using the same deployment command, with kubectl delete instead of kubectl apply. For example, for Instinct use the following command:

Terminal window
helm template $name oci://registry-1.docker.io/amdenterpriseai/aimsb-agentic-translation \
| kubectl delete -f - -n $namespace

Third-Party Components

This Solution Blueprint uses multiple third-party components. To see the full set of software and Python dependencies, explore the repository source and dependency files. The table below highlights some of the key components. For further license information, refer to each component’s official documentation.

ComponentLicense
ViteMIT
ReactMIT
LangChainMIT
translation-agent (andrewyng/translation-agent)MIT

Terms of Use

AMD Solution Blueprints are released under the MIT License, which governs the parts of the software and materials created by AMD. Third-party Software and Materials used within the Solution Blueprints are governed by their respective licenses.

Refer to the documentation for additional information and advanced deployment options.

View advanced deployment guide