Keep 100% pure open-source Hugging Face datasets only (Zero synthetic Python generation)
Browse files269 unmodified lines270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336219 unmodified lines556557558559560561562563269 unmodified linesprint(f" ✅ Pillar 1 Ready: {p1:,} samples.")sys.stdout.flush()# --------------------------------------------------------------------------# Pillar 1.5: Indian Spoken Colloquial, Slang & Intent Equivalence Anchors# --------------------------------------------------------------------------# Bridges the gap between textbook grammar and everyday spoken colloquial Hinglish.# Teaches the model slangs ("code fat gya", "jugaad", "scene kya h", "error fek rha h"),# shorthands ("smjh", "ni", "nhi", "yr", "btado", "plz"), and intent alignment!print("\n🔹 [1.5/7] Packing Indian Spoken Colloquial & Slang Anchors...")sys.stdout.flush()colloquial_anchors = [# Coding & Debugging in everyday spoken Hinglish("bhai code fat gya dekh na syntax error fek rha h","Arre tension mat lo bhai! Code snippet aur terminal ka exact error message share karo, hum milke abhi debug karte hain ki syntax me kahan gadbad hai."),("api hit ni ho rhi 500 error aa rha h kya kru yr","500 Internal Server Error ka matlab backend server crash ho gaya hai. Backend terminal ya console logs check karo ki kis line par exception throw hua hai. Routing aur environment variables bhi verify karo bhai."),("python me list comprehension ka easy jugaad btao","Bilkul bhai! Python me list comprehension bohot simple aur fast hota hai: `squares = [x**2 for x in range(10) if x % 2 == 0]`. Isse lambe for-loop ki zaroorat nahi padti aur code ek line me clean dikhta hai!"),("bhai loop fas gya infinite chal rha h kaise roke","Pehle terminal me Ctrl + C dabakar process kill karo. Fir code me check karo ki loop variable increment (i += 1) ho raha hai ya nahi aur termination condition reach ho rahi hai ya nahi."),("django vs fastapi me kya pick kru yr confuse hu","Bhai agar heavy admin panel, user auth aur built-in ORM chahiye to Django best hai. Lekin agar microservice, fast REST APIs aur async speed chahiye to FastAPI pick karo!"),("git merge conflict aa gya kaise fix kru","Bhai chill karo! Pehle git status chalao, conflicted file open karo jahan `<<<<<<< HEAD` markers lage hain. Apna final code finalize karke markers delete karo, fir `git add .` aur `git commit` kar do. Sorted!"),("sql query me fas gya hu join kaise lgana h","Table structure batao bhai! Matching rows ke liye `INNER JOIN` use karo, aur agar left table ka saara data chahiye chahe match ho ya na ho to `LEFT JOIN` lgao."),("docker container baar baar restart ho rha h kya scene h","Bhai `docker logs <container_id>` run karo. Usually container turant exit tab hota hai jab entrypoint script fail ho jati hai ya koi foreground process nahi hoti."),# Casual & Daily Indian Slangs & Shorthands("aaj ka kya scene h bro","Bas sab badhiya bhai! Aap batao, aaj kis project ya topic par kaam karna hai? Main poori tarah ready hoon!"),("kuch smjh ni aara yr padhai start kaise kru","Overthinking mat karo bhai! Sabse pehle ek chota aur easy topic select karo, phone ko DND par daalo aur 25 minutes ka timer laga kar focus mode me padho. Choti shuruat se momentum banta hai."),("yr ek leave application draft kr do boss k liye tabiyat theek ni h","Ye lijiye bhai, ek clean aur professional sick leave application:\n\nSubject: Sick Leave Application - [Your Name]\n\nDear [Manager's Name],\n\nI am writing to inform you that I am unwell today and will not be able to attend work. I will keep you updated on my recovery and ensure urgent tasks are addressed. Thank you for understanding.\n\nWarm regards,\n[Your Name]"),("bhai ye model phone me offline chalega kya","Haan bhai! ViuAI Sarus-500M ko 4-bit GGUF quantize karke llama.cpp ya MLC LLM ke through Android phone par bina internet ke 100% offline super fast run kar sakte ho!"),("kuch jugaad btao na yr","Bhai exact problem batao, har technical problem ka smart aur solid jugaad nikalte hain!"),("bta na yr kaise kru","Bhai step-by-step batata hoon, batao kahan se start karna hai!"),("mujhe machine learning sikhna h roadmap do bro","Bhai solid 4-step roadmap ye raha: 1. Python & NumPy/Pandas, 2. Math (Linear Algebra & Calculus basics), 3. Scikit-Learn (Linear Regression, Decision Trees), 4. Deep Learning (PyTorch & Transformers). Har step par chote projects banao!"),# Formal vs Colloquial Intent Bridges("Kripya mujhe binary search ka siddhant samjhayein.","Binary Search ek efficient algorithm hai jo sorted list me kisi element ko dhoondhne ke liye har step par search space ko aada (half) kar deta hai. Iski time complexity O(log n) hoti hai."),("bhai binary search ka logic simple bhasha me bta de","Bhai simple example: Jaise dictionary me word dhoondhte waqt aap direct beech ka page kholte ho. Agar word aage hai to pehla aada hissa chhod dete ho. Har step me list aadhi hoti jati hai! Isi ko Binary Search bolte hain O(log n)."),("line pe solder bridging ka issue aa rha h stencil check kre kya","Haan bhai! Solder bridging ke liye pehle stencil aperture size, squeegee pressure aur PCB support pins check karo. Sath hi solder paste ki viscosity aur reflow soak zone profile inspect karo."),("bhai audit h iatf 16949 me kya check hoga","IATF 16949 audit me Control Plans, PFMEA, 8D Root Cause Analysis reports, Gage R&R, Calibration logs, aur Non-Conformance action plans sabse pehle verify kiye jate hain."),("bro fast reply kr direct answer chahiye","Samajh gaya bhai! Seedha point-to-point, crisp aur 100% accurate jawab bina kisi faltu gyan ke."),]p15 = 0for inst, resp in colloquial_anchors:pair = format_qa(inst, resp)if pair and add_pair(pair[0], pair[1], 1, pair[2]):p15 += 1print(f" ✅ Pillar 1.5 Ready: {p15:,} Indian Spoken Slang Anchors packed.")sys.stdout.flush()# --------------------------------------------------------------------------# Pillar 2: STEM, Math & Physics Reasoning (<thought> inner monologue)# --------------------------------------------------------------------------219 unmodified lines"train_tokens": total_train_tokens_count,"val_tokens": total_val_tokens_count,"max_seq_len": MAX_SEQ_LEN,"dedup_policy": "Normalized 64-bit Canonical Hash (Drops redundant duplicate questions while preserving colloquial slang & formal variations)","colloquial_grounding": "Active (Everyday Indian Tech/Life Slang & Shorthand Intent Equivalence)","thinking_mode": "Adaptive (Short 30-60 token thinking on STEM/Math, Direct on Chat/Mails)","refusal_policy": "Strict Zero Refusals (Canned AI preachiness dropped)","language_gate": "100% Roman Alphabet (Zero Devanagari)"269 unmodified lines270271272273274275219 unmodified lines495496497498499500501269 unmodified linesprint(f" ✅ Pillar 1 Ready: {p1:,} samples.")sys.stdout.flush()# --------------------------------------------------------------------------# Pillar 2: STEM, Math & Physics Reasoning (<thought> inner monologue)# --------------------------------------------------------------------------219 unmodified lines"train_tokens": total_train_tokens_count,"val_tokens": total_val_tokens_count,"max_seq_len": MAX_SEQ_LEN,"dedup_policy": "Normalized 64-bit Canonical Hash (Drops redundant duplicate questions while preserving real diverse variations)","thinking_mode": "Adaptive (Short 30-60 token thinking on STEM/Math, Direct on Chat/Mails)","refusal_policy": "Strict Zero Refusals (Canned AI preachiness dropped)","language_gate": "100% Roman Alphabet (Zero Devanagari)"
code/build_sft_v2_kaggle.py+1-63