Deploying BMC AMI AI Services on zCX or zLinux
Task 1: To acquire the required infrastructure
You must acquire the following infrastructure to run BMC AMI AI Services.
To acquire a zCX/zLinux instance
Create a zCX/zLinux instance in accordance with your configuration. This instance is used to deploy BMC AMI Platform services.
For optimal performance with BMC AMI AI Services use zCX/zLinux instance (CPU – 1 core, 8 GB RAM)
To acquire the infrastructure for BMC AMI AI Models
BMC AMI AI Services support the following types of infrastructure:
AWS—To create an AWS instance, see Creating-an-EC2-instance.
Azure—To create an Azure virtual machine, see Creating-a-virtual-machine.
- On-premises x86 Linux distribution (Ubuntu)—To create an on-premises instance, see Task 1: To acquire the required Infrastructure.
After acquiring the configuration, note the IP or domain name for both machines, because you will need it to perform application installation.
Task 2: To download the required scripts from EPD
- Make sure that you complete the steps outlined in Downloading-the-installation-files and obtain the BMC-AMI-AI-zCX.zip file.
- Extract the contents from the BMC-AMI-AI-zCX.zip file and save the extracted files in a folder of your choice for future use.
Task 3: To configure BMC AMI AI Services for installation
Update the configuration in the Ansible scripts, based on the services that you need:
- BMC AMI AI Platform Services configuration
- BMC AMI Code Insights Explain configuration
- BMC AMI AI Model configuration
BMC AMI AI Platform Services configuration
You can find the BMC-AMI-AI-Platform.sh shell script file in the extracted folder. This script installs BMC AMI AI Platform services.
You must configure the following fields before running the Ansible script:
Field | Description |
---|---|
enable_ssl | To enable SSL for BMC AMI AI Services, set the value to true. |
ssl_keyfile_name | Enter the SSL key file name. |
ssl_certfile_name | Enter the SSL certificate name. |
ssl_encryption_cipher | Enter the supported values for TLSv1 or TLSv1.2. |
gateway_host | Enter the IP address or domain name of your x86 machine. BMC AMI AI Services communicates internally via this field. |
For licensing purposes, you must configure the following fields for BMC AMI Common Enterprise Services (CES). During integration provisioning, the CES details are provided to store BMC AMI AI Services access information. The CES details are also used with BMC AMI DevX Workbench applications to access BMC AMI AI Services. If you are using Code Insights Explain, you must configure the CES fields.
Field | Description |
---|---|
ces_scheme | Protocol of the CES instance |
ces_host | Host name or IP address of the CES instance |
ces_port | Port of the CES instance |
ces_username | If the CES instance requires a user name, then enter it. |
ces_password | If the CES instance requires a password, then enter it. |
If you have the mainframe machine's host name or IP address, enter it in the zos_host field to authenticate users. All authenticated users can access the BMC AMI AI Manager console.
If you don't have the host name or IP address, specify the administrator user name in the admin_user_id field. The default is admin. If you have set zos_host, reset the values set for the admin user in the admin_user_id field. All users are admin users.
In the admin_password field, set an admin user password encoded in base64. The default value is base64 encoding of amiaiadmin: YW1pYWlhZG1pbg==
To configure other properties, see Configuring-the-BMC-AMI-Platform-service.
To access the BMC AMI AI Services console, user credentials are required.
BMC AMI AI Code Insights Explain configuration
You can find the BMC-AMI-AI-Devx-Service.yml Ansible file in the extracted folder. This script installs BMC AMI AI Code Insights Explain.
You must configure the following fields before running the Ansible script:
Field | Description |
---|---|
enable_ssl | To enable SSL for BMC AMI AI Services, set the value to true. |
ssl_keyfile_name | Enter the SSL key file name. |
ssl_certfile_name | Enter the SSL certificate name. |
ssl_encryption_cipher | Enter the supported values for TLSv1 or TLSv1.2. |
integration_host | Update only when SSL is enabled. |
BMC AMI AI Model configuration
Use one of the following Ansible files in the extracted folder, depending on your selected configuration:
- BMC-AMI-AI-CPU-Service.yml—CPU (entry-level configuration)
- BMC-AMI-AI-GPU-Service.yml—GPU (mid-level and recommended configurations)
You must configure the following fields before running the Ansible script:
Field | Description |
---|---|
enable_ssl | To enable SSL for BMC AMI AI Services, set the value to true. |
ssl_keyfile_name | Enter the SSL key file name. |
ssl_certfile_name | Enter the SSL certificate name. |
ssl_encryption_cipher | Enter the supported values for TLSv1 or TLSv1.2. |
llm_host | Update only when SSL is enabled. |
vllm_kvcache_space | Set this value based on available CPU memory. |
Task 4: To copy the script and files to the machine
Copy the folder to the acquired instance, as follows:
- Locate the folder where you stored the following files:
- BMC-AMI-AI-Platform.sh
- BMC-AMI-AI-CPU-Service.yml
- BMC-AMI-AI-GPU-Service.yml
- BMC-AMI-AI-CPU.sh
- BMC-AMI-AI-GPU.sh
- BMC-AMI-AI-Devx.sh
- Move the BMC-AMI-AI-Platform.sh and BMC-AMI-AI-Devx.sh files to the zCX/zLinux and rest of the files to AWS/Azure/x86 Linux instance. You can use any scp client to copy all files.
Task 5: To deploy BMC AMI AI Services
- BMC AMI Platform services deployment
- Connect to the newly acquired zCX/zLinux instance via SSH. Make sure that the credentials used for login have admin access.
Run the following commands to deploy AMI AI Platform Services:
chmod +x BMC-AMI-AI-Platform.sh
sed -i -e 's/\r$//' BMC-AMI-AI-Platform.sh
./BMC-AMI-AI-Platform.sh- When prompted, enter your EPD portal's user name and password.
- BMC AMI AI Code Insights Explain deployment
- Connect to the newly acquired zCX/zLinux instance via SSH. Make sure that the credentials used for login have admin access.
Run the following commands to deploy AMI AI Platform Services:
chmod +x BMC-AMI-AI-Devx.sh
sed -i -e 's/\r$//' BMC-AMI-AI-Devx.sh
./BMC-AMI-AI-Devx.sh- When prompted, enter your EPD portal's user name and password.
- Model deployment
- Connect to the newly acquired AWS, Azure, or x86 Linux instance via SSH. Make sure that credentials used for login have admin access.
- Install Python and its dependency on-premises x86 machine as follows:
Verify whether Python is already installed by entering the python3 command. If Python is not installed, then run the following commands:
sudo apt update
sudo apt install python3Install pip by using the following commands:
sudo apt update
sudo apt-get -y install python3-pip
Run one of the following commands, based on your selected configuration. Do not run all the commands.
Configuration type
Command
Recommended
chmod +x BMC-AMI-AI-GPU.sh
sed -i -e 's/\r$//' BMC-AMI-AI-GPU.sh
./BMC-AMI-AI-GPU.shAfter running this command, enter Mixtral in the selection prompt window.
Mid-level
chmod +x BMC-AMI-AI-GPU.sh
sed -i -e 's/\r$//' BMC-AMI-AI-GPU.sh
./BMC-AMI-AI-GPU.shAfter running this command, enter Llama3 or Granite in the selection prompt window.
Entry-level
chmod +x BMC-AMI-AI-CPU.sh
sed -i -e 's/\r$//' BMC-AMI-AI-CPU.sh
./BMC-AMI-AI-CPU.sh- When prompted, enter your EPD portal's user name and password.
Task 6: To verify the deployment of BMC AMI AI Services
For more information about how to verify the deployment of BMC AMI AI Services, see Verifying the installation.