Views
No views yet
1base_model: meta-llama/Llama-3.2-1B-Instruct
2dtype: bfloat16
3gate_mode: hidden
4
5experts:
6 # Expert 1: Casual Conversation & Creative Storytelling
7 # Unique markers: narrative, character, dialogue, imagination
8 - source_model: Divyansh008/Urvashi-1B-rp
9 positive_prompts:
10 - "Once upon a time there was"
11 - "The character felt nervous because"
12 - "She walked into the room and saw"
13 - "In a distant galaxy far away"
14 - "The wizard cast a spell that"
15 - "Let's pretend we're adventurers who"
16 - "Describe what the scene looks like"
17 - "The hero's journey began when"
18
19 # Expert 2: Programming & Software Engineering
20 # Unique markers: code syntax, technical commands, development terms
21 - source_model: dphn/Dolphin3.0-Llama3.2-1B
22 positive_prompts:
23 - "def function_name(parameters):"
24 - "import pandas as pd"
25 - "SELECT * FROM database WHERE"
26 - "git commit -m 'fixed bug in'"
27 - "const apiEndpoint = fetch()"
28 - "class ClassName extends React.Component"
29 - "docker-compose up --build"
30 - "npm install package-name --save"
31
32 # Expert 3: Pure Mathematics & Numerical Computation
33 # Unique markers: mathematical symbols, equations, numbers
34 - source_model: phamhai/Llama-3.2-1B-CyberFrog
35 positive_prompts:
36 - "∫(x² + 3x) dx ="
37 - "lim(x→∞) of the function"
38 - "Matrix multiplication A × B where"
39 - "The probability P(X|Y) equals"
40 - "Differentiate y = 5x³ - 2x² + 7"
41 - "Find eigenvalues of matrix"
42 - "Taylor series expansion of e^x"
43 - "Calculate 847 × 653 step by step"
44
45 # Expert 4: Hindi & Indic Languages Communication
46 # Unique markers: Devanagari, Tamil, Telugu scripts, regional phrases
47 - source_model: meta-llama/Llama-3.2-1B-Instruct
48 positive_prompts:
49 - "यह हिंदी में कैसे लिखें"
50 - "मुझे बताइए कि आज का मौसम"
51 - "தமிழில் இதை எப்படி"
52 - "తెలుగులో ఎలా చెప్పాలి"
53 - "ಕನ್ನಡದಲ್ಲಿ ಈ ಪದದ ಅರ್ಥ"
54 - "मराठीत हे शब्द म्हणजे"
55 - "ગુજરાતી ભાષામાં અનુવાદ કરો"
56 - "বাংলা ভাষায় এই বাক্য"
57
58 # Expert 5: Indian Cultural Heritage & Historical Knowledge
59 # Unique markers: specific Indian names, festivals, historical figures
60 - source_model: meta-llama/Llama-3.2-1B-Instruct
61 positive_prompts:
62 - "Emperor Ashoka's reign during Mauryan"
63 - "Diwali celebration involves lighting diyas"
64 - "Rabindranath Tagore wrote Gitanjali"
65 - "Taj Mahal was built by Shah Jahan"
66 - "Holi festival colors represent spring"
67 - "Mahatma Gandhi led Salt March in"
68 - "Kathakali dance originated in Kerala"
69 - "Cricket World Cup victory in 1983"
70
71 # Expert 6: Natural Sciences & Laboratory Research
72 # Unique markers: scientific terminology, experimental methods, formulas
73 - source_model: JingyaoLi/ScienceLLaMA-1b
74 positive_prompts:
75 - "Hypothesis: photosynthesis rate increases with"
76 - "Experimental procedure: titrate HCl with"
77 - "DNA replication occurs during S-phase"
78 - "Newton's second law F=ma demonstrates"
79 - "Mitochondria generate ATP through oxidative"
80 - "Chemical formula C₆H₁₂O₆ represents glucose"
81 - "Quantum entanglement phenomenon occurs when"
82 - "Peer-reviewed study published in Nature"
83
84 # Expert 7: Ancient Philosophy & Spiritual Texts
85 # Unique markers: Sanskrit terms, philosophical concepts, scripture names
86 - source_model: meta-llama/Llama-3.2-1B-Instruct
87 positive_prompts:
88 - "Bhagavad Gita Chapter 2 Verse 47"
89 - "Advaita Vedanta teaches non-duality"
90 - "Buddha's Four Noble Truths state"
91 - "Upanishads describe Brahman as"
92 - "Concept of Maya illusion explains"
93 - "Patanjali's Yoga Sutras define chitta"
94 - "Jain principle of Ahimsa nonviolence"
95 - "Karma-phala means fruits of action"
96
97 # Expert 8: Ayurveda & Traditional Wellness Practices
98 # Unique markers: Ayurvedic terms, dosha names, traditional remedies
99 - source_model: meta-llama/Llama-3.2-1B-Instruct
100 positive_prompts:
101 - "Vata dosha imbalance causes dryness"
102 - "Turmeric milk recipe for immunity"
103 - "Surya Namaskar yoga sequence benefits"
104 - "Triphala churna powder cleanses digestive"
105 - "Pitta constitution people should avoid"
106 - "Pranayama Nadi Shodhana alternate nostril"
107 - "Ashwagandha herb reduces cortisol stress"
108 - "Kapha body type gains weight easily"
109
110gate:
111 type: topk
112 k: 2
113 capacity_factor: 1.5
114 drop_tokens: false1!pip install -qU transformers bitsandbytes accelerate
2
3from transformers import AutoTokenizer
4import transformers
5import torch
6
7model = "Divyansh008/Llama3.2_MoE_1Bx8_working"
8
9tokenizer = AutoTokenizer.from_pretrained(model)
10pipeline = transformers.pipeline(
11 "text-generation",
12 model=model,
13 model_kwargs={"torch_dtype": torch.float16, "load_in_4bit": True},
14)
15
16messages = [{"role": "user", "content": "Explain what a Mixture of Experts is in less than 100 words."}]
17prompt = pipeline.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
18outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
19print(outputs[0]["generated_text"])