This repository contains a fine-tuned language model specifically trained on Prothom Alo news articles, both English and Bengali content. The model is available in Safetensors format for safe, efficient deployment and distribution.
📊 Model Details
Base Model: DistilGPT2 (82M parameters)
Training Data: 6 Prothom Alo news articles (English & Bengali)
Model Format: Hugging Face Transformers + Safetensors
File Size: 459.72 MB
Languages: English and Bengali
Training Epochs: 3
Final Training Loss: 2.395
🎯 Achievement Summary
✅ Successfully scraped Prothom Alo website (English & Bengali)
✅ Created training dataset with proper train/validation/test splits
✅ Fine-tuned language model on Prothom Alo content
✅ Converted to Safetensors format for distribution
✅ Tested model functionality - text generation working!
✅ Created comprehensive documentation and model card
📁 Project Structure
prothomalo_project/
├── enhanced_prothomalo/ # Training dataset
│ ├── train/ # Training articles (3)
│ ├── validation/ # Validation articles (1)
│ └── test/ # Test articles (2)
├── prothomalo_model/ # Fine-tuned model
│ ├── final_model/ # Hugging Face model format
│ └── inference.py # Usage examples
├── prothomalo_model.safetensors # Model in Safetensors format
├── enhanced_dataset_creator.py # Data collection script
├── model_trainer.py # Training pipeline
├── test_model.py # Model testing script
└── README.md # This file
🔍 Model Testing Results
The fine-tuned model has been tested with various prompts:
Test 1: Bangladesh News
Prompt: "The latest news from Bangladesh" Generated: Economic analysis with realistic GDP and inflation data
Test 2: Opinion Piece
Prompt: "In today's opinion piece" Generated: Political commentary style content
Test 3: Government Policy
Prompt: "Government announces new policy" Generated: Policy announcement format