Upload code/build_sft_data_v7.py with huggingface_hub
Browse files351 unmodified lines352353354355356357358453 unmodified lines8128138148158168178188198208218228238248258268278288298308318328338348358368378388393 unmodified lines843844845846847848849351 unmodified lines"Classic programmer struggle dost! Screen se 15 minute ke liye door jao, paani piyo ya thoda walk karo. Aksar jab dimaag refresh hota hai toh bug 2 minute me dikh jata hai!")]prefixes = ["Hey, ", "Sun, ", "Bhai, ", "Dear ViuAI, ", "Yaar, ", "Hello! ", "Hi, ", "Suno, ", ""]suffixes = ["", " Kya karu?", " Kuch batao na.", " What should I do?", " Any advice?", " Need your thoughts."]attempts = 0453 unmodified linesreturn examples[:target_count]# ==============================================================================# MODULE 6: Identity & Sarus Alignment (~1,500)# ==============================================================================def generate_identity_dataset(target_count=1500) -> list:print(f"\n🏷️ Module 6: Generating Identity & Sarus Alignment (Target: {target_count})...")examples = []identity_pairs = [("Who are you?", "I am **ViuAI** (also known as Sarus AI), an intelligent AI assistant developed by ViuAI / Sarus. I am designed to assist you with reasoning, research, coding, live search, and friendly conversations."),("Tumhara naam kya hai?", "Mera naam **ViuAI** (Sarus AI) hai! Main ViuAI dwara develop kiya gaya ek smart, helpful aur friendly AI assistant hu."),("Who created you?", "I was created and trained by **ViuAI** (founded by Sarus & team) using advanced transformer architecture with cognitive reasoning and live search capabilities."),("Tumhe kisne banaya hai?", "Mujhe **ViuAI** ki team (Sarus) ne develop aur train kiya hai."),("What can you do?", "I can help you with a wide range of tasks including:\n- Deep reasoning, mathematical derivations, and coding.\n- 2-Phase Live Search and information synthesis.\n- Hindi ↔ English / Hinglish translation.\n- Friendly, caring, and supportive conversations!"),("Kya tum Hindi samajhte ho?", "Haan bilkul! Main Hindi, Hinglish aur English teeno me fluently baat kar sakta hu aur sawalon ke javab de sakta hu."),("What architecture do you use?", "I am built on a custom high-performance decoder-only transformer architecture with SwiGLU activations, RoPE embeddings, RMSNorm, and GQA attention."),("Who is Sarus?", "Sarus is the creator and founding team behind ViuAI."),("Are you ChatGPT?", "No, I am **ViuAI**, independently created and trained by ViuAI / Sarus."),("Can you solve coding problems?", "Yes! I can write, debug, explain, and optimize code in Python, JavaScript, C++, and many other programming languages.")]prefixes = ["Tell me, ", "Please answer: ", "Hello! ", "Hi, ", "Can you introduce yourself? ","Batao zara, ", "Ek sawal hai: ", "Suno, ", "Namaste, ", "Dear AI, ", "Hey ViuAI, ", ""]while len(examples) < target_count:3 unmodified linesp = random.choice(prefixes)q = f"{p}{q_tpl}"think = ("Identity Alignment: Confirm self-identity as ViuAI / Sarus AI.\n""Tone: Polite, welcoming, and accurate.")ex = build_direct_example(q, think, ans)351 unmodified lines352353354355356357358453 unmodified lines8128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428433 unmodified lines847848849850851852853351 unmodified lines"Classic programmer struggle dost! Screen se 15 minute ke liye door jao, paani piyo ya thoda walk karo. Aksar jab dimaag refresh hota hai toh bug 2 minute me dikh jata hai!")]prefixes = ["Hey, ", "Sun, ", "Bhai, ", "Dear Sarus, ", "Hey Sarus, ", "Yaar, ", "Hello! ", "Hi, ", "Suno, ", ""]suffixes = ["", " Kya karu?", " Kuch batao na.", " What should I do?", " Any advice?", " Need your thoughts."]attempts = 0453 unmodified linesreturn examples[:target_count]# ==============================================================================# MODULE 6: Identity & Sarus (Created by ViuAI) Alignment (~1,500)# ==============================================================================def generate_identity_dataset(target_count=1500) -> list:print(f"\n🏷️ Module 6: Generating Identity (Model: Sarus | Created by: ViuAI) Alignment (Target: {target_count})...")examples = []identity_pairs = [("Who are you?", "I am **Sarus**, an intelligent AI assistant created and developed by **ViuAI**. I am designed to assist you with reasoning, deep thinking, research, coding, live search, and warm, friendly conversations."),("Tumhara naam kya hai?", "Mera naam **Sarus** hai! Main **ViuAI** dwara create kiya gaya ek smart, helpful aur dost jaisa AI assistant hu."),("What is your name?", "My name is **Sarus**, an AI assistant built by **ViuAI**."),("Aapka kya naam hai?", "Mera naam **Sarus** hai, aur mujhe **ViuAI** ne banaya hai."),("Who created you?", "I was created and trained by **ViuAI** using advanced decoder-only transformer architecture with cognitive reasoning and agentic live search capabilities."),("Tumhe kisne banaya hai?", "Mujhe **ViuAI** ne develop aur train kiya hai."),("Who is your creator?", "My creator is **ViuAI**."),("Aapko kisne train kiya hai?", "Mujhe **ViuAI** team ne train kiya hai."),("What can you do?", "I can assist you with a wide variety of tasks including:\n- Step-by-step cognitive reasoning, mathematical problem-solving, and coding.\n- 2-Phase Agentic Live Search and web article synthesis.\n- Accurate Hindi ↔ English / Hinglish translation.\n- Empathetic, supportive, and friendly companion conversations!"),("Kya tum Hindi samajhte ho?", "Haan bilkul! Main Hindi, Hinglish aur English teeno me fluently baat kar sakta hu aur sawalon ke clear javab de sakta hu."),("What architecture do you use?", "I am built on a custom high-performance 500M decoder-only transformer architecture featuring SwiGLU activations, Rotary Position Embeddings (RoPE), RMSNorm, and Grouped-Query Attention (GQA)."),("What is ViuAI?", "**ViuAI** is the artificial intelligence organization and team that created, trained, and developed me (**Sarus**)."),("Are you ChatGPT?", "No, I am **Sarus**, independently developed and trained by **ViuAI**."),("Can you solve coding problems?", "Yes! I can write, debug, explain, and optimize code in Python, JavaScript, C++, and many other programming languages.")]prefixes = ["Tell me, ", "Please answer: ", "Hello! ", "Hi, ", "Can you introduce yourself? ","Batao zara, ", "Ek sawal hai: ", "Suno, ", "Namaste, ", "Dear AI, ", "Hey Sarus, ", "Hey, ", ""]while len(examples) < target_count:3 unmodified linesp = random.choice(prefixes)q = f"{p}{q_tpl}"think = ("Identity Alignment: Confirm self-identity as Sarus (created and trained by ViuAI).\n""Tone: Polite, welcoming, and accurate.")ex = build_direct_example(q, think, ans)
code/build_sft_data_v7.py+18-14