AI & ML interests

None defined yet.

pranavupadhyaya52 
posted an update 10 days ago
view post
Post
74
Experimenting with Continued Pretraining of Small Language Models on Niche Domains

I've been experimenting with continued pretraining of small language models (SLMs) to explore how effectively we can adapt existing foundational models to niche domains using relatively focused datasets.

For this experiment, I took Llama 3.2 1B and continued its pretraining on approximately 43,000 educational Python samples, with the goal of exploring domain adaptation towards Python programming and educational content.

The project is now available as Fermicode-1B.

What's interesting is that, even without formal benchmarking or quantitative evaluation yet, the initial generations have been surprisingly promising. It's encouraging to see how a relatively small model responds to continued exposure to a focused domain corpus.

A few things I want to explore further:

- How much domain-specific knowledge can continued pretraining introduce into a 1B parameter model?
- How does the model compare against the original base model on Python-related tasks?
- How much does dataset composition and quality influence domain adaptation?
- Where does continued pretraining end, and instruction fine-tuning begin, in building a useful domain-specific SLM?

I haven't drawn any performance conclusions yet. Proper benchmarking and comparative evaluation are still on my to-do list. For now, this is an interesting foundational ML experiment that I wanted to share with the community.

🔗 Explore Fermicode-1B

🤗 Model Repository:
pranavupadhyaya52/Fermicode-1B

🚀 Try the Model on Hugging Face Spaces:
pranavupadhyaya52/Fermicode-1B-Instruct-Demo

A little about me

I'm an ML Engineer with previous experience at Turing.com. I'm particularly interested in experimenting with core ML concepts, foundational model development, and understanding what's possible with smaller, resource-efficient language models.

I'd love to hear your thoughts and feedback.
pranavupadhyaya52 
posted an update 5 months ago
view post
Post
619
Wiki-SmartBotLM Benchmarked. Here are the results:

Benchmark WikiSB | Gemma3_270M
BoolQ 37.8 | 61.4
ARC Challenge 24.2 | 28.2
HellaSwag 26.3 | 37.7
PIQA 53.5 | 66.2
Winogrande 50.2 | 52.3

Summary:
Closest benchmark: Winogrande (2.1-point gap)
Strong performance: ARC Challenge (4.0-point gap)
Moderate gap: HellaSwag and PIQA
Largest gap: BoolQ (Reading Comprehension)

It shows despite the training difference between Gemma3 270M and WikiSmartBotLM, It does come close to Gemma 3 in some benchmarks.

pranavupadhyaya52/Wiki-SmartBotLM-Instruct
  • 3 replies
·
pranavupadhyaya52 
posted an update 5 months ago
view post
Post
3,677
After several weeks of experimenting, debugging, and iterating, I am excited to share WikiSmartBotLM.

WikiSmartBotLM is a compact decoder only language model built from the ground up as an educational and practical project. The goal was not simply to train another language model, but to create one that is easy to understand, modify, and experiment with while following many of the architectural ideas used in modern LLMs.

The model is built on a custom Transformer architecture featuring Rotary Positional Embeddings, RMSNorm, SwiGLU feed forward layers, grouped query attention, and an efficient autoregressive decoder optimized for local inference.

The repository includes the complete model implementation, configuration files, tokenizer integration, training pipeline, inference scripts, checkpoint conversion utilities, and examples that demonstrate how each component works together. Whether you want to understand the forward pass, train your own model, or build applications on top of WikiSmartBotLM, everything is designed to be approachable.
You can directly run the model via the models Huggingfaces space, which I've included in the post.

Model Repository: pranavupadhyaya52/Wiki-SmartBotLM-Instruct

I hope WikiSmartBotLM becomes a useful resource for anyone who enjoys learning by building. Feedback, issues, feature requests, and contributions are always welcome.
pranavupadhyaya52/WikiSmartBot
  • 1 reply
·
pranavupadhyaya52 
posted an update over 1 year ago
view post
Post
273
Here are my complete project notebooks hosted to my project titled "Multimodal Custom Finetuned LLM for Virtual Healthcare Consultations" at OSF - https://osf.io/ne2zh/
pranavupadhyaya52 
posted an update over 1 year ago
view post
Post
2,287
Hello everyone. I've built a medical AI assistant application.

pranavupadhyaya52/MediWiki_Medical_Assistant

It is a multimodal chatbot and can accept text, radiology images, prescription and lab reports (currently it only accepts one image per chat.) and audio files (wav and MP3 extension files).

It is built on top of a finetuned Llama 3.2 11B vision instruct. It also uses a 41000 medically related question answer pair stored in the form of chromadb embedding for Retrieval Augmented Generation (RAG).

Please let me know your thoughts on my project and how I can improve it further. Thank you.
  • 5 replies
·