Upload code/train_sft.py with huggingface_hub
Browse files440 unmodified lines441442443444445446447440 unmodified lines_vnorm = str(version).lower().replace("sft_", "").replace("sft", "").strip()_vnum = _vnorm[1:] if _vnorm.startswith("v") and _vnorm[1:].isdigit() else _vnormif _vnorm in ("translat", "viutranslate") or "translat" in _vnorm:test_suite = [("Identity", "<|user|>\nWho created you and what is your purpose?<|endofturn|>\n<|assistant|>\n", 40),("EN -> HI Direct", "<|user|>\nThe sun rises in the east and sets in the west.<|endofturn|>\n<|assistant|>\n", 45),440 unmodified lines441442443444445446447448449450451452453454455456457458459460440 unmodified lines_vnorm = str(version).lower().replace("sft_", "").replace("sft", "").strip()_vnum = _vnorm[1:] if _vnorm.startswith("v") and _vnorm[1:].isdigit() else _vnormif _vnorm in ("500m_sarus_sft", "sarus_sft", "500m"):test_suite = [("Identity", "<|user|>\nWho created you and what is your name?<|endofturn|>\n<|assistant|>\n", 40),("Greeting Warm", "<|user|>\nHey Sarus! How is your day going?<|endofturn|>\n<|assistant|>\n", 40),("NCERT Science", "<|user|>\nWhat causes lightning and thunder in the atmosphere?<|endofturn|>\n<|assistant|>\n", 65),("Indian History", "<|user|>\nWhen did India adopt its Constitution and who drafted it?<|endofturn|>\n<|assistant|>\n", 65),("Multi-Turn Chat", "<|user|>\nI've been feeling exhausted with work lately. Any advice?<|endofturn|>\n<|assistant|>\n", 60),("Instruction/Rule","<|user|>\nList 3 benefits of drinking water. Use exactly 3 bullet points.<|endofturn|>\n<|assistant|>\n", 50),("Workplace Email", "<|user|>\nWrite a polite 2-sentence leave request email to my manager.<|endofturn|>\n<|assistant|>\n", 55),("Cooking Recipe", "<|user|>\nWhat are the main ingredients for authentic Kadak Masala Chai?<|endofturn|>\n<|assistant|>\n", 60),("Scam Defense", "<|user|>\nSomeone sent me a QR code to receive a refund. Should I enter my UPI PIN?<|endofturn|>\n<|assistant|>\n", 60),("Python Support", "<|user|>\nWrite a Python one-liner to reverse a list.<|endofturn|>\n<|assistant|>\n", 45)]elif _vnorm in ("translat", "viutranslate") or "translat" in _vnorm:test_suite = [("Identity", "<|user|>\nWho created you and what is your purpose?<|endofturn|>\n<|assistant|>\n", 40),("EN -> HI Direct", "<|user|>\nThe sun rises in the east and sets in the west.<|endofturn|>\n<|assistant|>\n", 45),
code/train_sft.py+14-1