Views
No views yet
1base_model: ahxt/LiteLlama-460M-1T
2gate_mode: hidden
3dtype: bfloat16
4experts:
5 - source_model: ahxt/LiteLlama-460M-1T
6 positive_prompts: ["Accounting"]
7 - source_model: ahxt/LiteLlama-460M-1T
8 positive_prompts: ["Finance"]
9 - source_model: ahxt/LiteLlama-460M-1T
10 positive_prompts: ["Strategy"]
11 - source_model: ahxt/LiteLlama-460M-1T
12 positive_prompts: ["Marketing"]
13 - source_model: ahxt/LiteLlama-460M-1T
14 positive_prompts: ["Organizational Behaviour"]
15 - source_model: ahxt/LiteLlama-460M-1T
16 positive_prompts: ["Economics"]
171!pip install -qU transformers bitsandbytes accelerate
2
3from transformers import AutoTokenizer
4import transformers
5import torch
6
7model = "AkiGogikar/KnowledgeNinja-LiteLlama-460Mx6MoE-1T"
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"])| Metric | Value |
|---|---|
| Avg. | 30.23 |
| AI2 Reasoning Challenge (25-Shot) | 25.17 |
| HellaSwag (10-Shot) | 38.45 |
| MMLU (5-Shot) | 26.16 |
| TruthfulQA (0-shot) | 41.57 |
| Winogrande (5-shot) | 50.04 |
| GSM8k (5-shot) | 0.00 |