snigdhachandan commited on
Commit
a7734e8
1 Parent(s): f6945e9

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +50 -0
README.md ADDED
@@ -0,0 +1,50 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - merge
4
+ - mergekit
5
+ - lazymergekit
6
+ ---
7
+
8
+ # ganeet-V5
9
+
10
+ ganeet-V5 is a merge of the following models using [LazyMergekit](https://colab.research.google.com/drive/1obulZ1ROXHjYLn6PPZJwRR6GzgQogxxb?usp=sharing):
11
+
12
+ ## 🧩 Configuration
13
+
14
+ ```yaml
15
+ models:
16
+ - model: WizardLMTeam/WizardMath-7B-V1.1
17
+ - model: upaya07/Arithmo2-Mistral-7B
18
+ - model: microsoft/rho-math-7b-interpreter-v0.1
19
+ merge_method: ties
20
+ base_model: upaya07/Arithmo2-Mistral-7B
21
+ parameters:
22
+ normalize: true
23
+ int8_mask: true
24
+ dtype: float16
25
+ ```
26
+
27
+ ## 💻 Usage
28
+
29
+ ```python
30
+ !pip install -qU transformers accelerate
31
+
32
+ from transformers import AutoTokenizer
33
+ import transformers
34
+ import torch
35
+
36
+ model = "snigdhachandan/ganeet-V5"
37
+ messages = [{"role": "user", "content": "What is a large language model?"}]
38
+
39
+ tokenizer = AutoTokenizer.from_pretrained(model)
40
+ prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
41
+ pipeline = transformers.pipeline(
42
+ "text-generation",
43
+ model=model,
44
+ torch_dtype=torch.float16,
45
+ device_map="auto",
46
+ )
47
+
48
+ outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
49
+ print(outputs[0]["generated_text"])
50
+ ```