Skip to content

samanta-sc/Bilingual-Health-QnA

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

πŸ₯ Bilingual Health QnA (Bengali + English)

An AI-powered health question-answering system that supports both Bengali and English queries.
Built on top of Llama-3.2-3B-Instruct (Unsloth) with LoRA fine-tuning, this project enables multilingual healthcare assistance with optimized performance and API deployment.


πŸš€ Project Highlights

  • Model: unsloth/Llama-3.2-3B-Instruct
  • LoRA Fine-tuning: Efficient training with low-rank adaptation
  • Bilingual Support: Automatically detects question language (Groq API + Deepseek model)
  • Dataset Sources:
  • Performance: Achieved validation loss: 0.74
  • Deployment: FastAPI + ngrok, tested with Postman
  • Environment: Trained on Kaggle GPU

πŸ’‘ Inference & Generation

  • Language Detection: Groq API + Deepseek

  • English Generation:

max_new_tokens=128, temperature=0.1, min_p=0.1
  • Bengali Generation:
max_new_tokens=256, temperature=0.1, min_p=0.1
  • Repetition handled via unique sentence filtering.

🌐 API Exposure

  • Built with FastAPI
  • Exposed via ngrok
  • Tested with Postman

πŸ“Š Results

βœ… Bilingual support (Bengali + English)
βœ… Validation loss: 0.74
βœ… Stable inference with low temperature
βœ… Deployed as REST API

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published