~ Note: These blogs can be found in the SugarLabs website as well. The content is the same in both places :) ~
There is only one final part left in the refactor of the Speak Activity, and those are the LLM powered features. For this we need to have the LLM hosted somewhere.
So it was time to deploy SugarAI on our AWS.
So here is what I did:
- Spin up an EC2 instance that uses g5 large GPUs. This instance is being run under my AWS-Sugarlabs account. So if someone is reading this as documentation and there is an issue with the service and you need to reach out to me, do so by shooting me a mail at : [email protected].
- Ran the following code to setup the instance and pull SugarAI:
# Add Docker's official GPG key:
apt-get update -y
apt-get install -y ca-certificates curl
install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg -o /etc/apt/keyrings/docker.asc
chmod a+r /etc/apt/keyrings/docker.asc
# Add the repository to Apt sources:
echo \
"deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.asc] https://download.docker.com/linux/ubuntu \
$(. /etc/os-release && echo "${UBUNTU_CODENAME:-$VERSION_CODENAME}") stable" | \
tee /etc/apt/sources.list.d/docker.list > /dev/null
apt-get update -y
apt-get install -y docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin
groupadd docker
usermod -aG docker $USER
systemctl enable docker.service
systemctl enable containerd.service
git clone https://github.com/sugarlabs/sugar-ai.git && cd sugar-ai
docker build -t sugar-ai .
docker run --gpus all -it --rm sugar-ai
port 8000
.443(HTTPS)
and 22(SSH)
.port 8000
to port 443
and also get SSL certificates.A record
for this service, which would be needed to issue the SSL certificate.Thank you to my mentors, the Sugar Labs community, and fellow GSoC contributors for their ongoing support.
Powered by Not An SSG 😎