Skip to content

Commit 3e1b645

Browse files
authored
week11 report (#394)
1 parent e7f4d0d commit 3e1b645

File tree

1 file changed

+76
-0
lines changed

1 file changed

+76
-0
lines changed
Lines changed: 76 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,76 @@
1+
---
2+
title: "GSoC ’25 Week 11 Update by Diwangshu Kakoty"
3+
excerpt: "Reflection Widget"
4+
category: "DEVELOPER NEWS"
5+
date: "2025-08-29"
6+
slug: "2025-08-29-gsoc-25-diwangshu-week11"
7+
author: "@/constants/MarkdownFiles/authors/diwangshu-kakoty.md"
8+
tags: "gsoc25,sugarlabs,week11,AI"
9+
image: "assets/Images/GSOC.webp"
10+
---
11+
12+
<!-- markdownlint-disable -->
13+
14+
# Week 11 Progress Report by Diwangshu Kakoty
15+
16+
**Project:** [AI Tools for Reflection](https://github.com/Commanderk3/reflection_ai)
17+
**Mentors:** [Walter Bender](https://github.com/walterbender), [Sumit Srivastava](https://github.com/sum2it)
18+
**Assisting Mentors:** [Devin Ulibarri](https://github.com/pikurasa), [Ajeet Pratap Singh](https://github.com/apsinghdev)
19+
**Reporting Period:** 2025-08-12 - 2025-08-18
20+
21+
---
22+
23+
## Goals for This Week
24+
25+
- **Goal :** Deploy the backend on AWS.
26+
27+
---
28+
29+
## This Week’s Achievements
30+
31+
1. **Deployed the backend on AWS**
32+
- I was able to successfully deploy the FastAPI backend on Sugar Labs' AWS. This involved setting up the server environment, configuring necessary dependencies, and ensuring that the API endpoints were accessible.
33+
34+
- I chose EC2 instance and set up a linux server. I installed Python, FastAPI, and other required libraries. I also configured security groups to allow incoming traffic on the necessary ports.
35+
36+
- Because the backend is runing a sentence-transformer model, I chose t3.micro instance which has 2 vCPUs and 1 GiB of memory. This is sufficient for handling requests without incurring high costs.
37+
38+
- It is using systemd to manage the FastAPI service. This ensures that the service starts automatically on server reboot and can be easily monitored.
39+
40+
---
41+
42+
## Challenges & How I Overcame Them
43+
44+
- **Challenge 01:** This was my first time deploying a backend on AWS, so I faced several challenges related to server configuration, security settings, and dependency management. The first cahllenge was setting up thr disk space. The default disk space was not sufficient for installing all the required libraries and models. I increase the volume size from 8 GB to 25 GB but it was not enough.
45+
46+
**Solution:** I came to know that the volume size was not the issue but the root partition size was the issue. So, I resized the root partition using `growpart` and `resize2fs` commands. After resizing, I was able to install all the required libraries and models without any issues.
47+
48+
- **Challenge 02:** Next challenge was running the uvicorn server. The t3.micro instance has low memory and therefore, the sentence transformer model was causing the server to crash frequently.
49+
50+
**Solution:** I used the leftover swap space to increase the memory. I created a swap file of 1 GB and enabled it. This helped in stabilizing the server and preventing crashes.
51+
52+
53+
---
54+
55+
## Next Week’s Roadmap
56+
57+
- Work on things suggested by my mentors. This may include:
58+
- Adding more features to the reflection widget.
59+
- Improving the performance of the backend.
60+
61+
- Write documentation for the project.
62+
63+
---
64+
65+
## Resources & References
66+
67+
- **Reflection widget development branch:** [reflection](https://github.com/Commanderk3/musicblocks/tree/reflection)
68+
- **Fast API server:** [musicblocks_reflection_fastapi](https://github.com/Commanderk3/musicblocks_reflection_fastapi)
69+
70+
---
71+
72+
## Acknowledgments
73+
74+
Thank you to my mentors, the Sugar Labs community, and fellow GSoC contributors for ongoing support.
75+
76+
---

0 commit comments

Comments
 (0)