Eurdem commited on
Commit
d515854
1 Parent(s): 195a406

Update README.md

Browse files
Files changed (1) hide show
  1. README.md +2 -20
README.md CHANGED
@@ -4,10 +4,6 @@ tags:
4
  - moe
5
  - frankenmoe
6
  - merge
7
- - mergekit
8
- - lazymergekit
9
- - Nexusflow/Starling-LM-7B-beta
10
- - Commencis/Commencis-LLM
11
  base_model:
12
  - Nexusflow/Starling-LM-7B-beta
13
  - Commencis/Commencis-LLM
@@ -15,22 +11,8 @@ base_model:
15
 
16
  # Megatron_v4_2x7B
17
 
18
- Megatron_v4_2x7B is a Mixure of Experts (MoE) made with the following models using [LazyMergekit](https://colab.research.google.com/drive/1obulZ1ROXHjYLn6PPZJwRR6GzgQogxxb?usp=sharing):
19
- * [Nexusflow/Starling-LM-7B-beta](https://huggingface.co/Nexusflow/Starling-LM-7B-beta)
20
- * [Commencis/Commencis-LLM](https://huggingface.co/Commencis/Commencis-LLM)
21
-
22
- ## 🧩 Configuration
23
 
24
- ```yaml
25
- base_model: mistralai/Mistral-7B-Instruct-v0.2
26
- dtype: float16
27
- gate_mode: hidden
28
- experts:
29
- - source_model: Nexusflow/Starling-LM-7B-beta
30
- positive_prompts: ["You are helpful assistant.","Coding","Matematics"]
31
- - source_model: Commencis/Commencis-LLM
32
- positive_prompts: ["Makale","Hikaye"]
33
- ```
34
 
35
  ## 💻 Usage
36
 
@@ -50,7 +32,7 @@ pipeline = transformers.pipeline(
50
  model_kwargs={"torch_dtype": torch.float16, "load_in_4bit": True},
51
  )
52
 
53
- messages = [{"role": "user", "content": "Explain what a Mixture of Experts is in less than 100 words."}]
54
  prompt = pipeline.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
55
  outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
56
  print(outputs[0]["generated_text"])
 
4
  - moe
5
  - frankenmoe
6
  - merge
 
 
 
 
7
  base_model:
8
  - Nexusflow/Starling-LM-7B-beta
9
  - Commencis/Commencis-LLM
 
11
 
12
  # Megatron_v4_2x7B
13
 
14
+ Megatron_v4_2x7B is a Mixure of Experts (MoE).
 
 
 
 
15
 
 
 
 
 
 
 
 
 
 
 
16
 
17
  ## 💻 Usage
18
 
 
32
  model_kwargs={"torch_dtype": torch.float16, "load_in_4bit": True},
33
  )
34
 
35
+ messages = [{"role": "user", "content": "Tell me about AI"}]
36
  prompt = pipeline.tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
37
  outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
38
  print(outputs[0]["generated_text"])