Skip to content

Python code to demonstrate support for language translation in watsonx. Using the granite-20b-multilingual LLM

Notifications You must be signed in to change notification settings

heyfrancisco/watsonx-lang-translation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Use watsonx, and granite-20b-multilingual to support multiple languages translation

Disclaimers The goal of this repository is to show the capabilities of WatsonX ML using the granite-20b-multilingual to demonstrate how to translate multiple languages.

This repository is based on Mateusz Szewczyk's repository.

Requirements

  1. Create a Watson Machine Learning (WML) Service instance (a free plan is offered and information about how to create the instance can be found here).
  2. Install ibm-watsonx-ai dependecies:
$ pip install "ibm-watsonx-ai"
  1. Edit example.env.py file with your IBM Cloud API Key, and watsonx Project ID.
  2. Rename the file example.env.py to env.py.
  3. Run the script:
$ python3 main.py

About

Python code to demonstrate support for language translation in watsonx. Using the granite-20b-multilingual LLM

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages