snigdhachandan commited on
Commit
e88d1df
1 Parent(s): b2118f7

Upload folder using huggingface_hub

Browse files
Files changed (1) hide show
  1. README.md +49 -0
README.md ADDED
@@ -0,0 +1,49 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ ---
2
+ tags:
3
+ - merge
4
+ - mergekit
5
+ - lazymergekit
6
+ ---
7
+
8
+ # Ganeet-V0
9
+
10
+ Ganeet-V0 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: akjindal53244/Arithmo-Mistral-7B
17
+ - model: deepseek-ai/deepseek-math-7b-rl
18
+ merge_method: ties
19
+ base_model: mistralai/Mistral-7B-v0.1
20
+ parameters:
21
+ normalize: true
22
+ int8_mask: true
23
+ dtype: float16
24
+ ```
25
+
26
+ ## 💻 Usage
27
+
28
+ ```python
29
+ !pip install -qU transformers accelerate
30
+
31
+ from transformers import AutoTokenizer
32
+ import transformers
33
+ import torch
34
+
35
+ model = "snigdhachandan/Ganeet-V0"
36
+ messages = [{"role": "user", "content": "What is a large language model?"}]
37
+
38
+ tokenizer = AutoTokenizer.from_pretrained(model)
39
+ prompt = tokenizer.apply_chat_template(messages, tokenize=False, add_generation_prompt=True)
40
+ pipeline = transformers.pipeline(
41
+ "text-generation",
42
+ model=model,
43
+ torch_dtype=torch.float16,
44
+ device_map="auto",
45
+ )
46
+
47
+ outputs = pipeline(prompt, max_new_tokens=256, do_sample=True, temperature=0.7, top_k=50, top_p=0.95)
48
+ print(outputs[0]["generated_text"])
49
+ ```