rsumit1234 commited on
Commit
2c4a6cb
·
verified ·
1 Parent(s): cfedea5

Upload README.md

Browse files
Files changed (1) hide show
  1. README.md +20 -9
README.md CHANGED
@@ -1,16 +1,27 @@
1
  ---
2
- title: Scratchq 110
3
- emoji: 💬
4
  colorFrom: yellow
5
- colorTo: purple
6
  sdk: gradio
7
- sdk_version: 6.5.1
8
  app_file: app.py
9
  pinned: false
10
- hf_oauth: true
11
- hf_oauth_scopes:
12
- - inference-api
13
- short_description: Indian quiz trained
14
  ---
15
 
16
- An example chatbot using [Gradio](https://gradio.app), [`huggingface_hub`](https://huggingface.co/docs/huggingface_hub/v0.22.2/en/index), and the [Hugging Face Inference API](https://huggingface.co/docs/api-inference/index).
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
  ---
2
+ title: ScratchQ 110M
3
+ emoji: 🧠
4
  colorFrom: yellow
5
+ colorTo: green
6
  sdk: gradio
7
+ sdk_version: 4.44.0
8
  app_file: app.py
9
  pinned: false
10
+ license: mit
 
 
 
11
  ---
12
 
13
+ # ScratchQ — 110M Indian-GK chatbot, trained from scratch
14
+
15
+ A 110M-parameter Llama-style language model **trained entirely from scratch** on $2 of compute (2B FineWeb-Edu tokens), then SFT'd on 6,686 Indian general-knowledge MCQs and SQuAD passages. RAG over a 4,600-chunk Indian Wikipedia knowledge base.
16
+
17
+ ## What's interesting
18
+
19
+ - **Trained from scratch**: random init → tokenizer → pretraining (10,500 steps, loss 3.10) → SFT (loss 1.81) — no foundation model anywhere in the pipeline except the Llama-2 *tokenizer*.
20
+ - **Beats GPT-2 medium (3× larger)** on Indian-MCQ benchmarks: 36.5% vs 17.5% log-likelihood accuracy.
21
+ - **Specialized scope** — politely declines questions outside Indian-context (history, mythology, geography, politics, sports, food).
22
+
23
+ ## Limits (be charitable, it's 110M params)
24
+
25
+ - Can be wrong on niche facts even with retrieval.
26
+ - Free-form chat accuracy on factoid questions: ~30-40% — meaningful signal but not a real chatbot.
27
+ - Code/repo: https://github.com/rsumit123/private-llm