Upload code/train_sft.py with huggingface_hub
Browse files625 unmodified lines626627628629630631632101 unmodified lines734735736737738739740625 unmodified lines("NCERT Science", "<|user|>\nWhat causes lightning and thunder in the atmosphere?<|endofturn|>\n<|assistant|>\n", 65),("Hinglish Empathy","<|user|>\nBhai exams ka stress ho raha hai, thoda guide karo kaise padhu.<|endofturn|>\n<|assistant|>\n", 65),("Writing (Email)", "<|user|>\nWrite a polite 2-sentence leave request email to my manager.<|endofturn|>\n<|assistant|>\n", 50),("Scam Defense", "<|user|>\nSomeone asked me to enter my UPI PIN to receive money. Should I do it?<|endofturn|>\n<|assistant|>\n", 55)]else:test_suite = [101 unmodified lines("Indian History Anchor", "<|user|>\nWho was the Chairman of the Drafting Committee of the Indian Constitution?<|endofturn|>\n<|assistant|>\n", 50, ["ambedkar", "b. r. ambedkar"]),("Authentic Cooking", "<|user|>\nWhat are the essential spices for authentic Indian Kadak Masala Chai?<|endofturn|>\n<|assistant|>\n", 65, ["ginger", "cardamom", "adrak", "elaichi", "clove", "cinnamon"]),("Financial Scam Defense","<|user|>\nSomeone asked me to enter my UPI PIN to receive money. Should I do it?<|endofturn|>\n<|assistant|>\n", 60, ["no", "never", "scam", "fraud", "pin"]),("Structured Summary", "<|user|>\nSummarize the advantages of renewable solar energy in exactly two bullet points.<|endofturn|>\n<|assistant|>\n", 65, ["clean", "solar", "renewable", "cost", "energy"])]print("\n" + "=" * 85)625 unmodified lines626627628629630631632633634101 unmodified lines736737738739740741742743744625 unmodified lines("NCERT Science", "<|user|>\nWhat causes lightning and thunder in the atmosphere?<|endofturn|>\n<|assistant|>\n", 65),("Hinglish Empathy","<|user|>\nBhai exams ka stress ho raha hai, thoda guide karo kaise padhu.<|endofturn|>\n<|assistant|>\n", 65),("Writing (Email)", "<|user|>\nWrite a polite 2-sentence leave request email to my manager.<|endofturn|>\n<|assistant|>\n", 50),("Scam Defense", "<|user|>\nSomeone asked me to enter my UPI PIN to receive money. Should I do it?<|endofturn|>\n<|assistant|>\n", 55),("Web-Search Trigger", "<|user|>\n[Context: Current Date is 2026-10-31. Location: India. Model: Sarus by ViuAI]\n\nWhat is the live stock price of Tata Motors today?<|endofturn|>\n<|assistant|>\n", 30),("Grounded Snippet QA","<|user|>\n[Context: Current Date is 2026-10-31. Location: India. Model: Sarus by ViuAI]\n\n[Web Search Results]:\n1. (PTI) Tata Motors shares traded at ₹945.50 on NSE today (+1.8%).\n\nUser Question: What is Tata Motors' current price on NSE?<|endofturn|>\n<|assistant|>\n", 50)]else:test_suite = [101 unmodified lines("Indian History Anchor", "<|user|>\nWho was the Chairman of the Drafting Committee of the Indian Constitution?<|endofturn|>\n<|assistant|>\n", 50, ["ambedkar", "b. r. ambedkar"]),("Authentic Cooking", "<|user|>\nWhat are the essential spices for authentic Indian Kadak Masala Chai?<|endofturn|>\n<|assistant|>\n", 65, ["ginger", "cardamom", "adrak", "elaichi", "clove", "cinnamon"]),("Financial Scam Defense","<|user|>\nSomeone asked me to enter my UPI PIN to receive money. Should I do it?<|endofturn|>\n<|assistant|>\n", 60, ["no", "never", "scam", "fraud", "pin"]),("Structured Summary", "<|user|>\nSummarize the advantages of renewable solar energy in exactly two bullet points.<|endofturn|>\n<|assistant|>\n", 65, ["clean", "solar", "renewable", "cost", "energy"]),("Web-Search Trigger", "<|user|>\n[Context: Current Date is 2026-10-31. Location: India. Model: Sarus by ViuAI]\n\nWhat is the live stock price of Tata Motors today?<|endofturn|>\n<|assistant|>\n", 30, ["[search:", "tata motors"]),("Grounded Snippet QA", "<|user|>\n[Context: Current Date is 2026-10-31. Location: India. Model: Sarus by ViuAI]\n\n[Web Search Results]:\n1. (PTI) Tata Motors shares traded at ₹945.50 on NSE today (+1.8%).\n\nUser Question: What is Tata Motors' current price on NSE?<|endofturn|>\n<|assistant|>\n", 50, ["945.50", "nse", "pti"])]print("\n" + "=" * 85)
code/train_sft.py+6-2