# sanaullah-ai/tech-prime-intern architecture

> Architecture diagram of the GitHub repository sanaullah-ai/tech-prime-intern, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-08-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/sanaullah-ai/tech-prime-intern
- Repository: https://github.com/sanaullah-ai/tech-prime-intern

## Overview

#### 1. Repository Role
This is an AI/ML training portfolio, not a single integrated product. It organizes weekly learning materials, executable notebooks, and several standalone model projects spanning computer vision, NLP, and LLM concepts. The root entry point is `README.md`; runnable entry points are primarily notebooks plus one Python NLP application.

#### 2. PyTorch Image Classification
The first self-contained project trains or evaluates a CIFAR-10 image classifier in PyTorch. Its executable implementation is `Week1/Project/image-classifier-cifar-10/CIFAR10.py`, supported by an exploratory/training notebook at `Week1/Project/image-classifier-cifar-10/image-classifier-cifar-10.ipynb`. A serialized model checkpoint, `Week1/Project/image-classifier-cifar-10/cifar10_best_model.pth`, forms the boundary between training and inference/reuse.

#### 3. Computer-Vision Model Stages
Computer-vision work progresses from CNN practice to object detection and segmentation:
- YOLO-based custom object detection is implemented in `Week2/Project/custom-object-detector-YOLO/custom-object-detection-system-yolo-based.ipynb`, with pretrained weights in `Week2/Project/custom-object-detector-YOLO/yolov8n.pt`.
- Medical image segmentation is captured as an end-to-end notebook pipeline in `Week3/Project/medical-segmentation-pipeline.ipynb`.
- Supporting CV concepts and phase notes are separated from executable work under `Computer-Vision/Notes/Phase1.md` through `Computer-Vision/Notes/Phase10.md`.

These projects are independently run notebook workflows, not services connected to one another.

#### 4. NLP Classification and Sequence Models
The Week 4 sentiment system is a notebook-driven text-classification project: `Week4/Project/Sentiment-Analysis-System/sentiment-analysis-system.ipynb`. It preserves multiple trained recurrent-model artifacts—`best_LSTMModel.pt`, `best_GRUModel.pt`, `best_BiLSTMModel.pt`, and `best_BiGRUModel.pt`—enabling architecture comparison and inference without retraining. Tokenization, embeddings, and recurrent-network learning experiments remain separate in `Week4/tokenization-and-word-embedding.ipynb` and `Week4/bidirectional-lstm-gru.ipynb`.

#### 5. Advanced NLP Application Boundary
The closest component to an application is the NLP Platform. `Week5/Project/NLP-Platform/app.py` is its runtime entry point; `nlp_functions.py` contains NLP processing/model-facing logic, while `ui_components.py` isolates presentation elements. Dependencies are declared in `Week5/Project/NLP-Platform/requirements.txt`. The project notebook, `advance-nlp-project.ipynb`, likely serves as the experimentation/training counterpart. This separation establishes an application/UI boundary absent from the notebook-only projects.

#### 6. LLM and RAG Learning Track
Week 6 contains notebook-based LLM stages: architecture/tokenization, pre-training and prompting, fine-tuning/transfer learning, and evaluation/RAG concepts. Core paths are `Week6/llm-architecture-tokenization.ipynb`, `Week6/pre-training-prompt-engineering.ipynb`, and `Week6/llm-evaluation-rag.ipynb`. Although the root README describes future RAG and agentic systems using LangChain, LlamaIndex, LangGraph, and CrewAI, no Week 7 or Week 8 implementation paths are present in this tree.

#### 7. Runtime and Infrastructure
Primary runtime is Python 3.8+ with PyTorch; notebooks require a Jupyter-compatible environment and may use GPU acceleration. Model files (`.pth`/`.pt`) are local artifacts, including YOLOv8 pretrained weights. Hugging Face Transformers and LangChain are declared portfolio technologies; their concrete integration is most plausibly within advanced NLP/LLM notebooks, but is not verifiable from the supplied tree. There is no repository-wide package, CI pipeline, database, API gateway, or deployed infrastructure evidenced here.

Main entry points: [`README.md`](https://github.com/sanaullah-ai/tech-prime-intern/blob/main/README.md) (Portfolio entry point), [`Week5/Project/NLP-Platform/app.py`](https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week5/Project/NLP-Platform/app.py) (NLP Platform runtime), [`Week4/Project/Sentiment-Analysis-System/sentiment-analysis-system.ipynb`](https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week4/Project/Sentiment-Analysis-System/sentiment-analysis-system.ipynb) (Sentiment classifier), [`Week1/Project/image-classifier-cifar-10/image-classifier-cifar-10.ipynb`](https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week1/Project/image-classifier-cifar-10/image-classifier-cifar-10.ipynb) (CIFAR-10 training)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_cv["Computer Vision"]
  node_cifar_code["CIFAR-10 classifier<br/>PyTorch script<br/>[CIFAR10.py]"]
  node_cifar_notebook["CIFAR-10 training<br/>Jupyter notebook"]
  node_cifar_checkpoint[("CIFAR-10 checkpoint<br/>model artifact")]
  node_cv_notes["CV phase notes<br/>learning notes<br/>[Phase1.md]"]
  node_yolo_notebook["YOLO custom detection<br/>Jupyter notebook"]
  node_yolo_weights[("YOLOv8 pretrained weights<br/>model artifact<br/>[yolov8n.pt]")]
  node_medical_segmentation["Medical segmentation<br/>Jupyter notebook"]
end

subgraph group_nlp["NLP"]
  node_sentiment_notebook["Sentiment classifier<br/>Jupyter notebook"]
  node_sentiment_models[("Recurrent model artifacts<br/>[best_LSTMModel.pt]")]
  node_embedding_notebook["Tokenization and embeddings<br/>Jupyter notebook"]
  node_sequence_notebook["Bidirectional sequence models<br/>Jupyter notebook"]
  node_nlp_app["NLP Platform runtime<br/>Python application<br/>[app.py]"]
  node_nlp_logic["NLP processing logic<br/>Python module<br/>[nlp_functions.py]"]
  node_nlp_ui["UI components<br/>Python module<br/>[ui_components.py]"]
  node_nlp_project_notebook["Advanced NLP project<br/>Jupyter notebook"]
  node_nlp_requirements["Application dependencies<br/>dependency manifest<br/>[requirements.txt]"]
end

subgraph group_llm["LLM Learning Track"]
  node_llm_architecture["LLM architecture and tokens<br/>Jupyter notebook"]
  node_llm_prompting["Pre-training and prompting<br/>Jupyter notebook"]
  node_llm_rag["LLM evaluation and RAG<br/>Jupyter notebook"]
end

node_readme["Portfolio entry point<br/>documentation<br/>[README.md]"]

node_readme -.->|"indexes"| node_cifar_notebook
node_readme -.->|"indexes"| node_yolo_notebook
node_readme -.->|"indexes"| node_sentiment_notebook
node_readme -.->|"indexes"| node_nlp_app
node_readme -.->|"indexes"| node_llm_architecture
node_cifar_notebook -->|"trains"| node_cifar_checkpoint
node_cifar_code -->|"loads"| node_cifar_checkpoint
node_yolo_notebook -->|"uses"| node_yolo_weights
node_sentiment_notebook -->|"produces"| node_sentiment_models
node_embedding_notebook -.->|"supports concepts"| node_sentiment_notebook
node_sequence_notebook -.->|"supports architectures"| node_sentiment_notebook
node_nlp_app -->|"renders UI"| node_nlp_ui
node_nlp_app -->|"invokes"| node_nlp_logic
node_nlp_requirements -.->|"declares dependencies"| node_nlp_app
node_nlp_project_notebook -.->|"experimentation counterpart"| node_nlp_app
node_llm_architecture -.->|"learning progression"| node_llm_prompting
node_llm_prompting -.->|"learning progression"| node_llm_rag

click node_readme "https://github.com/sanaullah-ai/tech-prime-intern/blob/main/README.md"
click node_cifar_code "https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week1/Project/image-classifier-cifar-10/CIFAR10.py"
click node_cifar_notebook "https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week1/Project/image-classifier-cifar-10/image-classifier-cifar-10.ipynb"
click node_cifar_checkpoint "https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week1/Project/image-classifier-cifar-10/cifar10_best_model.pth"
click node_cv_notes "https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Computer-Vision/Notes/Phase1.md"
click node_yolo_notebook "https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week2/Project/custom-object-detector-YOLO/custom-object-detection-system-yolo-based.ipynb"
click node_yolo_weights "https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week2/Project/custom-object-detector-YOLO/yolov8n.pt"
click node_medical_segmentation "https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week3/Project/medical-segmentation-pipeline.ipynb"
click node_sentiment_notebook "https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week4/Project/Sentiment-Analysis-System/sentiment-analysis-system.ipynb"
click node_sentiment_models "https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week4/Project/Sentiment-Analysis-System/best_LSTMModel.pt"
click node_embedding_notebook "https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week4/tokenization-and-word-embedding.ipynb"
click node_sequence_notebook "https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week4/bidirectional-lstm-gru.ipynb"
click node_nlp_app "https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week5/Project/NLP-Platform/app.py"
click node_nlp_logic "https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week5/Project/NLP-Platform/nlp_functions.py"
click node_nlp_ui "https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week5/Project/NLP-Platform/ui_components.py"
click node_nlp_project_notebook "https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week5/Project/NLP-Platform/advance-nlp-project.ipynb"
click node_nlp_requirements "https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week5/Project/NLP-Platform/requirements.txt"
click node_llm_architecture "https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week6/llm-architecture-tokenization.ipynb"
click node_llm_prompting "https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week6/pre-training-prompt-engineering.ipynb"
click node_llm_rag "https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week6/llm-evaluation-rag.ipynb"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_cifar_code,node_cifar_notebook,node_cifar_checkpoint,node_cv_notes,node_yolo_notebook,node_yolo_weights,node_medical_segmentation toneBlue
class node_sentiment_notebook,node_sentiment_models,node_embedding_notebook,node_sequence_notebook,node_nlp_app,node_nlp_logic,node_nlp_ui,node_nlp_project_notebook,node_nlp_requirements toneAmber
class node_llm_architecture,node_llm_prompting,node_llm_rag toneMint
class node_readme toneNeutral
```

## Components

### Computer Vision

Independent notebook and PyTorch CV projects.

- [CIFAR-10 classifier](https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week1/Project/image-classifier-cifar-10/CIFAR10.py): PyTorch script · Runnable image classification implementation. · `Week1/Project/image-classifier-cifar-10/CIFAR10.py`
- [CIFAR-10 training](https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week1/Project/image-classifier-cifar-10/image-classifier-cifar-10.ipynb): Jupyter notebook · Exploration and training workflow. · `Week1/Project/image-classifier-cifar-10/image-classifier-cifar-10.ipynb`
- [CIFAR-10 checkpoint](https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week1/Project/image-classifier-cifar-10/cifar10_best_model.pth): model artifact · Serialized best model for reuse or inference. · `Week1/Project/image-classifier-cifar-10/cifar10_best_model.pth`
- [CV phase notes](https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Computer-Vision/Notes/Phase1.md): learning notes · Phase-based computer-vision concepts and notes. · `Computer-Vision/Notes/Phase1.md`
- [YOLO custom detection](https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week2/Project/custom-object-detector-YOLO/custom-object-detection-system-yolo-based.ipynb): Jupyter notebook · Custom object-detection workflow. · `Week2/Project/custom-object-detector-YOLO/custom-object-detection-system-yolo-based.ipynb`
- [YOLOv8 pretrained weights](https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week2/Project/custom-object-detector-YOLO/yolov8n.pt): model artifact · Pretrained detector weights. · `Week2/Project/custom-object-detector-YOLO/yolov8n.pt`
- [Medical segmentation](https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week3/Project/medical-segmentation-pipeline.ipynb): Jupyter notebook · End-to-end medical image segmentation pipeline. · `Week3/Project/medical-segmentation-pipeline.ipynb`

### NLP

Text classification experiments and an executable NLP application.

- [Sentiment classifier](https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week4/Project/Sentiment-Analysis-System/sentiment-analysis-system.ipynb): Jupyter notebook · Text-classification training and comparison workflow. · `Week4/Project/Sentiment-Analysis-System/sentiment-analysis-system.ipynb`
- [Recurrent model artifacts](https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week4/Project/Sentiment-Analysis-System/best_LSTMModel.pt): model artifacts · LSTM, GRU, BiLSTM, and BiGRU checkpoints. · `Week4/Project/Sentiment-Analysis-System/best_LSTMModel.pt`
- [Tokenization and embeddings](https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week4/tokenization-and-word-embedding.ipynb): Jupyter notebook · NLP representation-learning experiments. · `Week4/tokenization-and-word-embedding.ipynb`
- [Bidirectional sequence models](https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week4/bidirectional-lstm-gru.ipynb): Jupyter notebook · BiLSTM and BiGRU learning experiments. · `Week4/bidirectional-lstm-gru.ipynb`
- [NLP Platform runtime](https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week5/Project/NLP-Platform/app.py): Python application · Closest standalone application entry point. · `Week5/Project/NLP-Platform/app.py`
- [NLP processing logic](https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week5/Project/NLP-Platform/nlp_functions.py): Python module · Model-facing NLP processing layer. · `Week5/Project/NLP-Platform/nlp_functions.py`
- [UI components](https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week5/Project/NLP-Platform/ui_components.py): Python module · Presentation layer isolated from NLP logic. · `Week5/Project/NLP-Platform/ui_components.py`
- [Advanced NLP project](https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week5/Project/NLP-Platform/advance-nlp-project.ipynb): Jupyter notebook · Experimentation and training counterpart to the application. · `Week5/Project/NLP-Platform/advance-nlp-project.ipynb`
- [Application dependencies](https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week5/Project/NLP-Platform/requirements.txt): dependency manifest · `Week5/Project/NLP-Platform/requirements.txt`

### LLM Learning Track

Notebook-based LLM and RAG learning stages.

- [LLM architecture and tokens](https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week6/llm-architecture-tokenization.ipynb): Jupyter notebook · Architecture and tokenization learning stage. · `Week6/llm-architecture-tokenization.ipynb`
- [Pre-training and prompting](https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week6/pre-training-prompt-engineering.ipynb): Jupyter notebook · Pre-training, transfer, and prompt engineering stage. · `Week6/pre-training-prompt-engineering.ipynb`
- [LLM evaluation and RAG](https://github.com/sanaullah-ai/tech-prime-intern/blob/main/Week6/llm-evaluation-rag.ipynb): Jupyter notebook · Evaluation and RAG concepts stage. · `Week6/llm-evaluation-rag.ipynb`

### Other components

- [Portfolio entry point](https://github.com/sanaullah-ai/tech-prime-intern/blob/main/README.md): documentation · Repository guide to weekly learning material and projects. · `README.md`

## Connections

- Portfolio entry point → CIFAR-10 training: indexes
- Portfolio entry point → YOLO custom detection: indexes
- Portfolio entry point → Sentiment classifier: indexes
- Portfolio entry point → NLP Platform runtime: indexes
- Portfolio entry point → LLM architecture and tokens: indexes
- CIFAR-10 training → CIFAR-10 checkpoint: trains
- CIFAR-10 classifier → CIFAR-10 checkpoint: loads
- YOLO custom detection → YOLOv8 pretrained weights: uses
- Sentiment classifier → Recurrent model artifacts: produces
- Tokenization and embeddings → Sentiment classifier: supports concepts
- Bidirectional sequence models → Sentiment classifier: supports architectures
- NLP Platform runtime → UI components: renders UI
- NLP Platform runtime → NLP processing logic: invokes
- Application dependencies → NLP Platform runtime: declares dependencies
- Advanced NLP project → NLP Platform runtime: experimentation counterpart
- LLM architecture and tokens → Pre-training and prompting: learning progression
- Pre-training and prompting → LLM evaluation and RAG: learning progression
